LLVM API Documentation
#include <ConstantsContext.h>
Classes | |
struct | MapInfo |
Public Types | |
typedef ConstantInfo < ConstantClass >::ValType | ValType |
typedef ConstantInfo < ConstantClass >::TypeClass | TypeClass |
typedef std::pair< TypeClass *, ValType > | LookupKey |
typedef DenseMap < ConstantClass *, char, MapInfo > | MapTy |
Public Member Functions | |
MapTy::iterator | map_begin () |
MapTy::iterator | map_end () |
void | freeConstants () |
ConstantClass * | getOrCreate (TypeClass *Ty, ValType V) |
Return the specified constant from the map, creating it if necessary. | |
MapTy::iterator | find (LookupKey Lookup) |
Find the constant by lookup key. | |
void | insert (ConstantClass *CP) |
Insert the constant into its proper slot. | |
void | remove (ConstantClass *CP) |
Remove this constant from the map. | |
ConstantClass * | replaceOperandsInPlace (ArrayRef< Constant * > Operands, ConstantClass *CP, Value *From, Constant *To, unsigned NumUpdated=0, unsigned OperandNo=~0u) |
void | dump () const |
Definition at line 512 of file ConstantsContext.h.
typedef std::pair<TypeClass *, ValType> llvm::ConstantUniqueMap< ConstantClass >::LookupKey |
Definition at line 516 of file ConstantsContext.h.
typedef DenseMap<ConstantClass *, char, MapInfo> llvm::ConstantUniqueMap< ConstantClass >::MapTy |
Definition at line 547 of file ConstantsContext.h.
typedef ConstantInfo<ConstantClass>::TypeClass llvm::ConstantUniqueMap< ConstantClass >::TypeClass |
Definition at line 515 of file ConstantsContext.h.
typedef ConstantInfo<ConstantClass>::ValType llvm::ConstantUniqueMap< ConstantClass >::ValType |
Definition at line 514 of file ConstantsContext.h.
void llvm::ConstantUniqueMap< ConstantClass >::dump | ( | ) | const [inline] |
Definition at line 629 of file ConstantsContext.h.
MapTy::iterator llvm::ConstantUniqueMap< ConstantClass >::find | ( | LookupKey | Lookup | ) | [inline] |
Find the constant by lookup key.
Definition at line 589 of file ConstantsContext.h.
Referenced by llvm::ConstantUniqueMap< ConstantStruct >::getOrCreate(), and llvm::ConstantUniqueMap< ConstantStruct >::replaceOperandsInPlace().
void llvm::ConstantUniqueMap< ConstantClass >::freeConstants | ( | ) | [inline] |
Definition at line 556 of file ConstantsContext.h.
Referenced by llvm::LLVMContextImpl::~LLVMContextImpl().
ConstantClass* llvm::ConstantUniqueMap< ConstantClass >::getOrCreate | ( | TypeClass * | Ty, |
ValType | V | ||
) | [inline] |
Return the specified constant from the map, creating it if necessary.
Definition at line 574 of file ConstantsContext.h.
Referenced by llvm::InlineAsm::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::ConstantExpr::get(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getExtractValue(), llvm::ConstantExpr::getFCmp(), getFoldedCast(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getICmp(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getInsertValue(), llvm::ConstantExpr::getSelect(), and llvm::ConstantExpr::getShuffleVector().
void llvm::ConstantUniqueMap< ConstantClass >::insert | ( | ConstantClass * | CP | ) | [inline] |
Insert the constant into its proper slot.
Definition at line 594 of file ConstantsContext.h.
Referenced by llvm::ConstantUniqueMap< ConstantStruct >::replaceOperandsInPlace().
MapTy::iterator llvm::ConstantUniqueMap< ConstantClass >::map_begin | ( | ) | [inline] |
Definition at line 553 of file ConstantsContext.h.
Referenced by llvm::LLVMContextImpl::~LLVMContextImpl().
MapTy::iterator llvm::ConstantUniqueMap< ConstantClass >::map_end | ( | ) | [inline] |
Definition at line 554 of file ConstantsContext.h.
Referenced by llvm::LLVMContextImpl::~LLVMContextImpl().
void llvm::ConstantUniqueMap< ConstantClass >::remove | ( | ConstantClass * | CP | ) | [inline] |
Remove this constant from the map.
Definition at line 597 of file ConstantsContext.h.
Referenced by llvm::ConstantArray::destroyConstant(), llvm::ConstantStruct::destroyConstant(), llvm::ConstantVector::destroyConstant(), and llvm::ConstantExpr::destroyConstant().
ConstantClass* llvm::ConstantUniqueMap< ConstantClass >::replaceOperandsInPlace | ( | ArrayRef< Constant * > | Operands, |
ConstantClass * | CP, | ||
Value * | From, | ||
Constant * | To, | ||
unsigned | NumUpdated = 0 , |
||
unsigned | OperandNo = ~0u |
||
) | [inline] |
Definition at line 604 of file ConstantsContext.h.