LLVM 20.0.0git
|
Functions | |
std::optional< CodeGenOptLevel > | getLevel (int OL) |
Get the Level identified by the integer OL . | |
std::optional< CodeGenOptLevel > | parseLevel (char C) |
Parse C as a single digit integer and get matching CodeGenLevel . | |
|
inline |
Get the Level
identified by the integer OL
.
Returns std::nullopt if OL
is invalid.
Definition at line 65 of file CodeGen.h.
Referenced by parseLevel(), and llvm::LTOCodeGenerator::setOptLevel().
|
inline |
Parse C
as a single digit integer and get matching CodeGenLevel
.
Returns std::nullopt if the input is not a valid optimization level.
Definition at line 73 of file CodeGen.h.
References llvm::CallingConv::C, and getLevel().
Referenced by llvm::SPIRVTranslateModule().