Lines Matching refs:Case

62                                       CodeGenTarget &Target, std::string &Case,
65 const std::string &VarName, std::string &Case,
98 std::string &Case, in addCodeToMergeInOperand() argument
146 Case += " op.clearAllBits();\n"; in addCodeToMergeInOperand()
148 Case += " // op: " + VarName + "\n"; in addCodeToMergeInOperand()
153 Case += " " + EncoderMethodName + "(MI, " + utostr(OpIdx); in addCodeToMergeInOperand()
154 Case += ", op"; in addCodeToMergeInOperand()
156 Case += " op = " + EncoderMethodName + "(MI, " + utostr(OpIdx); in addCodeToMergeInOperand()
158 Case += ", Fixups, STI);\n"; in addCodeToMergeInOperand()
161 Case += in addCodeToMergeInOperand()
163 Case += ", op, Fixups, STI"; in addCodeToMergeInOperand()
165 Case += " op = getMachineOpValue(MI, MI.getOperand(" + in addCodeToMergeInOperand()
167 Case += ", Fixups, STI"; in addCodeToMergeInOperand()
169 Case += ");\n"; in addCodeToMergeInOperand()
234 Case += " Value.insertBits(" + extractStr + ", " + in addCodeToMergeInOperand()
239 Case += " Value.insertBits(" + extractStr + ", " + in addCodeToMergeInOperand()
250 Case += " op &= " + maskStr + ";\n"; in addCodeToMergeInOperand()
252 Case += " op <<= " + itostr(opShift) + ";\n"; in addCodeToMergeInOperand()
254 Case += " op >>= " + itostr(-opShift) + ";\n"; in addCodeToMergeInOperand()
256 Case += " Value |= op;\n"; in addCodeToMergeInOperand()
259 Case += " Value |= (op & " + maskStr + ") << " + in addCodeToMergeInOperand()
262 Case += " Value |= (op & " + maskStr + ") >> " + in addCodeToMergeInOperand()
265 Case += " Value |= (op & " + maskStr + ");\n"; in addCodeToMergeInOperand()
282 std::string Case, BitOffsetCase; in getInstructionCases() local
285 Case += S; in getInstructionCases()
299 Case += " switch (HwMode) {\n"; in getInstructionCases()
300 Case += " default: llvm_unreachable(\"Unknown hardware mode!\"); " in getInstructionCases()
304 Case += in getInstructionCases()
307 Case += " case " + itostr(ModeId) + in getInstructionCases()
311 Case += "; break;\n"; in getInstructionCases()
313 Case += " };\n"; in getInstructionCases()
318 Case += " Inst = APInt(" + itostr(BitWidth); in getInstructionCases()
319 Case += ", ArrayRef(InstBitsByHw + opcode * " + itostr(NumWords) + in getInstructionCases()
321 Case += "));\n"; in getInstructionCases()
322 Case += " Value = Inst;\n"; in getInstructionCases()
324 Case += " Value = InstBitsByHw[opcode];\n"; in getInstructionCases()
331 addInstructionCasesForEncoding(R, Encoding, Target, Case, in getInstructionCases()
337 return std::pair(std::move(Case), std::move(BitOffsetCase)); in getInstructionCases()
340 addInstructionCasesForEncoding(R, R, Target, Case, BitOffsetCase); in getInstructionCases()
341 return std::pair(std::move(Case), std::move(BitOffsetCase)); in getInstructionCases()
345 Record *R, Record *EncodingDef, CodeGenTarget &Target, std::string &Case, in addInstructionCasesForEncoding() argument
361 Success &= addCodeToMergeInOperand(R, BI, std::string(RV.getName()), Case, in addInstructionCasesForEncoding()
381 Case += " Value = "; in addInstructionCasesForEncoding()
382 Case += PostEmitter; in addInstructionCasesForEncoding()
383 Case += "(MI, Value"; in addInstructionCasesForEncoding()
384 Case += ", STI"; in addInstructionCasesForEncoding()
385 Case += ");\n"; in addInstructionCasesForEncoding()
453 const std::string &Case = IE->first; in emitCaseMap() local
462 o << Case; in emitCaseMap()
549 std::string Case, BitOffsetCase; in run() local
550 std::tie(Case, BitOffsetCase) = getInstructionCases(R, Target); in run()
552 CaseMap[Case].push_back(InstName); in run()