Lines Matching refs:CurMultiClass

60     CurRec = &CurMultiClass->Rec;  in AddValue()
82 if (!CurRec) CurRec = &CurMultiClass->Rec; in SetValue()
377 Init *TGParser::ParseObjectName(MultiClass *CurMultiClass) { in ParseObjectName() argument
391 if (CurMultiClass) in ParseObjectName()
392 CurRec = &CurMultiClass->Rec; in ParseObjectName()
715 Init *TemplateArgName = QualifyName(*CurRec, CurMultiClass, Name, ":"); in ParseIDValue()
717 if (CurMultiClass) in ParseIDValue()
718 TemplateArgName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name, in ParseIDValue()
728 if (CurMultiClass) { in ParseIDValue()
729 Init *MCName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name, in ParseIDValue()
732 if (CurMultiClass->Rec.isTemplateArg(MCName)) { in ParseIDValue()
733 const RecordVal *RV = CurMultiClass->Rec.getValue(MCName); in ParseIDValue()
868 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass); in ParseOperation()
949 ->Fold(CurRec, CurMultiClass); in ParseOperation()
956 ->Fold(CurRec, CurMultiClass); in ParseOperation()
1078 CurMultiClass); in ParseOperation()
1217 if (!CurMultiClass) { in ParseSimpleValue()
1225 CurMultiClass->DefPrototypes.push_back(std::move(NewRecOwner)); in ParseSimpleValue()
1228 for (Init *TArg : CurMultiClass->Rec.getTemplateArgs()) { in ParseSimpleValue()
1229 const RecordVal *RV = CurMultiClass->Rec.getValue(TArg); in ParseSimpleValue()
1236 const RecordVal *MCNameRV = CurMultiClass->Rec.getValue("NAME"); in ParseSimpleValue()
1578 StringRecTy::get())->Fold(CurRec, CurMultiClass); in ParseValue()
1708 DeclName = QualifyName(*CurRec, CurMultiClass, DeclName, ":"); in ParseDeclaration()
1710 assert(CurMultiClass); in ParseDeclaration()
1711 if (CurMultiClass) in ParseDeclaration()
1712 DeclName = QualifyName(CurMultiClass->Rec, CurMultiClass, DeclName, in ParseDeclaration()
1826 Record *TheRecToAddTo = CurRec ? CurRec : &CurMultiClass->Rec; in ParseTemplateArgList()
1979 bool TGParser::ParseDef(MultiClass *CurMultiClass) { in ParseDef() argument
1986 Init *Name = ParseObjectName(CurMultiClass); in ParseDef()
1994 if (!CurMultiClass && Loops.empty()) { in ParseDef()
2005 } else if (CurMultiClass) { in ParseDef()
2015 for (const auto &Proto : CurMultiClass->DefPrototypes) in ParseDef()
2019 CurMultiClass->DefPrototypes.push_back(std::move(CurRecOwner)); in ParseDef()
2024 if (!CurMultiClass) // Def's in multiclasses aren't really defs. in ParseDef()
2033 if (CurMultiClass) { in ParseDef()
2035 for (Init *TArg : CurMultiClass->Rec.getTemplateArgs()) { in ParseDef()
2036 const RecordVal *RV = CurMultiClass->Rec.getValue(TArg); in ParseDef()
2055 bool TGParser::ParseForeach(MultiClass *CurMultiClass) { in ParseForeach() argument
2075 if (ParseObject(CurMultiClass)) in ParseForeach()
2083 if (ParseObjectList(CurMultiClass)) in ParseForeach()
2184 bool TGParser::ParseTopLevelLet(MultiClass *CurMultiClass) { in ParseTopLevelLet() argument
2200 if (ParseObject(CurMultiClass)) in ParseTopLevelLet()
2208 if (ParseObjectList(CurMultiClass)) in ParseTopLevelLet()
2248 CurMultiClass = Result.first->second.get(); in ParseMultiClass()
2266 ParseSubMultiClassReference(CurMultiClass); in ParseMultiClass()
2272 if (AddSubMultiClass(CurMultiClass, SubMultiClass)) in ParseMultiClass()
2277 SubMultiClass = ParseSubMultiClassReference(CurMultiClass); in ParseMultiClass()
2299 if (ParseObject(CurMultiClass)) in ParseMultiClass()
2307 CurMultiClass = nullptr; in ParseMultiClass()
2372 if (!CurMultiClass) { in InstantiateMulticlassDef()
2475 if (!CurMultiClass) in ResolveMulticlassDef()
2477 for (const auto &Proto : CurMultiClass->DefPrototypes) in ResolveMulticlassDef()
2481 CurMultiClass->DefPrototypes.push_back(std::unique_ptr<Record>(CurRec)); in ResolveMulticlassDef()
2484 for (Init * TA : CurMultiClass->Rec.getTemplateArgs()) { in ResolveMulticlassDef()
2485 const RecordVal *RV = CurMultiClass->Rec.getValue(TA); in ResolveMulticlassDef()
2497 bool TGParser::ParseDefm(MultiClass *CurMultiClass) { in ParseDefm() argument
2503 DefmPrefix = ParseObjectName(CurMultiClass); in ParseDefm()
2562 if (DefProto->isResolveFirst() && !CurMultiClass) { in ParseDefm()
2613 if (!CurMultiClass) in ParseDefm()