Construct a TargetMachine for the given target and configuration.

Synopsis

Declared in <llvm/Target/TargetMachine.h>

TargetMachine(
    Target const& T,
    StringRef DataLayoutString,
    Triple const& TargetTriple,
    StringRef CPU,
    StringRef FS,
    TargetOptions const& Options);

Parameters

Name

Description

T

Target description this machine is created for.

DataLayoutString

String representation of the target data layout.

TargetTriple

Triple describing the target architecture and OS.

CPU

Target CPU name.

FS

Target feature string.

Options

Target‐specific code generation options.

Created with MrDocs