mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
llvm-c: Add a few missing InitializeAll* functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -47,6 +47,21 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef;
|
|||||||
#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. */
|
||||||
|
#define LLVM_ASM_PRINTER(TargetName) \
|
||||||
|
void LLVMInitialize##TargetName##AsmPrinter();
|
||||||
|
#include "llvm/Config/AsmPrinters.def"
|
||||||
|
|
||||||
|
/* Declare all of the available assembly parser initialization functions. */
|
||||||
|
#define LLVM_ASM_PARSER(TargetName) \
|
||||||
|
void LLVMInitialize##TargetName##AsmParser();
|
||||||
|
#include "llvm/Config/AsmParsers.def"
|
||||||
|
|
||||||
|
/* Declare all of the available disassembler initialization functions. */
|
||||||
|
#define LLVM_DISASSEMBLER(TargetName) \
|
||||||
|
void LLVMInitialize##TargetName##Disassembler();
|
||||||
|
#include "llvm/Config/Disassemblers.def"
|
||||||
|
|
||||||
/** 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. */
|
||||||
@@ -64,6 +79,43 @@ static inline void LLVMInitializeAllTargets(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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** LLVMInitializeAllTargetMCs - The main program should call this function if
|
||||||
|
it wants access to all available target MC that LLVM is configured to
|
||||||
|
support. */
|
||||||
|
static inline void LLVMInitializeAllTargetMCs(void) {
|
||||||
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
|
||||||
|
#include "llvm/Config/Targets.def"
|
||||||
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** LLVMInitializeAllAsmPrinters - The main program should call this function if
|
||||||
|
it wants all asm printers that LLVM is configured to support, to make them
|
||||||
|
available via the TargetRegistry. */
|
||||||
|
static inline void LLVMInitializeAllAsmPrinters() {
|
||||||
|
#define LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter();
|
||||||
|
#include "llvm/Config/AsmPrinters.def"
|
||||||
|
#undef LLVM_ASM_PRINTER /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** LLVMInitializeAllAsmParsers - The main program should call this function if
|
||||||
|
it wants all asm parsers that LLVM is configured to support, to make them
|
||||||
|
available via the TargetRegistry. */
|
||||||
|
static inline void LLVMInitializeAllAsmParsers() {
|
||||||
|
#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
|
||||||
|
#include "llvm/Config/AsmParsers.def"
|
||||||
|
#undef LLVM_ASM_PARSER /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** LLVMInitializeAllDisassemblers - The main program should call this function
|
||||||
|
if it wants all disassemblers that LLVM is configured to support, to make
|
||||||
|
them available via the TargetRegistry. */
|
||||||
|
static inline void LLVMInitializeAllDisassemblers() {
|
||||||
|
#define LLVM_DISASSEMBLER(TargetName) \
|
||||||
|
LLVMInitialize##TargetName##Disassembler();
|
||||||
|
#include "llvm/Config/Disassemblers.def"
|
||||||
|
#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
|
||||||
|
Reference in New Issue
Block a user