Lines Matching refs:Init
32 std::vector<Init*> TemplateArgs;
41 std::vector<Init*> TemplateArgs;
54 for (Init *TA : TemplateArgs) in dump()
79 bool TGParser::SetValue(Record *CurRec, SMLoc Loc, Init *ValName, in SetValue()
80 const std::vector<unsigned> &BitList, Init *V) { in SetValue()
108 Init *BI = V->convertInitializerTo(BitsRecTy::get(BitList.size())); in SetValue()
115 SmallVector<Init *, 16> NewBits(CurVal->getNumBits()); in SetValue()
155 ArrayRef<Init *> TArgs = SC->getTemplateArgs(); in AddSubClass()
231 ArrayRef<Init *> SMCTArgs = SMC->Rec.getTemplateArgs(); in AddSubMultiClass()
312 Init *ItemVal = List->resolveListElementReference(*CurRec, nullptr, i); in ProcessForeachDefs()
382 Init *TGParser::ParseObjectName(MultiClass *CurMultiClass) { in ParseObjectName()
713 Init *TGParser::ParseIDValue(Record *CurRec, in ParseIDValue()
720 Init *TemplateArgName = QualifyName(*CurRec, CurMultiClass, Name, ":"); in ParseIDValue()
734 Init *MCName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name, in ParseIDValue()
769 Init *TGParser::ParseOperation(Record *CurRec, RecTy *ItemType) { in ParseOperation()
815 Init *LHS = ParseValue(CurRec); in ParseOperation()
848 Init *Item = LHSl->getElement(0); in ParseOperation()
917 SmallVector<Init*, 2> InitList; in ParseOperation()
952 Init *RHS = InitList.pop_back_val(); in ParseOperation()
993 Init *LHS = ParseValue(CurRec); in ParseOperation()
1002 Init *MHS = ParseValue(CurRec, ItemType); in ParseOperation()
1012 Init *RHS = ParseValue(CurRec, ItemType); in ParseOperation()
1138 Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType, in ParseSimpleValue()
1140 Init *R = nullptr; in ParseSimpleValue()
1151 SmallVector<Init*, 16> Bits(BinaryVal.second); in ParseSimpleValue()
1200 std::vector<Init*> ValueList = ParseValueList(CurRec, Class); in ParseSimpleValue()
1233 for (Init *TArg : CurMultiClass->Rec.getTemplateArgs()) { in ParseSimpleValue()
1259 std::vector<Init*> Vals; in ParseSimpleValue()
1271 SmallVector<Init *, 16> NewBits; in ParseSimpleValue()
1296 Init *Bit = Vals[i]->convertInitializerTo(BitRecTy::get()); in ParseSimpleValue()
1309 std::vector<Init*> Vals; in ParseSimpleValue()
1355 for (Init *V : Vals) { in ParseSimpleValue()
1409 Init *Operator = ParseValue(CurRec); in ParseSimpleValue()
1423 std::vector<std::pair<llvm::Init*, std::string> > DagArgs; in ParseSimpleValue()
1468 Init *TGParser::ParseValue(Record *CurRec, RecTy *ItemType, IDParseMode Mode) { in ParseValue()
1469 Init *Result = ParseSimpleValue(CurRec, ItemType, Mode); in ParseValue()
1568 Init *RHSResult = ParseValue(CurRec, ItemType, ParseNameMode); in ParseValue()
1595 std::vector<std::pair<llvm::Init*, std::string> >
1597 std::vector<std::pair<llvm::Init*, std::string> > Result; in ParseDagArgList()
1607 Init *Val = ParseValue(CurRec); in ParseDagArgList()
1609 return std::vector<std::pair<llvm::Init*, std::string> >(); in ParseDagArgList()
1616 return std::vector<std::pair<llvm::Init*, std::string> >(); in ParseDagArgList()
1638 std::vector<Init*> TGParser::ParseValueList(Record *CurRec, Record *ArgsRec, in ParseValueList()
1640 std::vector<Init*> Result; in ParseValueList()
1644 ArrayRef<Init *> TArgs = ArgsRec->getTemplateArgs(); in ParseValueList()
1647 return std::vector<Init*>(); in ParseValueList()
1659 if (!Result.back()) return std::vector<Init*>(); in ParseValueList()
1665 ArrayRef<Init *> TArgs = ArgsRec->getTemplateArgs(); in ParseValueList()
1668 return std::vector<Init*>(); in ParseValueList()
1676 if (!Result.back()) return std::vector<Init*>(); in ParseValueList()
1693 Init *TGParser::ParseDeclaration(Record *CurRec, in ParseDeclaration()
1708 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseDeclaration()
1729 Init *Val = ParseValue(CurRec, Type); in ParseDeclaration()
1755 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseForeachDeclaration()
1771 Init *List = ParseSimpleValue(nullptr, nullptr, ParseForeachMode); in ParseForeachDeclaration()
1808 std::vector<Init*> Values; in ParseForeachDeclaration()
1834 Init *TemplArg = ParseDeclaration(CurRec, true/*templateargs*/); in ParseTemplateArgList()
1895 Init *Val = ParseValue(CurRec, Type); in ParseBodyItem()
1991 Init *Name = ParseObjectName(CurMultiClass); in ParseDef()
2040 for (Init *TArg : CurMultiClass->Rec.getTemplateArgs()) { in ParseDef()
2171 Init *Val = ParseValue(nullptr); in ParseLetList()
2317 Init *&DefmPrefix, in InstantiateMulticlassDef()
2319 ArrayRef<Init *> TArgs, in InstantiateMulticlassDef()
2320 std::vector<Init *> &TemplateVals) { in InstantiateMulticlassDef()
2335 Init *DefName = DefProto->getNameInit(); in InstantiateMulticlassDef()
2440 ArrayRef<Init *> TArgs, in ResolveMulticlassDefArgs()
2441 std::vector<Init *> &TemplateVals, in ResolveMulticlassDefArgs()
2490 for (Init * TA : CurMultiClass->Rec.getTemplateArgs()) { in ResolveMulticlassDef()
2506 Init *DefmPrefix = nullptr; in ParseDefm()
2536 std::vector<Init*> &TemplateVals = Ref.TemplateArgs; in ParseDefm()
2539 ArrayRef<Init *> TArgs = MC->Rec.getTemplateArgs(); in ParseDefm()