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()
241 const Record *Rec) { in expandOpcodeSwitchCase() argument
242 const RecVec &Opcodes = Rec->getValueAsListOfDefs("Opcodes"); in expandOpcodeSwitchCase()
251 expandStatement(OS, Rec->getValueAsDef("CaseStmt")); in expandOpcodeSwitchCase()
262 for (const Record *Rec : Cases) { in expandOpcodeSwitchStatement() local
263 expandOpcodeSwitchCase(SS, Rec); in expandOpcodeSwitchStatement()
283 void PredicateExpander::expandStatement(raw_ostream &OS, const Record *Rec) { in expandStatement() argument
285 if (Rec->isSubClassOf("MCOpcodeSwitchStatement")) { in expandStatement()
286 expandOpcodeSwitchStatement(OS, Rec->getValueAsListOfDefs("Cases"), in expandStatement()
287 Rec->getValueAsDef("DefaultCase")); in expandStatement()
291 if (Rec->isSubClassOf("MCReturnStatement")) { in expandStatement()
292 expandReturnStatement(OS, Rec->getValueAsDef("Pred")); in expandStatement()
299 void PredicateExpander::expandPredicate(raw_ostream &OS, const Record *Rec) { in expandPredicate() argument
301 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate()
307 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate()
313 if (Rec->isSubClassOf("CheckNot")) { in expandPredicate()
315 expandPredicate(OS, Rec->getValueAsDef("Pred")); in expandPredicate()
320 if (Rec->isSubClassOf("CheckIsRegOperand")) in expandPredicate()
321 return expandCheckIsRegOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
323 if (Rec->isSubClassOf("CheckIsImmOperand")) in expandPredicate()
324 return expandCheckIsImmOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
326 if (Rec->isSubClassOf("CheckRegOperand")) in expandPredicate()
327 return expandCheckRegOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
328 Rec->getValueAsDef("Reg"), in expandPredicate()
329 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
331 if (Rec->isSubClassOf("CheckRegOperandSimple")) in expandPredicate()
332 return expandCheckRegOperandSimple(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
333 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
335 if (Rec->isSubClassOf("CheckInvalidRegOperand")) in expandPredicate()
336 return expandCheckInvalidRegOperand(OS, Rec->getValueAsInt("OpIndex")); in expandPredicate()
338 if (Rec->isSubClassOf("CheckImmOperand")) in expandPredicate()
339 return expandCheckImmOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
340 Rec->getValueAsInt("ImmVal"), in expandPredicate()
341 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
343 if (Rec->isSubClassOf("CheckImmOperand_s")) in expandPredicate()
344 return expandCheckImmOperand(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
345 Rec->getValueAsString("ImmVal"), in expandPredicate()
346 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
348 if (Rec->isSubClassOf("CheckImmOperandSimple")) in expandPredicate()
349 return expandCheckImmOperandSimple(OS, Rec->getValueAsInt("OpIndex"), in expandPredicate()
350 Rec->getValueAsString("FunctionMapper")); in expandPredicate()
352 if (Rec->isSubClassOf("CheckSameRegOperand")) in expandPredicate()
353 return expandCheckSameRegOperand(OS, Rec->getValueAsInt("FirstIndex"), in expandPredicate()
354 Rec->getValueAsInt("SecondIndex")); in expandPredicate()
356 if (Rec->isSubClassOf("CheckNumOperands")) in expandPredicate()
357 return expandCheckNumOperands(OS, Rec->getValueAsInt("NumOps")); in expandPredicate()
359 if (Rec->isSubClassOf("CheckPseudo")) in expandPredicate()
360 return expandCheckPseudo(OS, Rec->getValueAsListOfDefs("ValidOpcodes")); in expandPredicate()
362 if (Rec->isSubClassOf("CheckOpcode")) in expandPredicate()
363 return expandCheckOpcode(OS, Rec->getValueAsListOfDefs("ValidOpcodes")); in expandPredicate()
365 if (Rec->isSubClassOf("CheckAll")) in expandPredicate()
366 return expandPredicateSequence(OS, Rec->getValueAsListOfDefs("Predicates"), in expandPredicate()
369 if (Rec->isSubClassOf("CheckAny")) in expandPredicate()
370 return expandPredicateSequence(OS, Rec->getValueAsListOfDefs("Predicates"), in expandPredicate()
373 if (Rec->isSubClassOf("CheckFunctionPredicate")) { in expandPredicate()
375 OS, Rec->getValueAsString("MCInstFnName"), in expandPredicate()
376 Rec->getValueAsString("MachineInstrFnName")); in expandPredicate()
379 if (Rec->isSubClassOf("CheckFunctionPredicateWithTII")) { in expandPredicate()
381 OS, Rec->getValueAsString("MCInstFnName"), in expandPredicate()
382 Rec->getValueAsString("MachineInstrFnName"), in expandPredicate()
383 Rec->getValueAsString("TIIPtrName")); in expandPredicate()
386 if (Rec->isSubClassOf("CheckNonPortable")) in expandPredicate()
387 return expandCheckNonPortable(OS, Rec->getValueAsString("CodeBlock")); in expandPredicate()
389 if (Rec->isSubClassOf("TIIPredicate")) in expandPredicate()
390 return expandTIIFunctionCall(OS, Rec->getValueAsString("FunctionName")); in expandPredicate()
397 const Record *Rec = Fn.getDeclaration(); in expandHeader() local
398 StringRef FunctionName = Rec->getValueAsString("Name"); in expandHeader()
409 if (Rec->getValueAsBit("UpdatesOpcodeMask")) in expandHeader()
417 if (Rec->getValueAsBit("OverridesBaseClassMember")) in expandHeader()
537 const Record *Rec = Fn.getDeclaration(); in expandSTIPredicate() local
538 if (shouldExpandForMC() && !Rec->getValueAsBit("ExpandForMC")) in expandSTIPredicate()