Lines Matching defs:opName

78   void emitMatchLogic(DagNode tree, StringRef opName);
94 void emitStaticVerifierCall(StringRef funcName, StringRef opName,
102 void emitOpMatch(DagNode tree, StringRef opName, int depth);
107 void emitOperandMatch(DagNode tree, StringRef opName, StringRef operandName,
115 StringRef opName, int argIndex, int &operandIndex,
120 StringRef opName, int argIndex,
125 void emitAttributeMatch(DagNode tree, StringRef opName, int argIndex,
130 void emitMatchCheck(StringRef opName, const FmtObjectBase &matchFmt,
135 void emitMatchCheck(StringRef opName, const std::string &matchStr,
409 void PatternEmitter::emitStaticMatchCall(DagNode tree, StringRef opName) {
412 opName);
441 StringRef opName, StringRef arg,
444 funcName, opName, arg, failureStr);
450 void PatternEmitter::emitNativeCodeMatch(DagNode tree, StringRef opName,
463 emitStaticMatchCall(tree, opName);
509 tgfmt(fmt, &fmtCtx.addSubst("_loc", locToUse).withSelf(opName.str()),
512 emitMatchCheck(opName, formatv("!::mlir::failed({0})", nativeCodeCall),
548 verifier, opName, self,
561 void PatternEmitter::emitOpMatch(DagNode tree, StringRef opName, int depth) {
578 emitStaticMatchCall(tree, opName);
584 opName, op.getQualCppClassName(), getCastedName());
591 castedName, opName, op.getQualCppClassName());
595 emitMatchCheck(opName, /*matchStr=*/castedName,
667 emitAttributeMatch(tree, opName, opArgIdx, depth);
677 void PatternEmitter::emitOperandMatch(DagNode tree, StringRef opName,
706 verifier, opName, self.str(),
728 StringRef opName, int argIndex,
762 opName, /*matchStr=*/argName,
764 operandIndex++, opName));
774 emitOperandMatch(tree, opName, /*operandName=*/formatv("v{0}", i).str(),
792 os << formatv("auto eitherOperand0 = {0}.getODSOperands({1});\n", opName,
794 os << formatv("auto eitherOperand1 = {0}.getODSOperands({1});\n", opName,
808 StringRef opName, int argIndex,
816 opName, operandIndex);
846 opName, /*matchStr=*/argName,
849 operandIndex, i, opName));
856 emitOperandMatch(tree, opName, operandName.str(), operandIndex,
867 void PatternEmitter::emitAttributeMatch(DagNode tree, StringRef opName,
876 opName, attr.getStorageType(), namedAttr->name);
890 emitMatchCheck(opName, tgfmt("tblgen_attr", &fmtCtx),
921 verifier, opName, "tblgen_attr",
940 StringRef opName, const FmtObjectBase &matchFmt,
942 emitMatchCheck(opName, matchFmt.str(), failureFmt.str());
945 void PatternEmitter::emitMatchCheck(StringRef opName,
950 os.scope("{\n", "\n}\n").os << "return rewriter.notifyMatchFailure(" << opName
955 void PatternEmitter::emitMatchLogic(DagNode tree, StringRef opName) {
958 emitMatch(tree, opName, depth);
972 opName, tgfmt(condition, &fmtCtx.withSelf(self.str())),
994 emitMatchCheck(opName,
1018 opName,