 | TargetCreateTargetMachine Method |
[This is preliminary documentation and is subject to change.]
Namespace:
Llvm.NET
Assembly:
Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntaxpublic TargetMachine CreateTargetMachine(
Context context,
string triple,
string cpu,
string features,
CodeGenOpt optLevel,
Reloc relocationMode,
CodeModel codeModel
)
Parameters
- context
- Type: Llvm.NETContext
Context to use for LLVM objects created by this machine - triple
- Type: SystemString
Target triple for this machine (e.g. -mtriple) - cpu
- Type: SystemString
CPU for this machine (e.g. -mcpu) - features
- Type: SystemString
Features for this machine (e.g. -mattr...) - optLevel
- Type: Llvm.NETCodeGenOpt
Optimization level - relocationMode
- Type: Llvm.NETReloc
Relocation mode for generated code - codeModel
- Type: Llvm.NETCodeModel
CodeModel to use for generated code
Return Value
Type:
TargetMachineTargetMachine based on the specified parameters
See Also