Lines Matching refs:RK

53   RecordKeeperImpl(RecordKeeper &RK)  in RecordKeeperImpl()
54 : SharedBitRecTy(RK), SharedIntRecTy(RK), SharedStringRecTy(RK), in RecordKeeperImpl()
55 SharedDagRecTy(RK), AnyRecord(RK, 0), TheUnsetInit(RK), in RecordKeeperImpl()
109 ListTy = new (RK.getImpl().Allocator) ListRecTy(this); in getListTy()
120 BitRecTy *BitRecTy::get(RecordKeeper &RK) { in get() argument
121 return &RK.getImpl().SharedBitRecTy; in get()
132 BitsRecTy *BitsRecTy::get(RecordKeeper &RK, unsigned Sz) { in get() argument
133 detail::RecordKeeperImpl &RKImpl = RK.getImpl(); in get()
138 Ty = new (RKImpl.Allocator) BitsRecTy(RK, Sz); in get()
159 IntRecTy *IntRecTy::get(RecordKeeper &RK) { in get() argument
160 return &RK.getImpl().SharedIntRecTy; in get()
168 StringRecTy *StringRecTy::get(RecordKeeper &RK) { in get() argument
169 return &RK.getImpl().SharedStringRecTy; in get()
197 DagRecTy *DagRecTy::get(RecordKeeper &RK) { in get() argument
198 return &RK.getImpl().SharedDagRecTy; in get()
212 RecordRecTy *RecordRecTy::get(RecordKeeper &RK, in get() argument
214 detail::RecordKeeperImpl &RKImpl = RK.getImpl(); in get()
245 RecordRecTy *Ty = new (Mem) RecordRecTy(RK, Classes.size()); in get()
359 UnsetInit *UnsetInit::get(RecordKeeper &RK) { in get() argument
360 return &RK.getImpl().TheUnsetInit; in get()
371 BitInit *BitInit::get(RecordKeeper &RK, bool V) { in get() argument
372 return V ? &RK.getImpl().TrueBitInit : &RK.getImpl().FalseBitInit; in get()
399 BitsInit *BitsInit::get(RecordKeeper &RK, ArrayRef<Init *> Range) { in get() argument
403 detail::RecordKeeperImpl &RKImpl = RK.getImpl(); in get()
410 BitsInit *I = new (Mem) BitsInit(RK, Range.size()); in get()
516 IntInit *IntInit::get(RecordKeeper &RK, int64_t V) { in get() argument
517 IntInit *&I = RK.getImpl().TheIntInitPool[V]; in get()
519 I = new (RK.getImpl().Allocator) IntInit(RK, V); in get()
574 AnonymousNameInit *AnonymousNameInit::get(RecordKeeper &RK, unsigned V) { in get() argument
575 return new (RK.getImpl().Allocator) AnonymousNameInit(RK, V); in get()
596 StringInit *StringInit::get(RecordKeeper &RK, StringRef V, StringFormat Fmt) { in get() argument
597 detail::RecordKeeperImpl &RKImpl = RK.getImpl(); in get()
602 Entry.second = new (RKImpl.Allocator) StringInit(RK, Entry.getKey(), Fmt); in get()
627 detail::RecordKeeperImpl &RK = EltTy->getRecordKeeper().getImpl(); in get() local
629 if (ListInit *I = RK.TheListInitPool.FindNodeOrInsertPos(ID, IP)) in get()
635 void *Mem = RK.Allocator.Allocate(totalSizeToAlloc<Init *>(Range.size()), in get()
640 RK.TheListInitPool.InsertNode(I, IP); in get()
763 detail::RecordKeeperImpl &RK = Type->getRecordKeeper().getImpl(); in get() local
765 if (UnOpInit *I = RK.TheUnOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
768 UnOpInit *I = new (RK.Allocator) UnOpInit(Opc, LHS, Type); in get()
769 RK.TheUnOpInitPool.InsertNode(I, IP); in get()
778 RecordKeeper &RK = getRecordKeeper(); in Fold() local
786 return StringInit::get(RK, LHSd->getAsString()); in Fold()
789 LHS->convertInitializerTo(IntRecTy::get(RK)))) in Fold()
790 return StringInit::get(RK, LHSi->getAsString()); in Fold()
836 LHS->convertInitializerTo(IntRecTy::get(RK)))) in Fold()
837 return IntInit::get(RK, LHSi->getValue() ? 0 : 1); in Fold()
858 return IntInit::get(RK, LHSl->size()); in Fold()
860 return IntInit::get(RK, LHSd->arg_size()); in Fold()
862 return IntInit::get(RK, LHSs->getValue().size()); in Fold()
867 return IntInit::get(RK, LHSl->empty()); in Fold()
869 return IntInit::get(RK, LHSd->arg_empty()); in Fold()
871 return IntInit::get(RK, LHSs->getValue().empty()); in Fold()
928 detail::RecordKeeperImpl &RK = LHS->getRecordKeeper().getImpl(); in get() local
930 if (BinOpInit *I = RK.TheBinOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
933 BinOpInit *I = new (RK.Allocator) BinOpInit(Opc, LHS, RHS, Type); in get()
934 RK.TheBinOpInitPool.InsertNode(I, IP); in get()
974 RecordKeeper &RK = List->getRecordKeeper(); in interleaveIntList() local
976 return StringInit::get(RK, ""); in interleaveIntList()
978 List->getElement(0)->convertInitializerTo(IntRecTy::get(RK))); in interleaveIntList()
986 List->getElement(I)->convertInitializerTo(IntRecTy::get(RK))); in interleaveIntList()
991 return StringInit::get(RK, Result); in interleaveIntList()
1254 detail::RecordKeeperImpl &RK = LHS->getRecordKeeper().getImpl(); in get() local
1256 if (TernOpInit *I = RK.TheTernOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
1259 TernOpInit *I = new (RK.Allocator) TernOpInit(Opc, LHS, MHS, RHS, Type); in get()
1260 RK.TheTernOpInitPool.InsertNode(I, IP); in get()
1349 RecordKeeper &RK = getRecordKeeper(); in Fold() local
1390 return StringInit::get(RK, Val); in Fold()
1409 LHS->convertInitializerTo(IntRecTy::get(RK)))) { in Fold()
1430 Init *Node = MHSl ? MHSl->getElement(i) : UnsetInit::get(RK); in Fold()
1431 Init *Name = RHSl ? RHSl->getElement(i) : UnsetInit::get(RK); in Fold()
1456 return StringInit::get(RK, LHSs->getValue().substr(Start, Length), in Fold()
1476 return IntInit::get(RK, -1); in Fold()
1477 return IntInit::get(RK, I); in Fold()
1548 detail::RecordKeeperImpl &RK = Start->getRecordKeeper().getImpl(); in get() local
1550 if (FoldOpInit *I = RK.TheFoldOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
1553 FoldOpInit *I = new (RK.Allocator) FoldOpInit(Start, List, A, B, Expr, Type); in get()
1554 RK.TheFoldOpInitPool.InsertNode(I, IP); in get()
1613 detail::RecordKeeperImpl &RK = Expr->getRecordKeeper().getImpl(); in get() local
1615 if (IsAOpInit *I = RK.TheIsAOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
1618 IsAOpInit *I = new (RK.Allocator) IsAOpInit(CheckType, Expr); in get()
1619 RK.TheIsAOpInitPool.InsertNode(I, IP); in get()
1674 detail::RecordKeeperImpl &RK = Expr->getRecordKeeper().getImpl(); in get() local
1676 if (ExistsOpInit *I = RK.TheExistsOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
1679 ExistsOpInit *I = new (RK.Allocator) ExistsOpInit(CheckType, Expr); in get()
1680 RK.TheExistsOpInitPool.InsertNode(I, IP); in get()
1817 detail::RecordKeeperImpl &RK = T->getRecordKeeper().getImpl(); in get() local
1818 VarInit *&I = RK.TheVarInitPool[std::make_pair(T, VN)]; in get()
1820 I = new (RK.Allocator) VarInit(VN, T); in get()
1842 detail::RecordKeeperImpl &RK = T->getRecordKeeper().getImpl(); in get() local
1843 VarBitInit *&I = RK.TheVarBitInitPool[std::make_pair(T, B)]; in get()
1845 I = new (RK.Allocator) VarBitInit(T, B); in get()
1862 detail::RecordKeeperImpl &RK = T->getRecordKeeper().getImpl(); in get() local
1863 VarListElementInit *&I = RK.TheVarListElementInitPool[std::make_pair(T, E)]; in get()
1865 I = new (RK.Allocator) VarListElementInit(T, E); in get()
1932 detail::RecordKeeperImpl &RK = Class->getRecords().getImpl(); in get() local
1934 if (VarDefInit *I = RK.TheVarDefInitPool.FindNodeOrInsertPos(ID, IP)) in get()
1937 void *Mem = RK.Allocator.Allocate(totalSizeToAlloc<Init *>(Args.size()), in get()
1942 RK.TheVarDefInitPool.InsertNode(I, IP); in get()
2048 detail::RecordKeeperImpl &RK = R->getRecordKeeper().getImpl(); in get() local
2049 FieldInit *&I = RK.TheFieldInitPool[std::make_pair(R, FN)]; in get()
2051 I = new (RK.Allocator) FieldInit(R, FN); in get()
2122 detail::RecordKeeperImpl &RK = Ty->getRecordKeeper().getImpl(); in get() local
2124 if (CondOpInit *I = RK.TheCondOpInitPool.FindNodeOrInsertPos(ID, IP)) in get()
2127 void *Mem = RK.Allocator.Allocate( in get()
2135 RK.TheCondOpInitPool.InsertNode(I, IP); in get()
2163 RecordKeeper &RK = getRecordKeeper(); in Fold() local
2169 Cond->convertInitializerTo(IntRecTy::get(RK)))) { in Fold()
2244 detail::RecordKeeperImpl &RK = V->getRecordKeeper().getImpl(); in get() local
2246 if (DagInit *I = RK.TheDagInitPool.FindNodeOrInsertPos(ID, IP)) in get()
2249 void *Mem = RK.Allocator.Allocate( in get()
2257 RK.TheDagInitPool.InsertNode(I, IP); in get()
2457 unsigned Record::getNewUID(RecordKeeper &RK) { in getNewUID() argument
2458 return RK.getImpl().LastRecordID++; in getNewUID()
2816 raw_ostream &llvm::operator<<(raw_ostream &OS, const RecordKeeper &RK) { in operator <<() argument
2818 for (const auto &C : RK.getClasses()) in operator <<()
2822 for (const auto &D : RK.getDefs()) in operator <<()