Method CreateTargetMachine
CreateTargetMachine(Triple, LazyEncodedString?, LazyEncodedString?, CodeGenOpt, RelocationMode, CodeModel)
Creates a TargetMachine for the target and specified parameters
public TargetMachine CreateTargetMachine(Triple triple, LazyEncodedString? cpu = null, LazyEncodedString? features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
Parameters
triple
TripleTarget triple for this machine (e.g. -mtriple)
cpu
LazyEncodedStringCPU for this machine (e.g. -mcpu)
features
LazyEncodedStringFeatures for this machine (e.g. -mattr...)
optLevel
CodeGenOptOptimization level
relocationMode
RelocationModeRelocation mode for generated code
codeModel
CodeModelCodeModel to use for generated code
Returns
- TargetMachine
TargetMachine based on the specified parameters
CreateTargetMachine(LazyEncodedString, LazyEncodedString?, LazyEncodedString?, CodeGenOpt, RelocationMode, CodeModel)
Creates a TargetMachine for the target and specified parameters
public TargetMachine CreateTargetMachine(LazyEncodedString triple, LazyEncodedString? cpu = null, LazyEncodedString? features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
Parameters
triple
LazyEncodedStringTarget triple for this machine (e.g. -mtriple)
cpu
LazyEncodedStringCPU for this machine (e.g. -mcpu)
features
LazyEncodedStringFeatures for this machine (e.g. -mattr...)
optLevel
CodeGenOptOptimization level
relocationMode
RelocationModeRelocation mode for generated code
codeModel
CodeModelCodeModel to use for generated code
Returns
- TargetMachine
TargetMachine based on the specified parameters