Lines Matching refs:Init
213 void Init::anchor() { } in anchor()
214 void Init::dump() const { return print(errs()); } in dump()
221 Init *UnsetInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
223 SmallVector<Init *, 16> NewBits(BRT->getNumBits()); in convertInitializerTo()
242 Init *BitInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
259 ProfileBitsInit(FoldingSetNodeID &ID, ArrayRef<Init *> Range) { in ProfileBitsInit()
262 for (Init *I : Range) in ProfileBitsInit()
266 BitsInit *BitsInit::get(ArrayRef<Init *> Range) { in get()
287 Init *BitsInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
313 Init *
315 SmallVector<Init *, 16> NewBits(Bits.size()); in convertInitializerBitRange()
329 if (Init *Bit = getBit(e-i-1)) in getAsString()
340 static Init *fixBitInit(const RecordVal *RV, Init *Before, Init *After) { in fixBitInit()
349 Init *BitsInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
351 SmallVector<Init *, 16> NewBits(getNumBits()); in resolveReferences()
353 Init *CachedInit = nullptr; in resolveReferences()
354 Init *CachedBitVar = nullptr; in resolveReferences()
358 Init *CurBit = Bits[i]; in resolveReferences()
359 Init *CurBitVar = CurBit->getBitVar(); in resolveReferences()
365 Init *Bit = CachedInit->getBit(CurBit->getBitNum()); in resolveReferences()
373 Init *B; in resolveReferences()
383 Init *Bit = CurBitVar->getBit(CurBit->getBitNum()); in resolveReferences()
414 Init *IntInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
430 SmallVector<Init *, 16> NewBits(BRT->getNumBits()); in convertInitializerTo()
440 Init *
442 SmallVector<Init *, 16> NewBits(Bits.size()); in convertInitializerBitRange()
461 Init *StringInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
469 ArrayRef<Init *> Range, in ProfileListInit()
474 for (Init *I : Range) in ProfileListInit()
478 ListInit *ListInit::get(ArrayRef<Init *> Range, RecTy *EltTy) { in get()
501 Init *ListInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
503 std::vector<Init*> Elements; in convertInitializerTo()
507 for (Init *I : getValues()) in convertInitializerTo()
508 if (Init *CI = I->convertInitializerTo(LRT->getElementType())) in convertInitializerTo()
520 Init *
522 std::vector<Init*> Vals; in convertInitListSlice()
539 Init *ListInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
540 std::vector<Init*> Resolved; in resolveReferences()
544 for (Init *CurElt : getValues()) { in resolveReferences()
545 Init *E; in resolveReferences()
560 Init *ListInit::resolveListElementReference(Record &R, const RecordVal *IRV, in resolveListElementReference()
564 Init *E = getElement(Elt); in resolveListElementReference()
582 Init *OpInit::resolveListElementReference(Record &R, const RecordVal *IRV, in resolveListElementReference()
584 Init *Resolved = resolveReferences(R, IRV); in resolveListElementReference()
592 if (Init *New = Typed->resolveListElementReference(R, IRV, Elt)) in resolveListElementReference()
600 Init *OpInit::getBit(unsigned Bit) const { in getBit()
606 UnOpInit *UnOpInit::get(UnaryOp opc, Init *lhs, RecTy *Type) { in get()
607 typedef std::pair<std::pair<unsigned, Init *>, RecTy *> Key; in get()
617 Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { in Fold()
641 Init *TemplateArgName = QualifyName(*CurRec, CurMultiClass, Name, in Fold()
656 Init *MCName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name, in Fold()
679 if (Init *NewInit = BI->convertInitializerTo(IntRecTy::get())) in Fold()
715 Init *UnOpInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
716 Init *lhs = LHS->resolveReferences(R, RV); in resolveReferences()
734 BinOpInit *BinOpInit::get(BinaryOp opc, Init *lhs, in get()
735 Init *rhs, RecTy *Type) { in get()
737 std::pair<std::pair<unsigned, Init *>, Init *>, in get()
751 Init *BinOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { in Fold()
761 std::vector<Init*> Args; in Fold()
779 std::vector<Init *> Args; in Fold()
842 Init *BinOpInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
843 Init *lhs = LHS->resolveReferences(R, RV); in resolveReferences()
844 Init *rhs = RHS->resolveReferences(R, RV); in resolveReferences()
867 TernOpInit *TernOpInit::get(TernaryOp opc, Init *lhs, Init *mhs, Init *rhs, in get()
871 std::pair<std::pair<unsigned, RecTy *>, Init *>, in get()
872 Init * in get()
874 Init * in get()
890 static Init *ForeachHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type,
893 static Init *EvaluateOperation(OpInit *RHSo, Init *LHS, Init *Arg, in EvaluateOperation()
901 std::vector<Init *> NewOperands; in EvaluateOperation()
904 if (Init *Result = EvaluateOperation(RHSoo, LHS, Arg, in EvaluateOperation()
918 Init *NewVal = NewOp->Fold(CurRec, CurMultiClass); in EvaluateOperation()
922 static Init *ForeachHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type, in ForeachHelper()
937 Init *Val = MHSd->getOperator(); in ForeachHelper()
938 if (Init *Result = EvaluateOperation(RHSo, LHS, Val, in ForeachHelper()
942 std::vector<std::pair<Init *, std::string> > args; in ForeachHelper()
944 Init *Arg = MHSd->getArg(i); in ForeachHelper()
948 if (Init *Result = EvaluateOperation(RHSo, LHS, Arg, Type, in ForeachHelper()
961 std::vector<Init *> NewOperands; in ForeachHelper()
962 std::vector<Init *> NewList(MHSl->begin(), MHSl->end()); in ForeachHelper()
964 for (Init *&Item : NewList) { in ForeachHelper()
976 Init *NewItem = NewOp->Fold(CurRec, CurMultiClass); in ForeachHelper()
985 Init *TernOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { in Fold()
1031 if (Init *Result = ForeachHelper(LHS, MHS, RHS, getType(), in Fold()
1039 if (Init *I = LHS->convertInitializerTo(IntRecTy::get())) in Fold()
1053 Init *TernOpInit::resolveReferences(Record &R, in resolveReferences()
1055 Init *lhs = LHS->resolveReferences(R, RV); in resolveReferences()
1059 if (Init *I = lhs->convertInitializerTo(IntRecTy::get())) in resolveReferences()
1064 Init *mhs = MHS->resolveReferences(R, RV); in resolveReferences()
1068 Init *rhs = RHS->resolveReferences(R, RV); in resolveReferences()
1074 Init *mhs = MHS->resolveReferences(R, RV); in resolveReferences()
1075 Init *rhs = RHS->resolveReferences(R, RV); in resolveReferences()
1101 Init *
1142 SmallVector<Init *, 16> NewBits(BRT->getNumBits()); in convertInitializerTo()
1177 Init *
1183 SmallVector<Init *, 16> NewBits(Bits.size()); in convertInitializerBitRange()
1193 Init *
1201 std::vector<Init*> ListInits; in convertInitListSlice()
1211 Init *Value = StringInit::get(VN); in get()
1215 VarInit *VarInit::get(Init *VN, RecTy *T) { in get()
1216 typedef std::pair<RecTy *, Init *> Key; in get()
1231 Init *VarInit::getBit(unsigned Bit) const { in getBit()
1237 Init *VarInit::resolveListElementReference(Record &R, in resolveListElementReference()
1251 Init *E = LI->getElement(Elt); in resolveListElementReference()
1268 Init *VarInit::getFieldInit(Record &R, const RecordVal *RV, in getFieldInit()
1274 Init *TheInit = Val->getValue(); in getFieldInit()
1276 if (Init *I = TheInit->getFieldInit(R, RV, FieldName)) in getFieldInit()
1288 Init *VarInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
1306 Init *VarBitInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
1317 Init *VarBitInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
1318 Init *I = TI->resolveReferences(R, RV); in resolveReferences()
1341 Init *
1343 if (Init *I = getVariable()->resolveListElementReference(R, RV, in resolveReferences()
1349 Init *VarListElementInit::getBit(unsigned Bit) const { in getBit()
1355 Init *VarListElementInit:: resolveListElementReference(Record &R, in resolveListElementReference()
1358 if (Init *Result = TI->resolveListElementReference(R, RV, Element)) { in resolveListElementReference()
1360 if (Init *Result2 = TInit->resolveListElementReference(R, RV, Elt)) in resolveListElementReference()
1374 Init *DefInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
1387 Init *DefInit::getFieldInit(Record &R, const RecordVal *RV, in getFieldInit()
1397 FieldInit *FieldInit::get(Init *R, const std::string &FN) { in get()
1398 typedef std::pair<Init *, TableGenStringKey> Key; in get()
1408 Init *FieldInit::getBit(unsigned Bit) const { in getBit()
1414 Init *FieldInit::resolveListElementReference(Record &R, const RecordVal *RV, in resolveListElementReference()
1416 if (Init *ListVal = Rec->getFieldInit(R, RV, FieldName)) in resolveListElementReference()
1419 Init *E = LI->getElement(Elt); in resolveListElementReference()
1430 Init *FieldInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
1431 Init *NewRec = RV ? Rec->resolveReferences(R, RV) : Rec; in resolveReferences()
1433 if (Init *BitsVal = NewRec->getFieldInit(R, RV, FieldName)) { in resolveReferences()
1434 Init *BVR = BitsVal->resolveReferences(R, RV); in resolveReferences()
1443 static void ProfileDagInit(FoldingSetNodeID &ID, Init *V, const std::string &VN, in ProfileDagInit()
1444 ArrayRef<Init *> ArgRange, in ProfileDagInit()
1449 ArrayRef<Init *>::iterator Arg = ArgRange.begin(); in ProfileDagInit()
1460 DagInit::get(Init *V, const std::string &VN, in get()
1461 ArrayRef<Init *> ArgRange, in get()
1480 DagInit::get(Init *V, const std::string &VN, in get()
1481 const std::vector<std::pair<Init*, std::string> > &args) { in get() argument
1482 std::vector<Init *> Args; in get()
1497 Init *DagInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
1504 Init *DagInit::resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
1505 std::vector<Init*> NewArgs; in resolveReferences()
1509 Init *Op = Val->resolveReferences(R, RV); in resolveReferences()
1538 RecordVal::RecordVal(Init *N, RecTy *T, bool P) in RecordVal()
1594 void Record::setName(Init *NewName) { in setName()
1621 if (Init *V = Values[i].getValue()) in resolveReferencesTo()
1631 Init *OldName = getNameInit(); in resolveReferencesTo()
1632 Init *NewName = Name->resolveReferences(*this, RV); in resolveReferencesTo()
1644 ArrayRef<Init *> TArgs = R.getTemplateArgs(); in operator <<()
1648 for (const Init *TA : TArgs) { in operator <<()
1680 Init *Record::getValueInit(StringRef FieldName) const { in getValueInit()
1745 for (Init *I : List->getValues()) { in getValueAsListOfDefs()
1779 for (Init *I : List->getValues()) { in getValueAsListOfInts()
1797 for (Init *I : List->getValues()) { in getValueAsListOfStrings()
1916 Init *llvm::QualifyName(Record &CurRec, MultiClass *CurMultiClass, in QualifyName()
1917 Init *Name, const std::string &Scoper) { in QualifyName()
1945 Init *llvm::QualifyName(Record &CurRec, MultiClass *CurMultiClass, in QualifyName()