LLVM: llvm::ParserCallbacks Struct Reference (original) (raw)

#include "[llvm/Bitcode/BitcodeReader.h](BitcodeReader%5F8h%5Fsource.html)"

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.

llvm::ParserCallbacks::ParserCallbacks ( ) default

ParserCallbacks() [2/2]

DataLayout

MDType

The MDType callback is called for every value in metadata.

Definition at line 83 of file BitcodeReader.h.

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.


The documentation for this struct was generated from the following file: