LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::ParserCallbacks Struct Reference

#include "llvm/Bitcode/BitcodeReader.h"

Public Member Functions

 ParserCallbacks ()=default
 
 ParserCallbacks (DataLayoutCallbackFuncTy DataLayout)
 

Public Attributes

std::optional< DataLayoutCallbackFuncTyDataLayout
 
std::optional< ValueTypeCallbackTyValueType
 The ValueType callback is called for every function definition or declaration and allows accessing the type information, also behind pointers.
 
std::optional< MDTypeCallbackTyMDType
 The MDType callback is called for every value in metadata.
 

Detailed Description

Definition at line 72 of file BitcodeReader.h.

Constructor & Destructor Documentation

◆ ParserCallbacks() [1/2]

llvm::ParserCallbacks::ParserCallbacks ( )
default

◆ ParserCallbacks() [2/2]

llvm::ParserCallbacks::ParserCallbacks ( DataLayoutCallbackFuncTy  DataLayout)
inlineexplicit

Definition at line 86 of file BitcodeReader.h.

Member Data Documentation

◆ DataLayout

std::optional<DataLayoutCallbackFuncTy> llvm::ParserCallbacks::DataLayout

Definition at line 73 of file BitcodeReader.h.

Referenced by llvm::parseIR().

◆ MDType

std::optional<MDTypeCallbackTy> llvm::ParserCallbacks::MDType

The MDType callback is called for every value in metadata.

Definition at line 83 of file BitcodeReader.h.

◆ ValueType

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.


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