LLVM  17.0.0git
Namespaces | Typedefs | Enumerations | Functions | Variables
CodeGen.h File Reference
#include <cstdint>
#include <optional>
Include dependency graph for CodeGen.h:

Go to the source code of this file.

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::Reloc
 
 llvm::CodeModel
 
 llvm::PICLevel
 
 llvm::PIELevel
 
 llvm::TLSModel
 
 llvm::CodeGenOpt
 
 llvm::ZeroCallUsedRegs
 

Typedefs

using llvm::CodeGenOpt::IDType = int
 Type for the unique integer IDs of code generation optimization levels. More...
 

Enumerations

enum  llvm::Reloc::Model {
  llvm::Reloc::Static, llvm::Reloc::PIC_, llvm::Reloc::DynamicNoPIC, llvm::Reloc::ROPI,
  llvm::Reloc::RWPI, llvm::Reloc::ROPI_RWPI
}
 
enum  llvm::CodeModel::Model {
  llvm::CodeModel::Tiny, llvm::CodeModel::Small, llvm::CodeModel::Kernel, llvm::CodeModel::Medium,
  llvm::CodeModel::Large
}
 
enum  llvm::PICLevel::Level { llvm::PICLevel::NotPIC =0, llvm::PICLevel::SmallPIC =1, llvm::PICLevel::BigPIC =2 }
 
enum  llvm::PIELevel::Level { llvm::PIELevel::Default =0, llvm::PIELevel::Small =1, llvm::PIELevel::Large =2 }
 
enum  llvm::TLSModel::Model { llvm::TLSModel::GeneralDynamic, llvm::TLSModel::LocalDynamic, llvm::TLSModel::InitialExec, llvm::TLSModel::LocalExec }
 
enum  llvm::CodeGenOpt::Level : IDType { llvm::CodeGenOpt::None = 0, llvm::CodeGenOpt::Less = 1, llvm::CodeGenOpt::Default = 2, llvm::CodeGenOpt::Aggressive = 3 }
 Code generation optimization level. More...
 
enum  llvm::CodeGenFileType { llvm::CGFT_AssemblyFile, llvm::CGFT_ObjectFile, llvm::CGFT_Null }
 These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit, and returned by it to indicate what type of file could actually be made. More...
 
enum  llvm::FramePointerKind { llvm::FramePointerKind::None, llvm::FramePointerKind::NonLeaf, llvm::FramePointerKind::All }
 
enum  llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind : unsigned int {
  llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::Skip = 1U << 0, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::UsedGPRArg = ONLY_USED | ONLY_GPR | ONLY_ARG, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::UsedGPR = ONLY_USED | ONLY_GPR, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::UsedArg = ONLY_USED | ONLY_ARG,
  llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::Used = ONLY_USED, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::AllGPRArg = ONLY_GPR | ONLY_ARG, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::AllGPR = ONLY_GPR, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::AllArg = ONLY_ARG,
  llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind::All = 0
}
 
enum  llvm::UWTableKind { llvm::UWTableKind::None = 0, llvm::UWTableKind::Sync = 1, llvm::UWTableKind::Async = 2, llvm::UWTableKind::Default = 2 }
 
enum  llvm::FunctionReturnThunksKind : unsigned int { llvm::FunctionReturnThunksKind::Keep = 0, llvm::FunctionReturnThunksKind::Extern = 1, llvm::FunctionReturnThunksKind::Invalid = 2 }
 

Functions

std::optional< Level > llvm::CodeGenOpt::getLevel (IDType ID)
 Get the Level identified by the integer ID. More...
 
std::optional< Level > llvm::CodeGenOpt::parseLevel (char C)
 Parse C as a single digit integer ID and get matching Level. More...
 

Variables

const unsigned llvm::ZeroCallUsedRegs::ONLY_USED = 1U << 1
 
const unsigned llvm::ZeroCallUsedRegs::ONLY_GPR = 1U << 2
 
const unsigned llvm::ZeroCallUsedRegs::ONLY_ARG = 1U << 3