Click or drag to resize
Llvm.NET LogoTargetCreateTargetMachine Method

[This is preliminary documentation and is subject to change.]

Creates a TargetMachine for the target and specified parameters

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public TargetMachine CreateTargetMachine(
	Context context,
	string triple,
	string cpu,
	string features,
	CodeGenOpt optLevel,
	Reloc relocationMode,
	CodeModel codeModel
)

Parameters

context
Type: Llvm.NETContext
Context to use for LLVM objects created by this machine
triple
Type: SystemString
Target triple for this machine (e.g. -mtriple)
cpu
Type: SystemString
CPU for this machine (e.g. -mcpu)
features
Type: SystemString
Features for this machine (e.g. -mattr...)
optLevel
Type: Llvm.NETCodeGenOpt
Optimization level
relocationMode
Type: Llvm.NETReloc
Relocation mode for generated code
codeModel
Type: Llvm.NETCodeModel
CodeModel to use for generated code

Return Value

Type: TargetMachine
TargetMachine based on the specified parameters
See Also