Lines Matching refs:Rec
132 for (const Record *Rec : Opcodes) { in expandCheckOpcode() local
138 expandCheckOpcode(OS, Rec); in expandCheckOpcode()
170 for (const Record *Rec : Sequence) { in expandPredicateSequence() local
175 expandPredicate(OS, Rec); in expandPredicateSequence()
218 const Record *Rec) { in expandReturnStatement() argument
223 expandPredicate(SS, Rec); in expandReturnStatement()
230 const Record *Rec) { in expandOpcodeSwitchCase() argument
231 const RecVec &Opcodes = Rec->getValueAsListOfDefs("Opcodes"); in expandOpcodeSwitchCase()
240 expandStatement(OS, Rec->getValueAsDef("CaseStmt")); in expandOpcodeSwitchCase()
251 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local
252 expandOpcodeSwitchCase(SS, Rec); in expandOpcodeSwitchStatement()
272 void PredicateExpander::expandStatement(raw_ostream &OS, const Record *Rec) { in expandStatement() argument
274 if (Rec->isSubClassOf("MCOpcodeSwitchStatement")) { in expandStatement()
275 expandOpcodeSwitchStatement(OS, Rec->getValueAsListOfDefs("Cases"), in expandStatement()
276 Rec->getValueAsDef("DefaultCase")); in expandStatement()
280 if (Rec->isSubClassOf("MCReturnStatement")) { in expandStatement()
281 expandReturnStatement(OS, Rec->getValueAsDef("Pred")); in expandStatement()
288 void PredicateExpander::expandPredicate(raw_ostream &OS, const Record *Rec) { in expandPredicate() argument
290 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate()
296 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate()
302 if (Rec->isSubClassOf("CheckNot")) { in expandPredicate()
304 expandPredicate(OS, Rec->getValueAsDef("Pred")); in expandPredicate()
309 if (Rec->isSubClassOf("CheckIsRegOperand")) in expandPredicate()
310 return expandCheckIsRegOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
312 if (Rec->isSubClassOf("CheckIsImmOperand")) in expandPredicate()
313 return expandCheckIsImmOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
315 if (Rec->isSubClassOf("CheckRegOperand")) in expandPredicate()
316 return expandCheckRegOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
317 Rec->getValueAsDef("Reg"), in expandPredicate()
318 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
320 if (Rec->isSubClassOf("CheckRegOperandSimple")) in expandPredicate()
321 return expandCheckRegOperandSimple(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
322 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
324 if (Rec->isSubClassOf("CheckInvalidRegOperand")) in expandPredicate()
325 return expandCheckInvalidRegOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
327 if (Rec->isSubClassOf("CheckImmOperand")) in expandPredicate()
328 return expandCheckImmOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
329 Rec->getValueAsInt("ImmVal"), in expandPredicate()
330 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
332 if (Rec->isSubClassOf("CheckImmOperand_s")) in expandPredicate()
333 return expandCheckImmOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
334 Rec->getValueAsString("ImmVal"), in expandPredicate()
335 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
337 if (Rec->isSubClassOf("CheckImmOperandSimple")) in expandPredicate()
338 return expandCheckImmOperandSimple(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
339 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
341 if (Rec->isSubClassOf("CheckSameRegOperand")) in expandPredicate()
342 return expandCheckSameRegOperand(OS, Rec->getValueAsInt("FirstIndex"), in expandPredicate()
343 Rec->getValueAsInt("SecondIndex")); in expandPredicate()
345 if (Rec->isSubClassOf("CheckNumOperands")) in expandPredicate()
346 return expandCheckNumOperands(OS, Rec->getValueAsInt("NumOps")); in expandPredicate()
348 if (Rec->isSubClassOf("CheckPseudo")) in expandPredicate()
349 return expandCheckPseudo(OS, Rec->getValueAsListOfDefs("ValidOpcodes")); in expandPredicate()
351 if (Rec->isSubClassOf("CheckOpcode")) in expandPredicate()
352 return expandCheckOpcode(OS, Rec->getValueAsListOfDefs("ValidOpcodes")); in expandPredicate()
354 if (Rec->isSubClassOf("CheckAll")) in expandPredicate()
355 return expandPredicateSequence(OS, Rec->getValueAsListOfDefs("Predicates"), in expandPredicate()
358 if (Rec->isSubClassOf("CheckAny")) in expandPredicate()
359 return expandPredicateSequence(OS, Rec->getValueAsListOfDefs("Predicates"), in expandPredicate()
362 if (Rec->isSubClassOf("CheckFunctionPredicate")) in expandPredicate()
364 OS, Rec->getValueAsString("MCInstFnName"), in expandPredicate()
365 Rec->getValueAsString("MachineInstrFnName")); in expandPredicate()
367 if (Rec->isSubClassOf("CheckNonPortable")) in expandPredicate()
368 return expandCheckNonPortable(OS, Rec->getValueAsString("CodeBlock")); in expandPredicate()
370 if (Rec->isSubClassOf("TIIPredicate")) in expandPredicate()
371 return expandTIIFunctionCall(OS, Rec->getValueAsString("FunctionName")); in expandPredicate()
378 const Record *Rec = Fn.getDeclaration(); in expandHeader() local
379 StringRef FunctionName = Rec->getValueAsString("Name"); in expandHeader()
390 if (Rec->getValueAsBit("UpdatesOpcodeMask")) in expandHeader()
398 if (Rec->getValueAsBit("OverridesBaseClassMember")) in expandHeader()
518 const Record *Rec = Fn.getDeclaration(); in expandSTIPredicate() local
519 if (shouldExpandForMC() && !Rec->getValueAsBit("ExpandForMC")) in expandSTIPredicate()