Method CreateTargetMachine
CreateTargetMachine(Triple, String, String, CodeGenOpt, RelocationMode, CodeModel)
Creates a TargetMachine for the target and specified parameters
Declaration
public TargetMachine CreateTargetMachine(Triple triple, string cpu = null, string features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
Parameters
public TargetMachine CreateTargetMachine(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 |
CreateTargetMachine(String, String, String, CodeGenOpt, RelocationMode, CodeModel)
Creates a TargetMachine for the target and specified parameters
Declaration
public TargetMachine CreateTargetMachine(string triple, string cpu = null, string features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
Parameters
public TargetMachine CreateTargetMachine(string triple, string cpu = null, string features = null, CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)
String | 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 |