mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Add llvm::InitializeAllTargetInfos and llvm::InitializeAllAsmParsers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a7a68c108
commit
cbdf0e2455
@ -26,29 +26,42 @@ extern "C" {
|
|||||||
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target();
|
#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target();
|
||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
|
|
||||||
// Declare all of the available asm-printer initialization functions.
|
// Declare all of the available assembly printer initialization functions.
|
||||||
#define LLVM_ASM_PRINTER(TargetName) void LLVMInitialize##TargetName##AsmPrinter();
|
#define LLVM_ASM_PRINTER(TargetName) void LLVMInitialize##TargetName##AsmPrinter();
|
||||||
#include "llvm/Config/AsmPrinters.def"
|
#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"
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
/// InitializeAllTargetInfos - The main program should call this function if
|
||||||
|
/// it wants access to all available targets that LLVM is configured to
|
||||||
|
/// support, to make them available via the TargetRegistry.
|
||||||
|
///
|
||||||
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
|
inline void InitializeAllTargetInfos() {
|
||||||
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
|
||||||
|
#include "llvm/Config/Targets.def"
|
||||||
|
}
|
||||||
|
|
||||||
/// InitializeAllTargets - The main program should call this function if it
|
/// InitializeAllTargets - The main program should call this function if it
|
||||||
/// wants access to all available targets that LLVM is configured to
|
/// wants access to all available target machines that LLVM is configured to
|
||||||
/// support. This allows the client to query the available targets using the
|
/// support, to make them available via the TargetRegistry.
|
||||||
/// target registration mechanisms.
|
|
||||||
///
|
///
|
||||||
/// It is legal for a client to make multiple calls to this function.
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
inline void InitializeAllTargets() {
|
inline void InitializeAllTargets() {
|
||||||
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
|
// FIXME: Remove this, clients should do it.
|
||||||
#include "llvm/Config/Targets.def"
|
InitializeAllTargetInfos();
|
||||||
|
|
||||||
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target();
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target();
|
||||||
#include "llvm/Config/Targets.def"
|
#include "llvm/Config/Targets.def"
|
||||||
}
|
}
|
||||||
|
|
||||||
/// InitializeAllAsmPrinters - The main program should call this function if
|
/// InitializeAllAsmPrinters - The main program should call this function if
|
||||||
/// it wants all asm printers that LLVM is configured to support. This will
|
/// it wants all asm printers that LLVM is configured to support, to make them
|
||||||
/// cause them to be linked into its executable.
|
/// available via the TargetRegistry.
|
||||||
///
|
///
|
||||||
/// It is legal for a client to make multiple calls to this function.
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
inline void InitializeAllAsmPrinters() {
|
inline void InitializeAllAsmPrinters() {
|
||||||
@ -56,6 +69,16 @@ namespace llvm {
|
|||||||
#include "llvm/Config/AsmPrinters.def"
|
#include "llvm/Config/AsmPrinters.def"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// InitializeAllAsmParsers - 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.
|
||||||
|
///
|
||||||
|
/// It is legal for a client to make multiple calls to this function.
|
||||||
|
inline void InitializeAllAsmParsers() {
|
||||||
|
#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
|
||||||
|
#include "llvm/Config/AsmParsers.def"
|
||||||
|
}
|
||||||
|
|
||||||
/// InitializeNativeTarget - The main program should call this function to
|
/// InitializeNativeTarget - 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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user