Options that configure machine‐code emission and the integrated assembler.

Synopsis

Declared in <llvm/MC/MCTargetOptions.h>

class MCTargetOptions;

Enums

Name

Description

AsmInstrumentation

Kind of instrumentation the assembler may inject.

DwarfDirectory

Whether .file directives should include a directory operand.

Member Functions

Name

Description

MCTargetOptions [constructor]

Construct with default MC target options.

getABIName

Return the textual ABI name requested for the backend.

getAssemblyLanguage

Return the assembly language dialect name for this target.

Data Members

Name

Description

ABIName

Target ABI name requested for code generation.

Argv0

Compiler path recorded in CodeView LF_BUILDINFO.

AsSecureLogFile

Path for the assembler's secure log file (.secure_log_unique).

AsmVerbose

Emit verbose assembly comments.

AssemblyLanguage

Assembly language dialect name (for example, masm).

CommandlineArgs

Command‐line arguments recorded in CodeView LF_BUILDINFO.

CompressDebugSections

Whether to compress DWARF debug sections.

Crel

Use the CREL relocation format for ELF.

Dwarf64

Emit 64‐bit DWARF format.

DwarfVersion

DWARF version to emit, or 0 for the target default.

EmitCompactUnwindNonCanonical

Emit compact‐unwind for non‐canonical personality functions on Darwin.

EmitDwarfUnwind

Policy for emitting DWARF unwind information.

EmitSFrameUnwind

Emit SFrame unwind sections.

FDPIC

Use the ARM FDPIC (Function Descriptor PIC) ABI when assembling.

IASSearchPaths

Additional paths to search for .include directives when using the integrated assembler.

ImplicitMapSyms

Emit implicit mapping symbols for ARM/AArch64 ELF.

InstPrinterOptions

Extra options forwarded to the instruction printer.

LargeEHEncoding

Force 8‐byte (sdata8) pointer encodings for ELF exception‐handling.

MCFatalWarnings

Treat assembler warnings as errors.

MCIncrementalLinkerCompatible

Prefer incremental‐linker‐compatible object emission.

MCNoDeprecatedWarn

Suppress deprecated‐feature assembler warnings.

MCNoExecStack

Do not emit an executable stack note.

MCNoTypeCheck

Disable assembler type checking.

MCNoWarn

Suppress all assembler warnings.

MCRelaxAll

Relax all fixups to the maximum size.

MCSaveTempLabels

Keep temporary labels in the output.

MCUseDwarfDirectory

Whether .file directives should include a directory operand.

OutputAsmVariant

Optional assembly syntax variant index for the printer.

PPCUseFullRegisterNames

Use full register names when printing PowerPC assembly.

PreserveAsmComments

Preserve Comments in Assembly.

RelocSectionSym

For ELF relocations, controls section symbol conversion.

ShowMCEncoding

Show instruction encoding in assembly output.

ShowMCInst

Show internal MCInst dumping in assembly output.

SplitDwarfFile

Output path for split DWARF (.dwo) content.

X86RelaxRelocations

Prefer relaxed GOTPCRELX relocations on x86‐64 ELF.

X86Sse2Avx

Encode SSE instructions as their AVX equivalents when printing.

Non-Member Functions

Name

Description

mc::InitMCTargetOptionsFromFlags

Initialize an MCTargetOptions object from the registered MC flags.

Created with MrDocs