|
LLVM 22.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 93 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 101 of file CodeGen.h.
References llvm::CallingConv::C, and getLevel().
Referenced by llvm::SPIRVTranslateModule().