• Home
  • Raw
  • Download

Lines Matching refs:opVar

491                                        StringRef opVar, StringRef operandList,  in emitAttributeSerialization()  argument
494 << formatv("if (auto attr = {0}.getAttr(\"{1}\")) {{\n", opVar, attrName); in emitAttributeSerialization()
500 operandList, opVar); in emitAttributeSerialization()
534 StringRef tabs, StringRef opVar, in emitArgumentSerialization() argument
565 << formatv("for (Value operand : {0}->getOperands()) {{\n", opVar); in emitArgumentSerialization()
574 tabs, opVar, operands, attr.name, os); in emitArgumentSerialization()
588 << formatv(" for (auto arg : {0}.getODSOperands({1})) {{\n", opVar, in emitArgumentSerialization()
595 opVar, operandNum); in emitArgumentSerialization()
605 loc, newtabs, opVar, operands, attr->name, os); in emitArgumentSerialization()
617 StringRef tabs, StringRef opVar, in emitResultSerialization() argument
626 opVar, resultTypeID); in emitResultSerialization()
633 << formatv("valueIDMap[{0}.getResult()] = {1};\n", opVar, resultID); in emitResultSerialization()
644 StringRef opVar, StringRef elidedAttrs, in emitDecorationSerialization() argument
648 os << tabs << formatv("for (auto attr : {0}.getAttrs()) {{\n", opVar); in emitDecorationSerialization()
657 opVar, resultID); in emitDecorationSerialization()
672 StringRef opVar("op"), operands("operands"), elidedAttrs("elidedAttrs"), in emitSerializationFunction() local
676 op.getQualCppClassName(), opVar); in emitSerializationFunction()
683 emitResultSerialization(op, record->getLoc(), " ", opVar, operands, in emitSerializationFunction()
688 emitArgumentSerialization(op, record->getLoc(), " ", opVar, operands, in emitSerializationFunction()
693 opVar, record->getValueAsString("extendedInstSetName"), in emitSerializationFunction()
697 os << formatv(" emitDebugLine(functionBody, {0}.getLoc());\n", opVar); in emitSerializationFunction()
705 emitDecorationSerialization(op, " ", opVar, elidedAttrs, resultID, os); in emitSerializationFunction()
713 static void initDispatchSerializationFn(StringRef opVar, raw_ostream &os) { in initDispatchSerializationFn() argument
717 opVar); in initDispatchSerializationFn()
724 StringRef opVar, raw_ostream &os) { in emitSerializationDispatch() argument
726 << formatv("if (isa<{0}>({1})) {{\n", op.getQualCppClassName(), opVar); in emitSerializationDispatch()
729 op.getQualCppClassName(), opVar); in emitSerializationDispatch()
735 static void finalizeDispatchSerializationFn(StringRef opVar, raw_ostream &os) { in finalizeDispatchSerializationFn() argument
738 opVar); in finalizeDispatchSerializationFn()
921 wordIndex("wordIndex"), opVar("op"), operands("operands"), in emitDeserializationFunction() local
944 op.getQualCppClassName(), opVar, resultTypes, operands, in emitDeserializationFunction()
947 os << formatv(" valueMap[{0}] = {1}.getResult();\n\n", valueID, opVar); in emitDeserializationFunction()
954 os << formatv(" if ({0}.hasTrait<OpTrait::IsTerminator>())\n", opVar); in emitDeserializationFunction()
1090 StringRef opVar("op"); in emitSerializationFns() local
1094 initDispatchSerializationFn(opVar, dSerFn); in emitSerializationFns()
1102 emitSerializationDispatch(op, " ", opVar, dSerFn); in emitSerializationFns()
1108 finalizeDispatchSerializationFn(opVar, dSerFn); in emitSerializationFns()