Lines Matching refs:Rec
131 for (const Record *Rec : Opcodes) { in expandCheckOpcode() local
137 expandCheckOpcode(OS, Rec); in expandCheckOpcode()
169 for (const Record *Rec : Sequence) { in expandPredicateSequence() local
174 expandPredicate(OS, Rec); in expandPredicateSequence()
229 const Record *Rec) { in expandReturnStatement() argument
234 expandPredicate(SS, Rec); in expandReturnStatement()
240 const Record *Rec) { in expandOpcodeSwitchCase() argument
241 const RecVec &Opcodes = Rec->getValueAsListOfDefs("Opcodes"); in expandOpcodeSwitchCase()
250 expandStatement(OS, Rec->getValueAsDef("CaseStmt")); in expandOpcodeSwitchCase()
261 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local
262 expandOpcodeSwitchCase(SS, Rec); in expandOpcodeSwitchStatement()
281 void PredicateExpander::expandStatement(raw_ostream &OS, const Record *Rec) { in expandStatement() argument
283 if (Rec->isSubClassOf("MCOpcodeSwitchStatement")) { in expandStatement()
284 expandOpcodeSwitchStatement(OS, Rec->getValueAsListOfDefs("Cases"), in expandStatement()
285 Rec->getValueAsDef("DefaultCase")); in expandStatement()
289 if (Rec->isSubClassOf("MCReturnStatement")) { in expandStatement()
290 expandReturnStatement(OS, Rec->getValueAsDef("Pred")); in expandStatement()
297 void PredicateExpander::expandPredicate(raw_ostream &OS, const Record *Rec) { in expandPredicate() argument
299 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate()
305 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate()
311 if (Rec->isSubClassOf("CheckNot")) { in expandPredicate()
313 expandPredicate(OS, Rec->getValueAsDef("Pred")); in expandPredicate()
318 if (Rec->isSubClassOf("CheckIsRegOperand")) in expandPredicate()
319 return expandCheckIsRegOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
321 if (Rec->isSubClassOf("CheckIsImmOperand")) in expandPredicate()
322 return expandCheckIsImmOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
324 if (Rec->isSubClassOf("CheckRegOperand")) in expandPredicate()
325 return expandCheckRegOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
326 Rec->getValueAsDef("Reg"), in expandPredicate()
327 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
329 if (Rec->isSubClassOf("CheckRegOperandSimple")) in expandPredicate()
330 return expandCheckRegOperandSimple(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
331 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
333 if (Rec->isSubClassOf("CheckInvalidRegOperand")) in expandPredicate()
334 return expandCheckInvalidRegOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
336 if (Rec->isSubClassOf("CheckImmOperand")) in expandPredicate()
337 return expandCheckImmOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
338 Rec->getValueAsInt("ImmVal"), in expandPredicate()
339 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
341 if (Rec->isSubClassOf("CheckImmOperand_s")) in expandPredicate()
342 return expandCheckImmOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
343 Rec->getValueAsString("ImmVal"), in expandPredicate()
344 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
346 if (Rec->isSubClassOf("CheckImmOperandSimple")) in expandPredicate()
347 return expandCheckImmOperandSimple(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
348 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
350 if (Rec->isSubClassOf("CheckSameRegOperand")) in expandPredicate()
351 return expandCheckSameRegOperand(OS, Rec->getValueAsInt("FirstIndex"), in expandPredicate()
352 Rec->getValueAsInt("SecondIndex")); in expandPredicate()
354 if (Rec->isSubClassOf("CheckNumOperands")) in expandPredicate()
355 return expandCheckNumOperands(OS, Rec->getValueAsInt("NumOps")); in expandPredicate()
357 if (Rec->isSubClassOf("CheckPseudo")) in expandPredicate()
358 return expandCheckPseudo(OS, Rec->getValueAsListOfDefs("ValidOpcodes")); in expandPredicate()
360 if (Rec->isSubClassOf("CheckOpcode")) in expandPredicate()
361 return expandCheckOpcode(OS, Rec->getValueAsListOfDefs("ValidOpcodes")); in expandPredicate()
363 if (Rec->isSubClassOf("CheckAll")) in expandPredicate()
364 return expandPredicateSequence(OS, Rec->getValueAsListOfDefs("Predicates"), in expandPredicate()
367 if (Rec->isSubClassOf("CheckAny")) in expandPredicate()
368 return expandPredicateSequence(OS, Rec->getValueAsListOfDefs("Predicates"), in expandPredicate()
371 if (Rec->isSubClassOf("CheckFunctionPredicate")) { in expandPredicate()
373 OS, Rec->getValueAsString("MCInstFnName"), in expandPredicate()
374 Rec->getValueAsString("MachineInstrFnName")); in expandPredicate()
377 if (Rec->isSubClassOf("CheckFunctionPredicateWithTII")) { in expandPredicate()
379 OS, Rec->getValueAsString("MCInstFnName"), in expandPredicate()
380 Rec->getValueAsString("MachineInstrFnName"), in expandPredicate()
381 Rec->getValueAsString("TIIPtrName")); in expandPredicate()
384 if (Rec->isSubClassOf("CheckNonPortable")) in expandPredicate()
385 return expandCheckNonPortable(OS, Rec->getValueAsString("CodeBlock")); in expandPredicate()
387 if (Rec->isSubClassOf("TIIPredicate")) in expandPredicate()
388 return expandTIIFunctionCall(OS, Rec->getValueAsString("FunctionName")); in expandPredicate()
395 const Record *Rec = Fn.getDeclaration(); in expandHeader() local
396 StringRef FunctionName = Rec->getValueAsString("Name"); in expandHeader()
407 if (Rec->getValueAsBit("UpdatesOpcodeMask")) in expandHeader()
415 if (Rec->getValueAsBit("OverridesBaseClassMember")) in expandHeader()
535 const Record *Rec = Fn.getDeclaration(); in expandSTIPredicate() local
536 if (shouldExpandForMC() && !Rec->getValueAsBit("ExpandForMC")) in expandSTIPredicate()