LLVM  15.0.0git
Modules | Functions
setters
Collaboration diagram for setters:

Modules

 controlling options
 These entry points control the ThinLTO cache. The cache is intended to support incremental build, and thus needs to be persistent accross build. The client enabled the cache by supplying a path to an existing directory. The code generator will use this to store objects files that may be reused during a subsequent build. To avoid filling the disk space, a few knobs are provided:
 

Functions

void llvm::ThinLTOCodeGenerator::setSaveTempsDir (std::string Path)
 Set the path to a directory where to save temporaries at various stages of the processing. More...
 
void llvm::ThinLTOCodeGenerator::setGeneratedObjectsDirectory (std::string Path)
 Set the path to a directory where to save generated object files. More...
 
void llvm::ThinLTOCodeGenerator::setCpu (std::string Cpu)
 CPU to use to initialize the TargetMachine. More...
 
void llvm::ThinLTOCodeGenerator::setAttr (std::string MAttr)
 Subtarget attributes. More...
 
void llvm::ThinLTOCodeGenerator::setTargetOptions (TargetOptions Options)
 TargetMachine options. More...
 
void llvm::ThinLTOCodeGenerator::setFreestanding (bool Enabled)
 Enable the Freestanding mode: indicate that the optimizer should not assume builtins are present on the target. More...
 
void llvm::ThinLTOCodeGenerator::setCodePICModel (Optional< Reloc::Model > Model)
 CodeModel. More...
 
void llvm::ThinLTOCodeGenerator::setCodeGenOptLevel (CodeGenOpt::Level CGOptLevel)
 CodeGen optimization level. More...
 
void llvm::ThinLTOCodeGenerator::setOptLevel (unsigned NewOptLevel)
 IR optimization level: from 0 to 3. More...
 
void llvm::ThinLTOCodeGenerator::setDebugPassManager (unsigned Enabled)
 Enable or disable debug output for the new pass manager. More...
 
void llvm::ThinLTOCodeGenerator::disableCodeGen (bool Disable)
 Disable CodeGen, only run the stages till codegen and stop. More...
 
void llvm::ThinLTOCodeGenerator::setCodeGenOnly (bool CGOnly)
 Perform CodeGen only: disable all other stages. More...
 

Detailed Description

Function Documentation

◆ disableCodeGen()

void llvm::ThinLTOCodeGenerator::disableCodeGen ( bool  Disable)
inline

Disable CodeGen, only run the stages till codegen and stop.

The output will be bitcode.

Definition at line 233 of file ThinLTOCodeGenerator.h.

References Disable.

◆ setAttr()

void llvm::ThinLTOCodeGenerator::setAttr ( std::string  MAttr)
inline

Subtarget attributes.

Definition at line 202 of file ThinLTOCodeGenerator.h.

References llvm::TargetMachineBuilder::MAttr, and move.

◆ setCodeGenOnly()

void llvm::ThinLTOCodeGenerator::setCodeGenOnly ( bool  CGOnly)
inline

Perform CodeGen only: disable all other stages.

Definition at line 236 of file ThinLTOCodeGenerator.h.

◆ setCodeGenOptLevel()

void llvm::ThinLTOCodeGenerator::setCodeGenOptLevel ( CodeGenOpt::Level  CGOptLevel)
inline

CodeGen optimization level.

Definition at line 219 of file ThinLTOCodeGenerator.h.

References llvm::TargetMachineBuilder::CGOptLevel.

◆ setCodePICModel()

void llvm::ThinLTOCodeGenerator::setCodePICModel ( Optional< Reloc::Model Model)
inline

◆ setCpu()

void llvm::ThinLTOCodeGenerator::setCpu ( std::string  Cpu)
inline

CPU to use to initialize the TargetMachine.

Definition at line 199 of file ThinLTOCodeGenerator.h.

References llvm::TargetMachineBuilder::MCpu, and move.

◆ setDebugPassManager()

void llvm::ThinLTOCodeGenerator::setDebugPassManager ( unsigned  Enabled)
inline

Enable or disable debug output for the new pass manager.

Definition at line 229 of file ThinLTOCodeGenerator.h.

References Enabled.

◆ setFreestanding()

void llvm::ThinLTOCodeGenerator::setFreestanding ( bool  Enabled)
inline

Enable the Freestanding mode: indicate that the optimizer should not assume builtins are present on the target.

Definition at line 211 of file ThinLTOCodeGenerator.h.

References Enabled.

◆ setGeneratedObjectsDirectory()

void llvm::ThinLTOCodeGenerator::setGeneratedObjectsDirectory ( std::string  Path)
inline

Set the path to a directory where to save generated object files.

This path can be used by a linker to request on-disk files instead of in-memory buffers. When set, results are available through getProducedBinaryFiles() instead of getProducedBinaries().

Definition at line 194 of file ThinLTOCodeGenerator.h.

References move.

◆ setOptLevel()

void llvm::ThinLTOCodeGenerator::setOptLevel ( unsigned  NewOptLevel)
inline

IR optimization level: from 0 to 3.

Definition at line 224 of file ThinLTOCodeGenerator.h.

◆ setSaveTempsDir()

void llvm::ThinLTOCodeGenerator::setSaveTempsDir ( std::string  Path)
inline

Set the path to a directory where to save temporaries at various stages of the processing.

Definition at line 188 of file ThinLTOCodeGenerator.h.

References move.

◆ setTargetOptions()

void llvm::ThinLTOCodeGenerator::setTargetOptions ( TargetOptions  Options)
inline

TargetMachine options.

Definition at line 205 of file ThinLTOCodeGenerator.h.

References move, llvm::TargetMachineBuilder::Options, and Options.