Lines Matching refs:Case

57                                std::string &Case, CodeGenTarget &Target);
86 std::string &Case, CodeGenTarget &Target) { in AddCodeToMergeInOperand() argument
141 Case += " op.clearAllBits();\n"; in AddCodeToMergeInOperand()
150 Case += " // op: " + VarName + "\n"; in AddCodeToMergeInOperand()
152 Case += " " + EncoderMethodName + "(MI, " + utostr(OpIdx); in AddCodeToMergeInOperand()
153 Case += ", op"; in AddCodeToMergeInOperand()
155 Case += " op = " + EncoderMethodName + "(MI, " + utostr(OpIdx); in AddCodeToMergeInOperand()
157 Case += ", Fixups, STI);\n"; in AddCodeToMergeInOperand()
160 Case += " // op: " + VarName + "\n"; in AddCodeToMergeInOperand()
162 Case += " getMachineOpValue(MI, MI.getOperand(" + utostr(OpIdx) + ")"; in AddCodeToMergeInOperand()
163 Case += ", op, Fixups, STI"; in AddCodeToMergeInOperand()
165 Case += " op = getMachineOpValue(MI, MI.getOperand(" + utostr(OpIdx) + ")"; in AddCodeToMergeInOperand()
166 Case += ", Fixups, STI"; in AddCodeToMergeInOperand()
168 Case += ");\n"; in AddCodeToMergeInOperand()
230 Case += " Value.insertBits(" + extractStr + ", " + in AddCodeToMergeInOperand()
235 Case += " Value.insertBits(" + extractStr + ", " + in AddCodeToMergeInOperand()
246 Case += " op &= " + maskStr + ";\n"; in AddCodeToMergeInOperand()
248 Case += " op <<= " + itostr(opShift) + ";\n"; in AddCodeToMergeInOperand()
250 Case += " op >>= " + itostr(-opShift) + ";\n"; in AddCodeToMergeInOperand()
252 Case += " Value |= op;\n"; in AddCodeToMergeInOperand()
255 Case += " Value |= (op & " + maskStr + ") << " + in AddCodeToMergeInOperand()
258 Case += " Value |= (op & " + maskStr + ") >> " + in AddCodeToMergeInOperand()
261 Case += " Value |= (op & " + maskStr + ");\n"; in AddCodeToMergeInOperand()
270 std::string Case; in getInstructionCase() local
275 Case += " switch (HwMode) {\n"; in getInstructionCase()
276 Case += " default: llvm_unreachable(\"Unhandled HwMode\");\n"; in getInstructionCase()
278 Case += " case " + itostr(KV.first) + ": {\n"; in getInstructionCase()
279 Case += getInstructionCaseForEncoding(R, KV.second, Target); in getInstructionCase()
280 Case += " break;\n"; in getInstructionCase()
281 Case += " }\n"; in getInstructionCase()
283 Case += " }\n"; in getInstructionCase()
284 return Case; in getInstructionCase()
292 std::string Case; in getInstructionCaseForEncoding() local
320 NamedOpIndices, Case, Target); in getInstructionCaseForEncoding()
325 Case += " Value = "; in getInstructionCaseForEncoding()
326 Case += PostEmitter; in getInstructionCaseForEncoding()
327 Case += "(MI, Value"; in getInstructionCaseForEncoding()
328 Case += ", STI"; in getInstructionCaseForEncoding()
329 Case += ");\n"; in getInstructionCaseForEncoding()
332 return Case; in getInstructionCaseForEncoding()
470 std::string Case = getInstructionCase(R, Target); in run() local
472 CaseMap[Case].push_back(std::move(InstName)); in run()
498 const std::string &Case = IE->first; in run() local
507 o << Case; in run()