• Home
  • Raw
  • Download

Lines Matching refs:opClass

321   OpClass opClass;  member in __anonec93f51b0111::OpEmitter
440 opClass(op.getCppClassName(), op.getExtraClassDeclaration()) { in OpEmitter()
464 generateOpFormat(op, opClass); in OpEmitter()
476 void OpEmitter::emitDecl(raw_ostream &os) { opClass.writeDeclTo(os); } in emitDecl()
478 void OpEmitter::emitDef(raw_ostream &os) { opClass.writeDefTo(os); } in emitDef()
487 auto *method = opClass.addMethodAndPrune(attr.getReturnType(), name); in genAttrGetters()
496 auto *method = opClass.addMethodAndPrune(attr.getReturnType(), name); in genAttrGetters()
520 opClass.addMethodAndPrune(attr.getStorageType(), (name + "Attr").str()); in genAttrGetters()
548 opClass.addTrait("::mlir::DerivedAttributeOpInterface::Trait"); in genAttrGetters()
553 auto *method = opClass.addMethodAndPrune("bool", "isDerivedAttribute", in genAttrGetters()
563 auto *method = opClass.addMethodAndPrune("::mlir::DictionaryAttr", in genAttrGetters()
613 auto *method = opClass.addMethodAndPrune("void", (name + "Attr").str(), in genAttrSetters()
633 generateValueRangeStartAndEnd(Class &opClass, StringRef methodName, in generateValueRangeStartAndEnd() argument
637 auto *method = opClass.addMethodAndPrune("std::pair<unsigned, unsigned>", in generateValueRangeStartAndEnd()
671 static void generateNamedOperandGetters(const Operator &op, Class &opClass, in generateNamedOperandGetters() argument
704 generateValueRangeStartAndEnd(opClass, "getODSOperandIndexAndLength", in generateNamedOperandGetters()
709 auto *m = opClass.addMethodAndPrune(rangeType, "getODSOperands", "unsigned", in generateNamedOperandGetters()
723 m = opClass.addMethodAndPrune("::mlir::Value", operand.name); in generateNamedOperandGetters()
727 m = opClass.addMethodAndPrune(rangeType, operand.name); in generateNamedOperandGetters()
730 m = opClass.addMethodAndPrune("::mlir::Value", operand.name); in generateNamedOperandGetters()
738 op, opClass, in genNamedOperandGetters()
754 auto *m = opClass.addMethodAndPrune("::mlir::MutableOperandRange", in genNamedOperandSetters()
798 opClass, "getODSResultIndexAndLength", numVariadicResults, in genNamedResultGetters()
803 auto *m = opClass.addMethodAndPrune("::mlir::Operation::result_range", in genNamedResultGetters()
814 m = opClass.addMethodAndPrune("::mlir::Value", result.name); in genNamedResultGetters()
819 m = opClass.addMethodAndPrune("::mlir::Operation::result_range", in genNamedResultGetters()
823 m = opClass.addMethodAndPrune("::mlir::Value", result.name); in genNamedResultGetters()
838 auto *m = opClass.addMethodAndPrune("::mlir::MutableArrayRef<Region>", in genNamedRegionGetters()
845 auto *m = opClass.addMethodAndPrune("::mlir::Region &", region.name); in genNamedRegionGetters()
860 opClass.addMethodAndPrune("::mlir::SuccessorRange", successor.name); in genNamedSuccessorGetters()
868 auto *m = opClass.addMethodAndPrune("::mlir::Block *", successor.name); in genNamedSuccessorGetters()
914 auto *m = opClass.addMethodAndPrune("void", "build", OpMethod::MP_Static, in genSeparateArgParamBuilder()
939 opClass.getClassName(), builderOpState); in genSeparateArgParamBuilder()
999 auto *m = opClass.addMethodAndPrune("void", "build", OpMethod::MP_Static, in genUseOperandAsResultTypeCollectiveParamBuilder()
1034 auto *m = opClass.addMethodAndPrune("void", "build", OpMethod::MP_Static, in genInferredTypeCollectiveParamBuilder()
1073 opClass.getClassName(), builderOpState); in genInferredTypeCollectiveParamBuilder()
1083 opClass.getClassName(), builderOpState); in genInferredTypeCollectiveParamBuilder()
1091 auto *m = opClass.addMethodAndPrune("void", "build", OpMethod::MP_Static, in genUseOperandAsResultTypeSeparateParamBuilder()
1120 auto *m = opClass.addMethodAndPrune("void", "build", OpMethod::MP_Static, in genUseAttrAsResultTypeBuilder()
1257 opClass.addMethodAndPrune("void", "build", properties, paramStr); in genBuilder()
1314 auto *m = opClass.addMethodAndPrune("void", "build", OpMethod::MP_Static, in genCollectiveParamBuilder()
1572 opClass.addMethodAndPrune("void", "getCanonicalizationPatterns", in genCanonicalizerDecls()
1583 opClass.addMethodAndPrune( in genFolderDecls()
1591 opClass.addMethodAndPrune("::mlir::LogicalResult", "fold", in genFolderDecls()
1629 return opClass.addMethodAndPrune(method.getReturnType(), method.getName(), in genOpInterfaceMethod()
1659 opClass.addTrait(effect->getInterfaceTrait()); in genSideEffectInterfaceMethods()
1706 opClass.addMethodAndPrune("void", "getEffects", type, "effects"); in genSideEffectInterfaceMethods()
1799 opClass.addMethodAndPrune("::mlir::ParseResult", "parse", in genParser()
1803 fctx.addSubst("cppClass", opClass.getClassName()); in genParser()
1818 opClass.addMethodAndPrune("void", "print", "::mlir::OpAsmPrinter &", "p"); in genPrinter()
1820 fctx.addSubst("cppClass", opClass.getClassName()); in genPrinter()
1826 auto *method = opClass.addMethodAndPrune("::mlir::LogicalResult", "verify"); in genVerifier()
1857 fctx.addSubst("cppClass", opClass.getClassName()); in genVerifier()
1997 static void addSizeCountTrait(OpClass &opClass, StringRef traitKind, in addSizeCountTrait() argument
2001 opClass.addTrait("::mlir::OpTrait::Variadic" + traitKind + "s"); in addSizeCountTrait()
2003 opClass.addTrait("::mlir::OpTrait::AtLeastN" + traitKind + "s<" + in addSizeCountTrait()
2009 opClass.addTrait("::mlir::OpTrait::Zero" + traitKind); in addSizeCountTrait()
2012 opClass.addTrait("::mlir::OpTrait::One" + traitKind); in addSizeCountTrait()
2015 opClass.addTrait("::mlir::OpTrait::N" + traitKind + "s<" + Twine(numTotal) + in addSizeCountTrait()
2025 addSizeCountTrait(opClass, "Region", numRegions, numVariadicRegions); in genTraits()
2030 addSizeCountTrait(opClass, "Result", numResults, numVariadicResults); in genTraits()
2035 addSizeCountTrait(opClass, "Successor", numSuccessors, numVariadicSuccessors); in genTraits()
2044 opClass.addTrait("::mlir::OpTrait::VariadicOperands"); in genTraits()
2046 opClass.addTrait("::mlir::OpTrait::AtLeastNOperands<" + in genTraits()
2051 opClass.addTrait("::mlir::OpTrait::ZeroOperands"); in genTraits()
2054 opClass.addTrait("::mlir::OpTrait::OneOperand"); in genTraits()
2057 opClass.addTrait("::mlir::OpTrait::NOperands<" + Twine(numOperands) + in genTraits()
2066 opClass.addTrait(opTrait->getTrait()); in genTraits()
2068 opClass.addTrait(opTrait->getTrait()); in genTraits()
2073 auto *method = opClass.addMethodAndPrune( in genOpNameGetter()
2096 opClass.addTrait("::mlir::OpAsmOpInterface::Trait"); in genOpAsmInterface()
2099 auto *method = opClass.addMethodAndPrune( in genOpAsmInterface()