|
LLVM 24.0.0git
|
Macros | |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_ASM_PRINTER(TargetName) |
| #define | LLVM_ASM_PRINTER(TargetName) |
| #define | LLVM_ASM_PARSER(TargetName) |
| #define | LLVM_ASM_PARSER(TargetName) |
| #define | LLVM_DISASSEMBLER(TargetName) |
| #define | LLVM_DISASSEMBLER(TargetName) |
Typedefs | |
| typedef struct LLVMOpaqueTargetLibraryInfotData * | LLVMTargetLibraryInfoRef |
| typedef struct LLVMOpaqueTargetMachineOptions * | LLVMTargetMachineOptionsRef |
| typedef struct LLVMOpaqueTargetMachine * | LLVMTargetMachineRef |
| typedef struct LLVMTarget * | LLVMTargetRef |
Functions | |
| LLVM_C_ABI void | LLVMAddTargetLibraryInfo (LLVMTargetLibraryInfoRef TLI, LLVMPassManagerRef PM) |
| Adds target library information to a pass manager. | |
| static void | LLVMInitializeAllTargetInfos (void) |
| LLVMInitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to support. | |
| static void | LLVMInitializeAllTargets (void) |
| LLVMInitializeAllTargets - The main program should call this function if it wants to link in all available targets that LLVM is configured to support. | |
| static void | LLVMInitializeAllTargetMCs (void) |
| LLVMInitializeAllTargetMCs - The main program should call this function if it wants access to all available target MC that LLVM is configured to support. | |
| static void | LLVMInitializeAllAsmPrinters (void) |
| 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 void | LLVMInitializeAllAsmParsers (void) |
| 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 void | LLVMInitializeAllDisassemblers (void) |
| 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 LLVMBool | LLVMInitializeNativeTarget (void) |
| LLVMInitializeNativeTarget - The main program should call this function to initialize the native target corresponding to the host. | |
| static LLVMBool | LLVMInitializeNativeAsmParser (void) |
| LLVMInitializeNativeTargetAsmParser - The main program should call this function to initialize the parser for the native target corresponding to the host. | |
| static LLVMBool | LLVMInitializeNativeAsmPrinter (void) |
| LLVMInitializeNativeTargetAsmPrinter - The main program should call this function to initialize the printer for the native target corresponding to the host. | |
| static LLVMBool | LLVMInitializeNativeDisassembler (void) |
| LLVMInitializeNativeTargetDisassembler - The main program should call this function to initialize the disassembler for the native target corresponding to the host. | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetFirstTarget (void) |
| Returns the first llvm::Target in the registered targets list. | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetNextTarget (LLVMTargetRef T) |
| Returns the next llvm::Target given a previous one (or null if there's none) | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetTargetFromName (const char *Name) |
Finds the target corresponding to the given name and stores it in T. | |
| LLVM_C_ABI LLVMBool | LLVMGetTargetFromTriple (const char *Triple, LLVMTargetRef *T, char **ErrorMessage) |
Finds the target corresponding to the given triple and stores it in T. | |
| LLVM_C_ABI const char * | LLVMGetTargetName (LLVMTargetRef T) |
| Returns the name of a target. | |
| LLVM_C_ABI const char * | LLVMGetTargetDescription (LLVMTargetRef T) |
| Returns the description of a target. | |
| LLVM_C_ABI LLVMBool | LLVMTargetHasJIT (LLVMTargetRef T) |
| Returns if the target has a JIT. | |
| LLVM_C_ABI LLVMBool | LLVMTargetHasTargetMachine (LLVMTargetRef T) |
| Returns if the target has a TargetMachine associated. | |
| LLVM_C_ABI LLVMBool | LLVMTargetHasAsmBackend (LLVMTargetRef T) |
| Returns if the target as an ASM backend (required for emitting output) | |
| LLVM_C_ABI LLVMTargetMachineOptionsRef | LLVMCreateTargetMachineOptions (void) |
| Create a new set of options for an llvm::TargetMachine. | |
| LLVM_C_ABI void | LLVMDisposeTargetMachineOptions (LLVMTargetMachineOptionsRef Options) |
| Dispose of an LLVMTargetMachineOptionsRef instance. | |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetCPU (LLVMTargetMachineOptionsRef Options, const char *CPU) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetFeatures (LLVMTargetMachineOptionsRef Options, const char *Features) |
| Set the list of features for the target machine. | |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetABI (LLVMTargetMachineOptionsRef Options, const char *ABI) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetCodeGenOptLevel (LLVMTargetMachineOptionsRef Options, LLVMCodeGenOptLevel Level) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetRelocMode (LLVMTargetMachineOptionsRef Options, LLVMRelocMode Reloc) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetCodeModel (LLVMTargetMachineOptionsRef Options, LLVMCodeModel CodeModel) |
| LLVM_C_ABI LLVMTargetMachineRef | LLVMCreateTargetMachineWithOptions (LLVMTargetRef T, const char *Triple, LLVMTargetMachineOptionsRef Options) |
| Create a new llvm::TargetMachine. | |
| LLVM_C_ABI LLVMTargetMachineRef | LLVMCreateTargetMachine (LLVMTargetRef T, const char *Triple, const char *CPU, const char *Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel) |
| Creates a new llvm::TargetMachine. | |
| LLVM_C_ABI void | LLVMDisposeTargetMachine (LLVMTargetMachineRef T) |
| Dispose the LLVMTargetMachineRef instance generated by LLVMCreateTargetMachine. | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetTargetMachineTarget (LLVMTargetMachineRef T) |
| Returns the Target used in a TargetMachine. | |
| LLVM_C_ABI char * | LLVMGetTargetMachineTriple (LLVMTargetMachineRef T) |
| Returns the triple used creating this target machine. | |
| LLVM_C_ABI char * | LLVMGetTargetMachineCPU (LLVMTargetMachineRef T) |
| Returns the cpu used creating this target machine. | |
| LLVM_C_ABI char * | LLVMGetTargetMachineFeatureString (LLVMTargetMachineRef T) |
| Returns the feature string used creating this target machine. | |
| LLVM_C_ABI LLVMTargetDataRef | LLVMCreateTargetDataLayout (LLVMTargetMachineRef T) |
| Create a DataLayout based on the targetMachine. | |
| LLVM_C_ABI void | LLVMSetTargetMachineAsmVerbosity (LLVMTargetMachineRef T, LLVMBool VerboseAsm) |
| Set the target machine's ASM verbosity. | |
| LLVM_C_ABI void | LLVMSetTargetMachineFastISel (LLVMTargetMachineRef T, LLVMBool Enable) |
| Enable fast-path instruction selection. | |
| LLVM_C_ABI void | LLVMSetTargetMachineGlobalISel (LLVMTargetMachineRef T, LLVMBool Enable) |
| Enable global instruction selection. | |
| LLVM_C_ABI void | LLVMSetTargetMachineGlobalISelAbort (LLVMTargetMachineRef T, LLVMGlobalISelAbortMode Mode) |
| Set abort behaviour when global instruction selection fails to lower/select an instruction. | |
| LLVM_C_ABI void | LLVMSetTargetMachineMachineOutliner (LLVMTargetMachineRef T, LLVMBool Enable) |
| Enable the MachineOutliner pass. | |
| LLVM_C_ABI LLVMBool | LLVMTargetMachineEmitToFile (LLVMTargetMachineRef T, LLVMModuleRef M, const char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage) |
| Emits an asm or object file for the given module to the filename. | |
| LLVM_C_ABI LLVMBool | LLVMTargetMachineEmitToMemoryBuffer (LLVMTargetMachineRef T, LLVMModuleRef M, LLVMCodeGenFileType codegen, char **ErrorMessage, LLVMMemoryBufferRef *OutMemBuf) |
Compile the LLVM IR stored in M and store the result in OutMemBuf. | |
| LLVM_C_ABI char * | LLVMGetDefaultTargetTriple (void) |
| Get a triple for the host machine as a string. | |
| LLVM_C_ABI char * | LLVMNormalizeTargetTriple (const char *triple) |
| Normalize a target triple. | |
| LLVM_C_ABI char * | LLVMGetHostCPUName (void) |
| Get the host CPU as a string. | |
| LLVM_C_ABI char * | LLVMGetHostCPUFeatures (void) |
| Get the host CPU's features as a string. | |
| LLVM_C_ABI void | LLVMAddAnalysisPasses (LLVMTargetMachineRef T, LLVMPassManagerRef PM) |
| Adds the target-specific analysis passes to the pass manager. | |
| #define LLVM_ASM_PARSER | ( | TargetName | ) |
| #define LLVM_ASM_PARSER | ( | TargetName | ) |
| #define LLVM_ASM_PRINTER | ( | TargetName | ) |
| #define LLVM_ASM_PRINTER | ( | TargetName | ) |
| #define LLVM_DISASSEMBLER | ( | TargetName | ) |
| #define LLVM_DISASSEMBLER | ( | TargetName | ) |
| #define LLVM_TARGET | ( | TargetName | ) |
| #define LLVM_TARGET | ( | TargetName | ) |
| #define LLVM_TARGET | ( | TargetName | ) |
| #define LLVM_TARGET | ( | TargetName | ) |
| #define LLVM_TARGET | ( | TargetName | ) |
| #define LLVM_TARGET | ( | TargetName | ) |
| typedef struct LLVMOpaqueTargetLibraryInfotData* LLVMTargetLibraryInfoRef |
| typedef struct LLVMOpaqueTargetMachineOptions* LLVMTargetMachineOptionsRef |
Definition at line 35 of file TargetMachine.h.
| typedef struct LLVMOpaqueTargetMachine* LLVMTargetMachineRef |
Definition at line 36 of file TargetMachine.h.
| typedef struct LLVMTarget* LLVMTargetRef |
Definition at line 37 of file TargetMachine.h.
| enum LLVMCodeGenFileType |
| Enumerator | |
|---|---|
| LLVMAssemblyFile | |
| LLVMObjectFile | |
Definition at line 66 of file TargetMachine.h.
| enum LLVMCodeGenOptLevel |
| Enumerator | |
|---|---|
| LLVMCodeGenLevelNone | |
| LLVMCodeGenLevelLess | |
| LLVMCodeGenLevelDefault | |
| LLVMCodeGenLevelAggressive | |
Definition at line 39 of file TargetMachine.h.
| enum LLVMCodeModel |
| Enumerator | |
|---|---|
| LLVMCodeModelDefault | |
| LLVMCodeModelJITDefault | |
| LLVMCodeModelTiny | |
| LLVMCodeModelSmall | |
| LLVMCodeModelKernel | |
| LLVMCodeModelMedium | |
| LLVMCodeModelLarge | |
Definition at line 56 of file TargetMachine.h.
| Enumerator | |
|---|---|
| LLVMGlobalISelAbortEnable | |
| LLVMGlobalISelAbortDisable | |
| LLVMGlobalISelAbortDisableWithDiag | |
Definition at line 71 of file TargetMachine.h.
| enum LLVMRelocMode |
| Enumerator | |
|---|---|
| LLVMRelocDefault | |
| LLVMRelocStatic | |
| LLVMRelocPIC | |
| LLVMRelocDynamicNoPic | |
| LLVMRelocROPI | |
| LLVMRelocRWPI | |
| LLVMRelocROPI_RWPI | |
Definition at line 46 of file TargetMachine.h.
| LLVM_C_ABI void LLVMAddAnalysisPasses | ( | LLVMTargetMachineRef | T, |
| LLVMPassManagerRef | PM ) |
Adds the target-specific analysis passes to the pass manager.
Definition at line 375 of file TargetMachineC.cpp.
References llvm::createTargetTransformInfoWrapperPass(), T, and llvm::unwrap().
| LLVM_C_ABI void LLVMAddTargetLibraryInfo | ( | LLVMTargetLibraryInfoRef | TLI, |
| LLVMPassManagerRef | PM ) |
Adds target library information to a pass manager.
This does not take ownership of the target library info. See the method llvm::PassManagerBase::add.
Definition at line 36 of file Target.cpp.
References llvm::unwrap().
| LLVM_C_ABI LLVMTargetDataRef LLVMCreateTargetDataLayout | ( | LLVMTargetMachineRef | T | ) |
Create a DataLayout based on the targetMachine.
Definition at line 286 of file TargetMachineC.cpp.
References llvm::Triple::computeDataLayout(), llvm::MCTargetOptions::getABIName(), llvm::TargetMachine::getTargetTriple(), llvm::TargetOptions::MCOptions, llvm::TargetMachine::Options, T, llvm::unwrap(), and llvm::wrap().
| LLVM_C_ABI LLVMTargetMachineRef LLVMCreateTargetMachine | ( | LLVMTargetRef | T, |
| const char * | Triple, | ||
| const char * | CPU, | ||
| const char * | Features, | ||
| LLVMCodeGenOptLevel | Level, | ||
| LLVMRelocMode | Reloc, | ||
| LLVMCodeModel | CodeModel ) |
Creates a new llvm::TargetMachine.
See llvm::Target::createTargetMachine
Definition at line 211 of file TargetMachineC.cpp.
References LLVMCreateTargetMachineOptions(), LLVMCreateTargetMachineWithOptions(), LLVMDisposeTargetMachineOptions(), LLVMTargetMachineOptionsSetCodeGenOptLevel(), LLVMTargetMachineOptionsSetCodeModel(), LLVMTargetMachineOptionsSetCPU(), LLVMTargetMachineOptionsSetFeatures(), LLVMTargetMachineOptionsSetRelocMode(), Machine, Options, and T.
| LLVM_C_ABI LLVMTargetMachineOptionsRef LLVMCreateTargetMachineOptions | ( | void | ) |
Create a new set of options for an llvm::TargetMachine.
The returned option structure must be released with LLVMDisposeTargetMachineOptions() after the call to LLVMCreateTargetMachineWithOptions().
Definition at line 118 of file TargetMachineC.cpp.
References llvm::wrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI LLVMTargetMachineRef LLVMCreateTargetMachineWithOptions | ( | LLVMTargetRef | T, |
| const char * | Triple, | ||
| LLVMTargetMachineOptionsRef | Options ) |
Create a new llvm::TargetMachine.
| T | the target to create a machine for. |
| Triple | a triple describing the target machine. |
| Options | additional configuration (see LLVMCreateTargetMachineOptions()). |
Definition at line 200 of file TargetMachineC.cpp.
References llvm::MCTargetOptions::ABIName, createTargetMachine(), llvm::TargetOptions::MCOptions, Options, T, llvm::unwrap(), and llvm::wrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI void LLVMDisposeTargetMachine | ( | LLVMTargetMachineRef | T | ) |
Dispose the LLVMTargetMachineRef instance generated by LLVMCreateTargetMachine.
Definition at line 228 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
Referenced by LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine().
| LLVM_C_ABI void LLVMDisposeTargetMachineOptions | ( | LLVMTargetMachineOptionsRef | Options | ) |
Dispose of an LLVMTargetMachineOptionsRef instance.
Definition at line 122 of file TargetMachineC.cpp.
References Options, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI char * LLVMGetDefaultTargetTriple | ( | void | ) |
Get a triple for the host machine as a string.
The result needs to be disposed with LLVMDisposeMessage.
Definition at line 355 of file TargetMachineC.cpp.
References llvm::c_str(), and llvm::sys::getDefaultTargetTriple().
| LLVM_C_ABI LLVMTargetRef LLVMGetFirstTarget | ( | void | ) |
Returns the first llvm::Target in the registered targets list.
Definition at line 62 of file TargetMachineC.cpp.
References llvm::iterator_range< IteratorT >::begin(), llvm::TargetRegistry::targets(), and llvm::wrap().
| LLVM_C_ABI char * LLVMGetHostCPUFeatures | ( | void | ) |
Get the host CPU's features as a string.
The result needs to be disposed with LLVMDisposeMessage.
Definition at line 367 of file TargetMachineC.cpp.
References llvm::SubtargetFeatures::AddFeature(), llvm::sys::getHostCPUFeatures(), and llvm::SubtargetFeatures::getString().
| LLVM_C_ABI char * LLVMGetHostCPUName | ( | void | ) |
Get the host CPU as a string.
The result needs to be disposed with LLVMDisposeMessage.
Definition at line 363 of file TargetMachineC.cpp.
References data, and llvm::sys::getHostCPUName().
| LLVM_C_ABI LLVMTargetRef LLVMGetNextTarget | ( | LLVMTargetRef | T | ) |
Returns the next llvm::Target given a previous one (or null if there's none)
Definition at line 70 of file TargetMachineC.cpp.
References T, llvm::unwrap(), and llvm::wrap().
| LLVM_C_ABI const char * LLVMGetTargetDescription | ( | LLVMTargetRef | T | ) |
Returns the description of a target.
See llvm::Target::getDescription
Definition at line 102 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI LLVMTargetRef LLVMGetTargetFromName | ( | const char * | Name | ) |
Finds the target corresponding to the given name and stores it in T.
Returns 0 on success.
Definition at line 74 of file TargetMachineC.cpp.
References llvm::iterator_range< IteratorT >::end(), llvm::find_if(), I, T, llvm::TargetRegistry::targets(), and llvm::wrap().
| LLVM_C_ABI LLVMBool LLVMGetTargetFromTriple | ( | const char * | Triple, |
| LLVMTargetRef * | T, | ||
| char ** | ErrorMessage ) |
Finds the target corresponding to the given triple and stores it in T.
Returns 0 on success. Optionally returns any error in ErrorMessage. Use LLVMDisposeMessage to dispose the message.
Definition at line 81 of file TargetMachineC.cpp.
References llvm::TargetRegistry::lookupTarget(), T, and llvm::wrap().
| LLVM_C_ABI char * LLVMGetTargetMachineCPU | ( | LLVMTargetMachineRef | T | ) |
Returns the cpu used creating this target machine.
See llvm::TargetMachine::getCPU. The result needs to be disposed with LLVMDisposeMessage.
Definition at line 240 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI char * LLVMGetTargetMachineFeatureString | ( | LLVMTargetMachineRef | T | ) |
Returns the feature string used creating this target machine.
See llvm::TargetMachine::getFeatureString. The result needs to be disposed with LLVMDisposeMessage.
Definition at line 245 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI LLVMTargetRef LLVMGetTargetMachineTarget | ( | LLVMTargetMachineRef | T | ) |
Returns the Target used in a TargetMachine.
Definition at line 230 of file TargetMachineC.cpp.
References T, llvm::unwrap(), and llvm::wrap().
| LLVM_C_ABI char * LLVMGetTargetMachineTriple | ( | LLVMTargetMachineRef | T | ) |
Returns the triple used creating this target machine.
See llvm::TargetMachine::getTriple. The result needs to be disposed with LLVMDisposeMessage.
Definition at line 235 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI const char * LLVMGetTargetName | ( | LLVMTargetRef | T | ) |
Returns the name of a target.
Definition at line 98 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| LLVM_C_ABI char * LLVMNormalizeTargetTriple | ( | const char * | triple | ) |
Normalize a target triple.
The result needs to be disposed with LLVMDisposeMessage.
Definition at line 359 of file TargetMachineC.cpp.
References llvm::c_str(), and llvm::Triple::normalize().
| LLVM_C_ABI void LLVMSetTargetMachineAsmVerbosity | ( | LLVMTargetMachineRef | T, |
| LLVMBool | VerboseAsm ) |
Set the target machine's ASM verbosity.
Definition at line 250 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI void LLVMSetTargetMachineFastISel | ( | LLVMTargetMachineRef | T, |
| LLVMBool | Enable ) |
Enable fast-path instruction selection.
Definition at line 255 of file TargetMachineC.cpp.
References Enable, T, and llvm::unwrap().
| LLVM_C_ABI void LLVMSetTargetMachineGlobalISel | ( | LLVMTargetMachineRef | T, |
| LLVMBool | Enable ) |
Enable global instruction selection.
Definition at line 259 of file TargetMachineC.cpp.
References Enable, T, and llvm::unwrap().
| LLVM_C_ABI void LLVMSetTargetMachineGlobalISelAbort | ( | LLVMTargetMachineRef | T, |
| LLVMGlobalISelAbortMode | Mode ) |
Set abort behaviour when global instruction selection fails to lower/select an instruction.
Definition at line 263 of file TargetMachineC.cpp.
References llvm::Disable, llvm::DisableWithDiag, llvm::Enable, LLVMGlobalISelAbortDisable, LLVMGlobalISelAbortDisableWithDiag, LLVMGlobalISelAbortEnable, Mode, T, and llvm::unwrap().
| LLVM_C_ABI void LLVMSetTargetMachineMachineOutliner | ( | LLVMTargetMachineRef | T, |
| LLVMBool | Enable ) |
Enable the MachineOutliner pass.
Definition at line 281 of file TargetMachineC.cpp.
References Enable, T, and llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMTargetHasAsmBackend | ( | LLVMTargetRef | T | ) |
Returns if the target as an ASM backend (required for emitting output)
Definition at line 114 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMTargetHasJIT | ( | LLVMTargetRef | T | ) |
Returns if the target has a JIT.
Definition at line 106 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMTargetHasTargetMachine | ( | LLVMTargetRef | T | ) |
Returns if the target has a TargetMachine associated.
Definition at line 110 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMTargetMachineEmitToFile | ( | LLVMTargetMachineRef | T, |
| LLVMModuleRef | M, | ||
| const char * | Filename, | ||
| LLVMCodeGenFileType | codegen, | ||
| char ** | ErrorMessage ) |
Emits an asm or object file for the given module to the filename.
This wraps several c++ only classes (among them a file stream). Returns any error in ErrorMessage. Use LLVMDisposeMessage to dispose the message.
Definition at line 327 of file TargetMachineC.cpp.
References Filename, llvm::raw_ostream::flush(), LLVMTargetMachineEmit(), llvm::sys::fs::OF_None, and T.
| LLVM_C_ABI LLVMBool LLVMTargetMachineEmitToMemoryBuffer | ( | LLVMTargetMachineRef | T, |
| LLVMModuleRef | M, | ||
| LLVMCodeGenFileType | codegen, | ||
| char ** | ErrorMessage, | ||
| LLVMMemoryBufferRef * | OutMemBuf ) |
Compile the LLVM IR stored in M and store the result in OutMemBuf.
Definition at line 342 of file TargetMachineC.cpp.
References llvm::Data, LLVMCreateMemoryBufferWithMemoryRangeCopy(), LLVMTargetMachineEmit(), llvm::raw_svector_ostream::str(), and T.
| LLVM_C_ABI void LLVMTargetMachineOptionsSetABI | ( | LLVMTargetMachineOptionsRef | Options, |
| const char * | ABI ) |
Definition at line 136 of file TargetMachineC.cpp.
References Options, and llvm::unwrap().
| LLVM_C_ABI void LLVMTargetMachineOptionsSetCodeGenOptLevel | ( | LLVMTargetMachineOptionsRef | Options, |
| LLVMCodeGenOptLevel | Level ) |
Definition at line 141 of file TargetMachineC.cpp.
References llvm::Aggressive, llvm::Default, llvm::Less, LLVMCodeGenLevelAggressive, LLVMCodeGenLevelDefault, LLVMCodeGenLevelLess, LLVMCodeGenLevelNone, llvm::None, Options, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI void LLVMTargetMachineOptionsSetCodeModel | ( | LLVMTargetMachineOptionsRef | Options, |
| LLVMCodeModel | CodeModel ) |
Definition at line 193 of file TargetMachineC.cpp.
References Options, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI void LLVMTargetMachineOptionsSetCPU | ( | LLVMTargetMachineOptionsRef | Options, |
| const char * | CPU ) |
Definition at line 126 of file TargetMachineC.cpp.
References Options, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI void LLVMTargetMachineOptionsSetFeatures | ( | LLVMTargetMachineOptionsRef | Options, |
| const char * | Features ) |
Set the list of features for the target machine.
| Features | a comma-separated list of features. |
Definition at line 131 of file TargetMachineC.cpp.
References Options, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().
| LLVM_C_ABI void LLVMTargetMachineOptionsSetRelocMode | ( | LLVMTargetMachineOptionsRef | Options, |
| LLVMRelocMode | Reloc ) |
Definition at line 163 of file TargetMachineC.cpp.
References llvm::Reloc::DynamicNoPIC, LLVMRelocDefault, LLVMRelocDynamicNoPic, LLVMRelocPIC, LLVMRelocROPI, LLVMRelocROPI_RWPI, LLVMRelocRWPI, LLVMRelocStatic, Options, llvm::Reloc::PIC_, llvm::Reloc::ROPI, llvm::Reloc::ROPI_RWPI, llvm::Reloc::RWPI, llvm::Reloc::Static, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().