LLVM 20.0.0git
|
#include "llvm/Bitcode/BitcodeReader.h"
Public Member Functions | |
ParserCallbacks ()=default | |
ParserCallbacks (DataLayoutCallbackFuncTy DataLayout) | |
Public Attributes | |
std::optional< DataLayoutCallbackFuncTy > | DataLayout |
std::optional< ValueTypeCallbackTy > | ValueType |
The ValueType callback is called for every function definition or declaration and allows accessing the type information, also behind pointers. | |
std::optional< MDTypeCallbackTy > | MDType |
The MDType callback is called for every value in metadata. | |
Definition at line 72 of file BitcodeReader.h.
|
default |
|
inlineexplicit |
Definition at line 86 of file BitcodeReader.h.
std::optional<DataLayoutCallbackFuncTy> llvm::ParserCallbacks::DataLayout |
Definition at line 73 of file BitcodeReader.h.
Referenced by llvm::parseIR().
std::optional<MDTypeCallbackTy> llvm::ParserCallbacks::MDType |
The MDType callback is called for every value in metadata.
Definition at line 83 of file BitcodeReader.h.
std::optional<ValueTypeCallbackTy> llvm::ParserCallbacks::ValueType |
The ValueType callback is called for every function definition or declaration and allows accessing the type information, also behind pointers.
This can be useful, when the opaque pointer upgrade cleans all type information behind pointers. The second argument to ValueTypeCallback is the type ID of the function, the two passed functions can be used to extract type information.
Definition at line 81 of file BitcodeReader.h.