LLVM API Documentation
#include <GVMaterializer.h>
Public Member Functions | |
virtual | ~GVMaterializer () |
virtual bool | isMaterializable (const GlobalValue *GV) const =0 |
virtual bool | isDematerializable (const GlobalValue *GV) const =0 |
virtual std::error_code | Materialize (GlobalValue *GV)=0 |
virtual void | Dematerialize (GlobalValue *) |
virtual std::error_code | MaterializeModule (Module *M)=0 |
Protected Member Functions | |
GVMaterializer () |
Definition at line 28 of file GVMaterializer.h.
llvm::GVMaterializer::GVMaterializer | ( | ) | [inline, protected] |
Definition at line 30 of file GVMaterializer.h.
GVMaterializer::~GVMaterializer | ( | ) | [virtual] |
Definition at line 18 of file GVMaterializer.cpp.
virtual void llvm::GVMaterializer::Dematerialize | ( | GlobalValue * | ) | [inline, virtual] |
If the given GlobalValue is read in, and if the GVMaterializer supports it, release the memory for the GV, and set it up to be materialized lazily. If the Materializer doesn't support this capability, this method is a noop.
Reimplemented in llvm::BitcodeReader.
Definition at line 52 of file GVMaterializer.h.
virtual bool llvm::GVMaterializer::isDematerializable | ( | const GlobalValue * | GV | ) | const [pure virtual] |
True if GV has been materialized and can be dematerialized back to whatever backing store this GVMaterializer uses.
Implemented in llvm::BitcodeReader.
virtual bool llvm::GVMaterializer::isMaterializable | ( | const GlobalValue * | GV | ) | const [pure virtual] |
True if GV can be materialized from whatever backing store this GVMaterializer uses and has not been materialized yet.
Implemented in llvm::BitcodeReader.
virtual std::error_code llvm::GVMaterializer::Materialize | ( | GlobalValue * | GV | ) | [pure virtual] |
Make sure the given GlobalValue is fully read.
Implemented in llvm::BitcodeReader.
virtual std::error_code llvm::GVMaterializer::MaterializeModule | ( | Module * | M | ) | [pure virtual] |
Make sure the entire Module has been completely read.
Implemented in llvm::BitcodeReader.