Table of Contents

Method CreateTargetMachine

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

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 Triple

Target triple for this machine (e.g. -mtriple)

cpu LazyEncodedString

CPU for this machine (e.g. -mcpu)

features LazyEncodedString

Features for this machine (e.g. -mattr...)

optLevel CodeGenOpt

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(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 LazyEncodedString

Target triple for this machine (e.g. -mtriple)

cpu LazyEncodedString

CPU for this machine (e.g. -mcpu)

features LazyEncodedString

Features for this machine (e.g. -mattr...)

optLevel CodeGenOpt

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