Lines Matching full:constantclass
411 template<class ConstantClass, class TypeClass, class ValType>
413 static ConstantClass *create(TypeClass *Ty, const ValType &V) {
414 return new(ConstantTraits<ValType>::uses(V)) ConstantClass(Ty, V);
418 template<class ConstantClass, class TypeClass>
420 static ConstantClass *create(TypeClass *Ty, ArrayRef<Constant*> V) {
421 return new(V.size()) ConstantClass(Ty, V);
425 template<class ConstantClass>
428 static ValType getValType(ConstantClass *C) {
513 template<class ValType, class ValRefType, class TypeClass, class ConstantClass,
518 typedef std::map<MapKey, ConstantClass *> MapTy;
519 typedef std::map<ConstantClass *, typename MapTy::iterator> InverseMapTy;
549 typename MapTy::iterator InsertOrGetItem(std::pair<MapKey, ConstantClass *>
558 typename MapTy::iterator FindExistingElement(ConstantClass *CP) {
569 ConstantKeyData<ConstantClass>::getValType(CP)));
579 ConstantClass *Create(TypeClass *Ty, ValRefType V,
581 ConstantClass* Result =
582 ConstantCreator<ConstantClass,TypeClass,ValType>::create(Ty, V);
596 ConstantClass *getOrCreate(TypeClass *Ty, ValRefType V) {
598 ConstantClass* Result = 0;
613 void remove(ConstantClass *CP) {
627 void MoveConstantToNewSlot(ConstantClass *C, typename MapTy::iterator I) {
650 template<class TypeClass, class ConstantClass>
657 typedef DenseMapInfo<ConstantClass*> ConstantClassInfo;
660 static inline ConstantClass* getEmptyKey() {
663 static inline ConstantClass* getTombstoneKey() {
666 static unsigned getHashValue(const ConstantClass *CP) {
673 static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) {
680 static bool isEqual(const LookupKey &LHS, const ConstantClass *RHS) {
694 typedef DenseMap<ConstantClass *, char, MapInfo> MapTy;
715 typename MapTy::iterator findExistingElement(ConstantClass *CP) {
719 ConstantClass *Create(TypeClass *Ty, Operands V, typename MapTy::iterator I) {
720 ConstantClass* Result =
721 ConstantArrayCreator<ConstantClass,TypeClass>::create(Ty, V);
732 ConstantClass *getOrCreate(TypeClass *Ty, Operands V) {
734 ConstantClass* Result = 0;
755 void insert(ConstantClass *CP) {
760 void remove(ConstantClass *CP) {