Shared codegen command‐line flag accessors used by tools such as llc and opt.

Types

Name

Description

RegisterCodeGenFlags

Create this object with static storage to register codegen‐related command line options.

RegisterMTuneFlag

Tools that support subtarget tuning should create this object with static storage to register the ‐mtune command line option.

RegisterSaveStatsFlag

Tools that support stats saving should create this object with static storage to register the ‐‐save‐stats command line option.

Enums

Name

Description

SaveStatsMode

Destination for ‐‐save‐stats output.

Functions

Name

Description

InitTargetOptionsFromCodeGenFlags

Initialize a TargetOptions object from the registered CodeGen flags.

MaybeEnableStatistics

Conditionally enable LLVM statistics collection based on ‐‐save‐stats.

MaybeSaveStatistics

Conditionally save collected LLVM statistics based on ‐‐save‐stats.

createTargetMachineForTriple

Create a TargetMachine using the options defined on the command line.

getAlignLoops

Return the value of the ‐align‐loops command‐line option.

getBBSections

Return the value of the ‐basic‐block‐sections command‐line option.

getBBSectionsMode

Translate the ‐basic‐block‐sections flag into a BasicBlockSection mode.

getCPUStr

Return the CPU name to use, resolving ‐mcpu=native if needed.

getCodeModel

Return the value of the ‐code‐model command‐line option.

getDataSections

Return whether ‐data‐sections is enabled.

getDebugStrictDwarf

Return whether ‐strict‐dwarf is enabled.

getDebuggerTuningOpt

Return the value of the ‐debugger‐tune command‐line option.

getDenormalFP32Math

Return the value of the ‐denormal‐fp‐math‐f32 command‐line option.

getDenormalFPMath

Return the value of the ‐denormal‐fp‐math command‐line option.

getDisableIntegratedAS

Return whether ‐no‐integrated‐as is enabled.

getDisableTailCalls

Return whether ‐disable‐tail‐calls is enabled.

getDontPlaceZerosInBSS

Return whether ‐nozero‐initialized‐in‐bss is enabled.

getEABIVersion

Return the value of the ‐meabi command‐line option.

getEmitCallSiteInfo

Return whether ‐emit‐call‐site‐info is enabled.

getEmulatedTLS

Return whether ‐emulated‐tls is enabled.

getEnableAIXExtendedAltivecABI

Return whether ‐vec‐extabi is enabled.

getEnableAddrsig

Return whether ‐addrsig is enabled.

getEnableBBAddrMap

Return whether ‐basic‐block‐address‐map is enabled.

getEnableCallGraphSection

Return whether ‐call‐graph‐section is enabled.

getEnableDebugEntryValues

Return whether ‐debug‐entry‐values is enabled.

getEnableGuaranteedTailCallOpt

Return whether ‐tailcallopt is enabled.

getEnableHonorSignDependentRoundingFPMath

Return whether ‐enable‐sign‐dependent‐rounding‐fp‐math is enabled.

getEnableMachineFunctionSplitter

Return whether ‐split‐machine‐functions is enabled.

getEnableNoTrappingFPMath

Return whether ‐enable‐no‐trapping‐fp‐math is enabled.

getEnableStackSizeSection

Return whether ‐stack‐size‐section is enabled.

getEnableStaticDataPartitioning

Return whether ‐partition‐static‐data‐sections is enabled.

getEnableTLSDESC

Return whether ‐enable‐tlsdesc is enabled.

getExceptionModel

Return the value of the ‐exception‐model command‐line option.

getExplicitCodeModel

Return the ‐code‐model value if it was explicitly set.

getExplicitDataSections

Return the ‐data‐sections value if it was explicitly set.

getExplicitEmulatedTLS

Return the ‐emulated‐tls value if it was explicitly set.

getExplicitEnableTLSDESC

Return the ‐enable‐tlsdesc value if it was explicitly set.

getExplicitFileType

Return the ‐filetype value if it was explicitly set.

getExplicitFunctionSections

Return the ‐function‐sections value if it was explicitly set.

getExplicitLargeDataThreshold

Return the ‐large‐data‐threshold value if it was explicitly set.

getExplicitRelocModel

Return the ‐relocation‐model value if it was explicitly set.

getFeatureList

Return the list of subtarget features derived from ‐mcpu and ‐mattr.

getFeaturesStr

Return the subtarget feature string derived from ‐mcpu and ‐mattr.

getFileType

Return the value of the ‐filetype command‐line option.

getFloatABIForCalls

Return the value of the ‐float‐abi command‐line option.

getForceDwarfFrameSection

Return whether ‐force‐dwarf‐frame‐section is enabled.

getFramePointerUsage

Return the value of the ‐frame‐pointer command‐line option.

getFunctionSections

Return whether ‐function‐sections is enabled.

getFuseFPOps

Return the value of the ‐fp‐contract command‐line option.

getIgnoreXCOFFVisibility

Return whether ‐ignore‐xcoff‐visibility is enabled.

getJMCInstrument

Return whether ‐enable‐jmc‐instrument is enabled.

getLargeDataThreshold

Return the value of the ‐large‐data‐threshold command‐line option.

getMArch

Return the value of the ‐march command‐line option.

getMAttrs

Return the list of ‐mattr values from the command line.

getMCPU

Return the value of the ‐mcpu command‐line option.

getMTune

Return the value of the ‐mtune command‐line option.

getRelocModel

Return the value of the ‐relocation‐model command‐line option.

getSaveStats

Return the value of the ‐‐save‐stats command‐line option.

getSeparateNamedSections

Return whether ‐separate‐named‐sections is enabled.

getStackRealign

Return whether ‐stackrealign is enabled.

getStackSymbolOrdering

Return whether ‐stack‐symbol‐ordering is enabled.

getSwiftAsyncFramePointer

Return the value of the ‐swift‐async‐fp command‐line option.

getTLSSize

Return the value of the ‐tls‐size command‐line option.

getThreadModel

Return the value of the ‐thread‐model command‐line option.

getTrapFuncName

Return the value of the ‐trap‐func command‐line option.

getTuneCPUStr

Return the tune CPU name to use, resolving ‐mtune=native if needed.

getUniqueBasicBlockSectionNames

Return whether ‐unique‐basic‐block‐section‐names is enabled.

getUniqueSectionNames

Return whether ‐unique‐section‐names is enabled.

getUseCtors

Return whether ‐use‐ctors is enabled.

getVectorLibrary

Return the value of the ‐vector‐library command‐line option.

getXCOFFReadOnlyPointers

Return whether ‐mxcoff‐roptr is enabled.

getXCOFFTracebackTable

Return whether ‐xcoff‐traceback‐table is enabled.

getXRayFunctionIndex

Return whether ‐xray‐function‐index is enabled.

renderBoolStringAttr

Add a boolean string attribute named Name with value Val to B.

setFunctionAttributes

setFunctionAttributes overloads

Created with MrDocs