LLVM: include/llvm/CodeGen/CommandFlags.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15#ifndef LLVM_CODEGEN_COMMANDFLAGS_H

16#define LLVM_CODEGEN_COMMANDFLAGS_H

17

22#include

23#include

24#include

25

26namespace llvm {

27

29class AttrBuilder;

33

35

37

39

41

44

46

49

52

54

56

58

60

62

64

66

68

71

73

75

77

79

81

83

85

87

89

91

93

95

97

100

103

105

107

109

111

114

117

119

121

123

125

127

129

131

133

135

137

139

141

143

146

148

150

152

154

156

158

160

162

163

164

168

169

170

174

176

179

180

181

182

183

184

185

188

190

192

194

196

197

198

201

202

203

206

207

208

210

211

212

213

217

218

219

220

222

223

224

225

226

228

229}

230}

231

232#endif

static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")

Utilities for dealing with flags related to floating point properties and mode controls.

static cl::opt< std::string > OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), cl::init("-"))

Tagged union holding either a T or a Error.

A Module instance is used to store all the information related to an LLVM module.

StringRef - Represent a constant reference to a string, i.e.

Primary interface to the complete machine description for the target machine.

Triple - Helper class for working with autoconf configuration names.

Definition CommandFlags.h:34

LLVM_ABI bool getEnableMachineFunctionSplitter()

LLVM_ABI bool getEnableHonorSignDependentRoundingFPMath()

LLVM_ABI std::string getTrapFuncName()

LLVM_ABI bool getEnableDebugEntryValues()

LLVM_ABI unsigned getTLSSize()

LLVM_ABI bool getEnableGuaranteedTailCallOpt()

LLVM_ABI llvm::FPOpFusion::FPOpFusionMode getFuseFPOps()

LLVM_ABI std::optional< CodeModel::Model > getExplicitCodeModel()

LLVM_ABI bool getFunctionSections()

LLVM_ABI bool getDisableTailCalls()

LLVM_ABI std::string getCPUStr()

LLVM_ABI llvm::VectorLibrary getVectorLibrary()

LLVM_ABI bool getXCOFFReadOnlyPointers()

LLVM_ABI std::string getFeaturesStr()

LLVM_ABI bool getUniqueSectionNames()

LLVM_ABI DenormalMode::DenormalModeKind getDenormalFPMath()

LLVM_ABI llvm::FloatABI::ABIType getFloatABIForCalls()

LLVM_ABI void renderBoolStringAttr(AttrBuilder &B, StringRef Name, bool Val)

LLVM_ABI Reloc::Model getRelocModel()

LLVM_ABI bool getDebugStrictDwarf()

LLVM_ABI bool getEmulatedTLS()

LLVM_ABI bool getForceDwarfFrameSection()

LLVM_ABI bool getStackRealign()

LLVM_ABI std::string getMCPU()

LLVM_ABI bool getJMCInstrument()

LLVM_ABI bool getValueTrackingVariableLocations()

LLVM_ABI bool getDataSections()

LLVM_ABI bool getEnableAddrsig()

SaveStatsMode

Definition CommandFlags.h:159

@ Cwd

Definition CommandFlags.h:159

@ None

Definition CommandFlags.h:159

@ Obj

Definition CommandFlags.h:159

LLVM_ABI bool getStackSymbolOrdering()

LLVM_ABI void MaybeEnableStatistics()

Conditionally enables the collection of LLVM statistics during the tool run, based on the value of th...

LLVM_ABI SwiftAsyncFramePointerMode getSwiftAsyncFramePointer()

LLVM_ABI bool getEnableBBAddrMap()

LLVM_ABI std::optional< bool > getExplicitFunctionSections()

LLVM_ABI uint64_t getLargeDataThreshold()

LLVM_ABI std::vector< std::string > getFeatureList()

LLVM_ABI bool getEnableStaticDataPartitioning()

LLVM_ABI std::string getMArch()

LLVM_ABI DenormalMode::DenormalModeKind getDenormalFP32Math()

LLVM_ABI CodeGenFileType getFileType()

LLVM_ABI bool getEnableNoSignedZerosFPMath()

LLVM_ABI bool getEnableStackSizeSection()

LLVM_ABI bool getDefaultValueTrackingVariableLocations(const llvm::Triple &T)

Should value-tracking variable locations / instruction referencing be enabled by default for this tri...

LLVM_ABI llvm::EABI getEABIVersion()

LLVM_ABI bool getEnableCallGraphSection()

LLVM_ABI bool getEnableNoTrappingFPMath()

LLVM_ABI Expected< std::unique_ptr< TargetMachine > > createTargetMachineForTriple(StringRef TargetTriple, CodeGenOptLevel OptLevel=CodeGenOptLevel::Default)

Creates a TargetMachine instance with the options defined on the command line.

LLVM_ABI SaveStatsMode getSaveStats()

LLVM_ABI bool getUniqueBasicBlockSectionNames()

LLVM_ABI FramePointerKind getFramePointerUsage()

LLVM_ABI bool getDontPlaceZerosInBSS()

LLVM_ABI bool getSeparateNamedSections()

LLVM_ABI bool getEnableNoInfsFPMath()

LLVM_ABI bool getEnableNoNaNsFPMath()

LLVM_ABI std::optional< bool > getExplicitDataSections()

LLVM_ABI ThreadModel::Model getThreadModel()

LLVM_ABI bool getXCOFFTracebackTable()

LLVM_ABI bool getIgnoreXCOFFVisibility()

LLVM_ABI std::optional< bool > getExplicitValueTrackingVariableLocations()

LLVM_ABI bool getDisableIntegratedAS()

LLVM_ABI bool getUseCtors()

LLVM_ABI llvm::DebuggerKind getDebuggerTuningOpt()

LLVM_ABI std::vector< std::string > getMAttrs()

LLVM_ABI CodeModel::Model getCodeModel()

LLVM_ABI void setFunctionAttributes(StringRef CPU, StringRef Features, Function &F)

Set function attributes of function F based on CPU, Features, and command line flags.

LLVM_ABI llvm::BasicBlockSection getBBSectionsMode(llvm::TargetOptions &Options)

LLVM_ABI TargetOptions InitTargetOptionsFromCodeGenFlags(const llvm::Triple &TheTriple)

Common utility function tightly tied to the options listed here.

LLVM_ABI std::string getBBSections()

LLVM_ABI std::optional< bool > getExplicitEnableTLSDESC()

LLVM_ABI std::optional< uint64_t > getExplicitLargeDataThreshold()

LLVM_ABI unsigned getAlignLoops()

LLVM_ABI std::optional< Reloc::Model > getExplicitRelocModel()

LLVM_ABI std::optional< CodeGenFileType > getExplicitFileType()

LLVM_ABI int MaybeSaveStatistics(StringRef OutputFilename, StringRef ToolName)

Conditionally saves the collected LLVM statistics to the received output file, based on the value of ...

LLVM_ABI bool getEnableAIXExtendedAltivecABI()

LLVM_ABI bool getXRayFunctionIndex()

LLVM_ABI llvm::ExceptionHandling getExceptionModel()

LLVM_ABI bool getEmitCallSiteInfo()

LLVM_ABI std::optional< bool > getExplicitEmulatedTLS()

LLVM_ABI bool getEnableTLSDESC()

This is an optimization pass for GlobalISel generic memory operations.

CodeGenFileType

These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit,...

SwiftAsyncFramePointerMode

Indicates when and how the Swift async frame pointer bit should be set.

CodeGenOptLevel

Code generation optimization level.

VectorLibrary

List of known vector-functions libraries.

DebuggerKind

Identify a debugger for "tuning" the debug info.

DenormalModeKind

Represent handled modes for denormal (aka subnormal) modes in the floating point environment.

LLVM_ABI RegisterCodeGenFlags()

LLVM_ABI RegisterSaveStatsFlag()