Method FromTriple
FromTriple(Triple, String, String, CodeGenOpt, RelocationMode, CodeModel)
Creates a TargetMachine for the triple and specified parameters
Declaration
public static TargetMachine FromTriple(Triple triple, string cpu = null, string features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
Parameters
public static TargetMachine FromTriple(Triple triple, string cpu = null, string features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
Triple | triple | Target triple for this machine (e.g. -mtriple) |
String | cpu | CPU for this machine (e.g. -mcpu) |
String | features | Features for this machine (e.g. -mattr...) |
CodeGenOpt | optLevel | Optimization level |
RelocationMode | relocationMode | Relocation mode for generated code |
CodeModel | codeModel | CodeModel to use for generated code |
Returns
TargetMachine | TargetMachine based on the specified parameters |