- LLVMCodeGenFileType
alias LLVMCodeGenFileType = int
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- LLVMCodeGenOptLevel
alias LLVMCodeGenOptLevel = int
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- LLVMCodeModel
alias LLVMCodeModel = int
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- LLVMRelocMode
alias LLVMRelocMode = int
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- LLVMTargetMachineRef
alias LLVMTargetMachineRef = __LLVMTargetMachine*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- LLVMTargetRef
alias LLVMTargetRef = __LLVMTarget*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- LLVMCreateTargetMachine
LLVMTargetMachineRef LLVMCreateTargetMachine(LLVMTargetRef T, char* Triple, char* CPU, char* Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel)
Creates a new llvm::TargetMachine. See llvm::Target::createTargetMachine
- LLVMDisposeTargetMachine
void LLVMDisposeTargetMachine(LLVMTargetMachineRef T)
Dispose the LLVMTargetMachineRef instance generated by
LLVMCreateTargetMachine.
- LLVMGetFirstTarget
LLVMTargetRef LLVMGetFirstTarget()
Returns the first llvm::Target in the registered targets list.
- LLVMGetNextTarget
LLVMTargetRef LLVMGetNextTarget(LLVMTargetRef T)
Returns the next llvm::Target given a previous one (or null if there's none)
- LLVMGetTargetDescription
const(char)* LLVMGetTargetDescription(LLVMTargetRef T)
Returns the description of a target. See llvm::Target::getDescription
- LLVMGetTargetMachineCPU
char* LLVMGetTargetMachineCPU(LLVMTargetMachineRef T)
Returns the cpu used creating this target machine. See
llvm::TargetMachine::getCPU. The result needs to be disposed with
LLVMDisposeMessage.
- LLVMGetTargetMachineData
LLVMTargetDataRef LLVMGetTargetMachineData(LLVMTargetMachineRef T)
Returns the llvm::DataLayout used for this llvm:TargetMachine.
- LLVMGetTargetMachineFeatureString
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.
- LLVMGetTargetMachineTarget
LLVMTargetRef LLVMGetTargetMachineTarget(LLVMTargetMachineRef T)
Returns the Target used in a TargetMachine
- LLVMGetTargetMachineTriple
char* LLVMGetTargetMachineTriple(LLVMTargetMachineRef T)
Returns the triple used creating this target machine. See
llvm::TargetMachine::getTriple. The result needs to be disposed with
LLVMDisposeMessage.
- LLVMGetTargetName
const(char)* LLVMGetTargetName(LLVMTargetRef T)
Returns the name of a target. See llvm::Target::getName
- LLVMTargetHasAsmBackend
LLVMBool LLVMTargetHasAsmBackend(LLVMTargetRef T)
Returns if the target as an ASM backend (required for emitting output)
- LLVMTargetHasJIT
LLVMBool LLVMTargetHasJIT(LLVMTargetRef T)
Returns if the target has a JIT
- LLVMTargetHasTargetMachine
LLVMBool LLVMTargetHasTargetMachine(LLVMTargetRef T)
Returns if the target has a TargetMachine associated
- LLVMTargetMachineEmitToFile
LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M, 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.
- LLVMTargetMachineEmitToMemoryBuffer
LLVMBool LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef* OutMemBuf)
Compile the LLVM IR stored in \p M and store the result in \p OutMemBuf.