Table of Contents

Method FromTriple

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

FromTriple(Triple, LazyEncodedString?, LazyEncodedString?, CodeGenOpt, RelocationMode, CodeModel)

Creates a TargetMachine for the triple and specified parameters

public static TargetMachine FromTriple(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