LLVM 20.0.0git
|
#include "IR/ConstantsContext.h"
Public Types | |
using | ValType = typename ConstantInfo< ConstantClass >::ValType |
using | TypeClass = typename ConstantInfo< ConstantClass >::TypeClass |
using | LookupKey = std::pair< TypeClass *, ValType > |
using | LookupKeyHashed = std::pair< unsigned, LookupKey > |
Key and hash together, so that we compute the hash only once and reuse it. | |
using | MapTy = DenseSet< ConstantClass *, MapInfo > |
Public Member Functions | |
MapTy::iterator | begin () |
MapTy::iterator | end () |
void | freeConstants () |
ConstantClass * | getOrCreate (TypeClass *Ty, ValType V) |
Return the specified constant from the map, creating it if necessary. | |
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 |
void | freeConstants () |
Definition at line 557 of file ConstantsContext.h.
using llvm::ConstantUniqueMap< ConstantClass >::LookupKey = std::pair<TypeClass *, ValType> |
Definition at line 561 of file ConstantsContext.h.
using llvm::ConstantUniqueMap< ConstantClass >::LookupKeyHashed = std::pair<unsigned, LookupKey> |
Key and hash together, so that we compute the hash only once and reuse it.
Definition at line 564 of file ConstantsContext.h.
using llvm::ConstantUniqueMap< ConstantClass >::MapTy = DenseSet<ConstantClass *, MapInfo> |
Definition at line 609 of file ConstantsContext.h.
using llvm::ConstantUniqueMap< ConstantClass >::TypeClass = typename ConstantInfo<ConstantClass>::TypeClass |
Definition at line 560 of file ConstantsContext.h.
using llvm::ConstantUniqueMap< ConstantClass >::ValType = typename ConstantInfo<ConstantClass>::ValType |
Definition at line 559 of file ConstantsContext.h.
|
inline |
Definition at line 615 of file ConstantsContext.h.
|
inline |
Definition at line 688 of file ConstantsContext.h.
References llvm::dbgs(), and LLVM_DEBUG.
|
inline |
Definition at line 616 of file ConstantsContext.h.
|
inline |
Definition at line 618 of file ConstantsContext.h.
References llvm::deleteConstant(), and I.
Referenced by llvm::LLVMContextImpl::~LLVMContextImpl().
|
inline |
Definition at line 693 of file ConstantsContext.h.
References I.
|
inline |
Return the specified constant from the map, creating it if necessary.
Hash once, and reuse it for the lookup and the insertion if needed.
Definition at line 635 of file ConstantsContext.h.
References assert(), I, and Lookup().
Referenced by llvm::ConstantVector::get(), and llvm::ConstantArray::get().
|
inline |
Remove this constant from the map.
Definition at line 653 of file ConstantsContext.h.
Referenced by llvm::ConstantUniqueMap< ConstantClass >::replaceOperandsInPlace().
|
inline |
Hash once, and reuse it for the lookup and the insertion if needed.
Definition at line 660 of file ConstantsContext.h.
References assert(), E, From, I, Lookup(), Operands, and llvm::ConstantUniqueMap< ConstantClass >::remove().