LLVM 17.0.0git
|
Typedefs | |
using | IDType = int |
Type for the unique integer IDs of code generation optimization levels. | |
Enumerations | |
enum | Level : IDType { None = 0 , Less = 1 , Default = 2 , Aggressive = 3 } |
Code generation optimization level. More... | |
Functions | |
std::optional< Level > | getLevel (IDType ID) |
Get the Level identified by the integer ID . | |
std::optional< Level > | parseLevel (char C) |
Parse C as a single digit integer ID and get matching Level . | |
using llvm::CodeGenOpt::IDType = typedef int |
enum llvm::CodeGenOpt::Level : IDType |
Get the Level
identified by the integer ID
.
Returns std::nullopt if ID
is invalid.
Definition at line 66 of file CodeGen.h.
Referenced by parseLevel(), and llvm::LTOCodeGenerator::setOptLevel().
Parse C
as a single digit integer ID and get matching Level
.
Returns std::nullopt if the input is not a valid digit or not a valid ID.
Definition at line 74 of file CodeGen.h.
References llvm::CallingConv::C, and getLevel().