Table of Contents

Method HostMachine

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

HostMachine(CodeGenOpt, RelocationMode, CodeModel)

Gets a target machine for the current host

public static TargetMachine HostMachine(CodeGenOpt optLevel = CodeGenOpt.Default, RelocationMode relocationMode = RelocationMode.Default, CodeModel codeModel = CodeModel.Default)

Parameters

optLevel CodeGenOpt

Optimization level

relocationMode RelocationMode

Relocation mode for generated code

codeModel CodeModel

CodeModel to use for generated code

Returns

TargetMachine

Host TargetMachine

Remarks

This is normally only used with JIT support to get a TargetMachine for the current host.