mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-23 11:38:38 +00:00
include/llvm-c: Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20b2774833
commit
e21c3137e1
@ -34,7 +34,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* Builds a module from the bitcode in the specified memory buffer, returning a
|
/* Builds a module from the bitcode in the specified memory buffer, returning a
|
||||||
reference to the module via the OutModule parameter. Returns 0 on success.
|
reference to the module via the OutModule parameter. Returns 0 on success.
|
||||||
Optionally returns a human-readable error message via OutMessage. */
|
Optionally returns a human-readable error message via OutMessage. */
|
||||||
LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
|
LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleRef *OutModule, char **OutMessage);
|
LLVMModuleRef *OutModule, char **OutMessage);
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ LLVMBool LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
|
|||||||
|
|
||||||
/** Reads a module from the specified path, returning via the OutMP parameter
|
/** Reads a module from the specified path, returning via the OutMP parameter
|
||||||
a module provider which performs lazy deserialization. Returns 0 on success.
|
a module provider which performs lazy deserialization. Returns 0 on success.
|
||||||
Optionally returns a human-readable error message via OutMessage. */
|
Optionally returns a human-readable error message via OutMessage. */
|
||||||
LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
|
LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
|
||||||
LLVMMemoryBufferRef MemBuf,
|
LLVMMemoryBufferRef MemBuf,
|
||||||
LLVMModuleRef *OutM,
|
LLVMModuleRef *OutM,
|
||||||
|
@ -34,7 +34,7 @@ extern "C" {
|
|||||||
|
|
||||||
/*===-- Operations on modules ---------------------------------------------===*/
|
/*===-- Operations on modules ---------------------------------------------===*/
|
||||||
|
|
||||||
/** Writes a module to the specified path. Returns 0 on success. */
|
/** Writes a module to the specified path. Returns 0 on success. */
|
||||||
int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path);
|
int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path);
|
||||||
|
|
||||||
/** Writes a module to an open file descriptor. Returns 0 on success. */
|
/** Writes a module to an open file descriptor. Returns 0 on success. */
|
||||||
@ -42,7 +42,7 @@ int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose,
|
|||||||
int Unbuffered);
|
int Unbuffered);
|
||||||
|
|
||||||
/** Deprecated for LLVMWriteBitcodeToFD. Writes a module to an open file
|
/** Deprecated for LLVMWriteBitcodeToFD. Writes a module to an open file
|
||||||
descriptor. Returns 0 on success. Closes the Handle. */
|
descriptor. Returns 0 on success. Closes the Handle. */
|
||||||
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
|
int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -354,26 +354,26 @@ typedef enum {
|
|||||||
LLVMAtomicOrderingNotAtomic = 0, /**< A load or store which is not atomic */
|
LLVMAtomicOrderingNotAtomic = 0, /**< A load or store which is not atomic */
|
||||||
LLVMAtomicOrderingUnordered = 1, /**< Lowest level of atomicity, guarantees
|
LLVMAtomicOrderingUnordered = 1, /**< Lowest level of atomicity, guarantees
|
||||||
somewhat sane results, lock free. */
|
somewhat sane results, lock free. */
|
||||||
LLVMAtomicOrderingMonotonic = 2, /**< guarantees that if you take all the
|
LLVMAtomicOrderingMonotonic = 2, /**< guarantees that if you take all the
|
||||||
operations affecting a specific address,
|
operations affecting a specific address,
|
||||||
a consistent ordering exists */
|
a consistent ordering exists */
|
||||||
LLVMAtomicOrderingAcquire = 4, /**< Acquire provides a barrier of the sort
|
LLVMAtomicOrderingAcquire = 4, /**< Acquire provides a barrier of the sort
|
||||||
necessary to acquire a lock to access other
|
necessary to acquire a lock to access other
|
||||||
memory with normal loads and stores. */
|
memory with normal loads and stores. */
|
||||||
LLVMAtomicOrderingRelease = 5, /**< Release is similar to Acquire, but with
|
LLVMAtomicOrderingRelease = 5, /**< Release is similar to Acquire, but with
|
||||||
a barrier of the sort necessary to release
|
a barrier of the sort necessary to release
|
||||||
a lock. */
|
a lock. */
|
||||||
LLVMAtomicOrderingAcquireRelease = 6, /**< provides both an Acquire and a
|
LLVMAtomicOrderingAcquireRelease = 6, /**< provides both an Acquire and a
|
||||||
Release barrier (for fences and
|
Release barrier (for fences and
|
||||||
operations which both read and write
|
operations which both read and write
|
||||||
memory). */
|
memory). */
|
||||||
LLVMAtomicOrderingSequentiallyConsistent = 7 /**< provides Acquire semantics
|
LLVMAtomicOrderingSequentiallyConsistent = 7 /**< provides Acquire semantics
|
||||||
for loads and Release
|
for loads and Release
|
||||||
semantics for stores.
|
semantics for stores.
|
||||||
Additionally, it guarantees
|
Additionally, it guarantees
|
||||||
that a total ordering exists
|
that a total ordering exists
|
||||||
between all
|
between all
|
||||||
SequentiallyConsistent
|
SequentiallyConsistent
|
||||||
operations. */
|
operations. */
|
||||||
} LLVMAtomicOrdering;
|
} LLVMAtomicOrdering;
|
||||||
|
|
||||||
@ -386,16 +386,16 @@ typedef enum {
|
|||||||
LLVMAtomicRMWBinOpOr, /**< OR a value and return the old one */
|
LLVMAtomicRMWBinOpOr, /**< OR a value and return the old one */
|
||||||
LLVMAtomicRMWBinOpXor, /**< Xor a value and return the old one */
|
LLVMAtomicRMWBinOpXor, /**< Xor a value and return the old one */
|
||||||
LLVMAtomicRMWBinOpMax, /**< Sets the value if it's greater than the
|
LLVMAtomicRMWBinOpMax, /**< Sets the value if it's greater than the
|
||||||
original using a signed comparison and return
|
original using a signed comparison and return
|
||||||
the old one */
|
the old one */
|
||||||
LLVMAtomicRMWBinOpMin, /**< Sets the value if it's Smaller than the
|
LLVMAtomicRMWBinOpMin, /**< Sets the value if it's Smaller than the
|
||||||
original using a signed comparison and return
|
original using a signed comparison and return
|
||||||
the old one */
|
the old one */
|
||||||
LLVMAtomicRMWBinOpUMax, /**< Sets the value if it's greater than the
|
LLVMAtomicRMWBinOpUMax, /**< Sets the value if it's greater than the
|
||||||
original using an unsigned comparison and return
|
original using an unsigned comparison and return
|
||||||
the old one */
|
the old one */
|
||||||
LLVMAtomicRMWBinOpUMin /**< Sets the value if it's greater than the
|
LLVMAtomicRMWBinOpUMin /**< Sets the value if it's greater than the
|
||||||
original using an unsigned comparison and return
|
original using an unsigned comparison and return
|
||||||
the old one */
|
the old one */
|
||||||
} LLVMAtomicRMWBinOp;
|
} LLVMAtomicRMWBinOp;
|
||||||
|
|
||||||
@ -2613,9 +2613,9 @@ LLVMValueRef LLVMBuildIsNotNull(LLVMBuilderRef, LLVMValueRef Val,
|
|||||||
const char *Name);
|
const char *Name);
|
||||||
LLVMValueRef LLVMBuildPtrDiff(LLVMBuilderRef, LLVMValueRef LHS,
|
LLVMValueRef LLVMBuildPtrDiff(LLVMBuilderRef, LLVMValueRef LHS,
|
||||||
LLVMValueRef RHS, const char *Name);
|
LLVMValueRef RHS, const char *Name);
|
||||||
LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,LLVMAtomicRMWBinOp op,
|
LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,LLVMAtomicRMWBinOp op,
|
||||||
LLVMValueRef PTR, LLVMValueRef Val,
|
LLVMValueRef PTR, LLVMValueRef Val,
|
||||||
LLVMAtomicOrdering ordering,
|
LLVMAtomicOrdering ordering,
|
||||||
LLVMBool singleThread);
|
LLVMBool singleThread);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,7 +42,7 @@ typedef void *LLVMDisasmContextRef;
|
|||||||
* instruction are specified by the Offset parameter and its byte widith is the
|
* instruction are specified by the Offset parameter and its byte widith is the
|
||||||
* size parameter. For instructions sets with fixed widths and one symbolic
|
* size parameter. For instructions sets with fixed widths and one symbolic
|
||||||
* operand per instruction, the Offset parameter will be zero and Size parameter
|
* operand per instruction, the Offset parameter will be zero and Size parameter
|
||||||
* will be the instruction width. The information is returned in TagBuf and is
|
* will be the instruction width. The information is returned in TagBuf and is
|
||||||
* Triple specific with its specific information defined by the value of
|
* Triple specific with its specific information defined by the value of
|
||||||
* TagType for that Triple. If symbolic information is returned the function
|
* TagType for that Triple. If symbolic information is returned the function
|
||||||
* returns 1, otherwise it returns 0.
|
* returns 1, otherwise it returns 0.
|
||||||
@ -58,7 +58,7 @@ typedef int (*LLVMOpInfoCallback)(void *DisInfo, uint64_t PC,
|
|||||||
* SubtractSymbol can be link edited independent of each other. Many other
|
* SubtractSymbol can be link edited independent of each other. Many other
|
||||||
* platforms only allow a relocatable expression of the form AddSymbol + Offset
|
* platforms only allow a relocatable expression of the form AddSymbol + Offset
|
||||||
* to be encoded.
|
* to be encoded.
|
||||||
*
|
*
|
||||||
* The LLVMOpInfoCallback() for the TagType value of 1 uses the struct
|
* The LLVMOpInfoCallback() for the TagType value of 1 uses the struct
|
||||||
* LLVMOpInfo1. The value of the relocatable expression for the operand,
|
* LLVMOpInfo1. The value of the relocatable expression for the operand,
|
||||||
* including any PC adjustment, is passed in to the call back in the Value
|
* including any PC adjustment, is passed in to the call back in the Value
|
||||||
|
@ -206,7 +206,7 @@ void LLVMDisposeMCJITMemoryManager(LLVMMCJITMemoryManagerRef MM);
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* defined(__cplusplus) */
|
#endif /* defined(__cplusplus) */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
//
|
//
|
||||||
// This file is distributed under the University of Illinois Open Source
|
// This file is distributed under the University of Illinois Open Source
|
||||||
// License. See LICENSE.TXT for details.
|
// License. See LICENSE.TXT for details.
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// This header provides a C API to use the LLVM link time optimization
|
// This header provides a C API to use the LLVM link time optimization
|
||||||
@ -46,7 +46,7 @@ extern "C" {
|
|||||||
// Added C-specific error codes
|
// Added C-specific error codes
|
||||||
LLVM_LTO_NULL_OBJECT
|
LLVM_LTO_NULL_OBJECT
|
||||||
} llvm_lto_status_t;
|
} llvm_lto_status_t;
|
||||||
|
|
||||||
/// This provides C interface to initialize link time optimizer. This allows
|
/// This provides C interface to initialize link time optimizer. This allows
|
||||||
/// linker to use dlopen() interface to dynamically load LinkTimeOptimizer.
|
/// linker to use dlopen() interface to dynamically load LinkTimeOptimizer.
|
||||||
/// extern "C" helps, because dlopen() interface uses name to find the symbol.
|
/// extern "C" helps, because dlopen() interface uses name to find the symbol.
|
||||||
|
@ -100,4 +100,3 @@ const char *LLVMGetRelocationValueString(LLVMRelocationIteratorRef RI);
|
|||||||
#endif /* defined(__cplusplus) */
|
#endif /* defined(__cplusplus) */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef;
|
|||||||
void LLVMInitialize##TargetName##TargetInfo(void);
|
void LLVMInitialize##TargetName##TargetInfo(void);
|
||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
|
|
||||||
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(void);
|
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(void);
|
||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
@ -53,7 +53,7 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef;
|
|||||||
void LLVMInitialize##TargetName##TargetMC(void);
|
void LLVMInitialize##TargetName##TargetMC(void);
|
||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
|
|
||||||
/* Declare all of the available assembly printer initialization functions. */
|
/* Declare all of the available assembly printer initialization functions. */
|
||||||
#define LLVM_ASM_PRINTER(TargetName) \
|
#define LLVM_ASM_PRINTER(TargetName) \
|
||||||
void LLVMInitialize##TargetName##AsmPrinter(void);
|
void LLVMInitialize##TargetName##AsmPrinter(void);
|
||||||
@ -71,7 +71,7 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef;
|
|||||||
void LLVMInitialize##TargetName##Disassembler(void);
|
void LLVMInitialize##TargetName##Disassembler(void);
|
||||||
#include "llvm/Config/Disassemblers.def"
|
#include "llvm/Config/Disassemblers.def"
|
||||||
#undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */
|
#undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */
|
||||||
|
|
||||||
/** LLVMInitializeAllTargetInfos - The main program should call this function if
|
/** LLVMInitializeAllTargetInfos - The main program should call this function if
|
||||||
it wants access to all available targets that LLVM is configured to
|
it wants access to all available targets that LLVM is configured to
|
||||||
support. */
|
support. */
|
||||||
@ -98,7 +98,7 @@ static inline void LLVMInitializeAllTargetMCs(void) {
|
|||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllAsmPrinters - The main program should call this function if
|
/** LLVMInitializeAllAsmPrinters - The main program should call this function if
|
||||||
it wants all asm printers that LLVM is configured to support, to make them
|
it wants all asm printers that LLVM is configured to support, to make them
|
||||||
available via the TargetRegistry. */
|
available via the TargetRegistry. */
|
||||||
@ -107,7 +107,7 @@ static inline void LLVMInitializeAllAsmPrinters(void) {
|
|||||||
#include "llvm/Config/AsmPrinters.def"
|
#include "llvm/Config/AsmPrinters.def"
|
||||||
#undef LLVM_ASM_PRINTER /* Explicit undef to make SWIG happier */
|
#undef LLVM_ASM_PRINTER /* Explicit undef to make SWIG happier */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllAsmParsers - The main program should call this function if
|
/** LLVMInitializeAllAsmParsers - The main program should call this function if
|
||||||
it wants all asm parsers that LLVM is configured to support, to make them
|
it wants all asm parsers that LLVM is configured to support, to make them
|
||||||
available via the TargetRegistry. */
|
available via the TargetRegistry. */
|
||||||
@ -116,7 +116,7 @@ static inline void LLVMInitializeAllAsmParsers(void) {
|
|||||||
#include "llvm/Config/AsmParsers.def"
|
#include "llvm/Config/AsmParsers.def"
|
||||||
#undef LLVM_ASM_PARSER /* Explicit undef to make SWIG happier */
|
#undef LLVM_ASM_PARSER /* Explicit undef to make SWIG happier */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllDisassemblers - The main program should call this function
|
/** LLVMInitializeAllDisassemblers - The main program should call this function
|
||||||
if it wants all disassemblers that LLVM is configured to support, to make
|
if it wants all disassemblers that LLVM is configured to support, to make
|
||||||
them available via the TargetRegistry. */
|
them available via the TargetRegistry. */
|
||||||
@ -126,9 +126,9 @@ static inline void LLVMInitializeAllDisassemblers(void) {
|
|||||||
#include "llvm/Config/Disassemblers.def"
|
#include "llvm/Config/Disassemblers.def"
|
||||||
#undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */
|
#undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** LLVMInitializeNativeTarget - The main program should call this function to
|
/** LLVMInitializeNativeTarget - The main program should call this function to
|
||||||
initialize the native target corresponding to the host. This is useful
|
initialize the native target corresponding to the host. This is useful
|
||||||
for JIT applications to ensure that the target gets linked in correctly. */
|
for JIT applications to ensure that the target gets linked in correctly. */
|
||||||
static inline LLVMBool LLVMInitializeNativeTarget(void) {
|
static inline LLVMBool LLVMInitializeNativeTarget(void) {
|
||||||
/* If we have a native target, initialize it to ensure it is linked in. */
|
/* If we have a native target, initialize it to ensure it is linked in. */
|
||||||
@ -140,7 +140,7 @@ static inline LLVMBool LLVMInitializeNativeTarget(void) {
|
|||||||
#else
|
#else
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*===-- Target Data -------------------------------------------------------===*/
|
/*===-- Target Data -------------------------------------------------------===*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user