Home
last modified time | relevance | path

Searched refs:OperationType (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dpdl_types.py21 assert not pdl.OperationType.isinstance(parsedType)
27 assert not pdl.OperationType.isinstance(constructedType)
45 constructedType = pdl.OperationType.get()
48 assert pdl.OperationType.isinstance(parsedType)
54 assert pdl.OperationType.isinstance(constructedType)
77 assert not pdl.OperationType.isinstance(parsedType)
83 assert not pdl.OperationType.isinstance(constructedType)
107 assert not pdl.OperationType.isinstance(parsedType)
113 assert not pdl.OperationType.isinstance(constructedType)
134 assert not pdl.OperationType.isinstance(parsedType)
[all …]
H A Dtransform.py20 sequence = transform.SequenceOp([pdl.OperationType.get()])
36 doubly_nested = transform.SequenceOp([pdl.OperationType.get()],
59 sequence = transform.SequenceOp([pdl.OperationType.get()],
/llvm-project-15.0.7/mlir/python/mlir/dialects/
H A D_structured_transform_ops_ext.py77 pdl.OperationType.get(),
88 pdl.OperationType.get(),
103 pdl_operation_type = pdl.OperationType.get()
125 pdl.OperationType.get(),
126 pdl.OperationType.get(),
127 pdl.OperationType.get(),
151 pdl_operation_type = pdl.OperationType.get()
173 pdl_operation_type = pdl.OperationType.get()
199 pdl_operation_type = pdl.OperationType.get()
222 pdl_operation_type = pdl.OperationType.get()
[all …]
H A D_transform_ops_ext.py25 pdl.OperationType.get(),
40 pdl.OperationType.get(), [_get_op_result_or_value(h) for h in handles],
55 pdl.OperationType.get(),
71 [pdl.OperationType.get()] * len(handles),
97 self.regions[0].blocks.append(pdl.OperationType.get())
119 self.regions[0].blocks.append(pdl.OperationType.get())
H A D_loop_transform_ops_ext.py37 pdl.OperationType.get(),
54 pdl.OperationType.get(),
72 pdl.OperationType.get(),
92 pdl.OperationType.get(),
H A D_pdl_ops_ext.py157 result = pdl.OperationType.get()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DTypes.cpp37 if (auto opTy = dyn_cast<OperationType>()) { in refineWith()
38 auto otherOpTy = other.dyn_cast<ast::OperationType>(); in refineWith()
72 OperationType OperationType::get(Context &context, Optional<StringRef> name, in get()
79 Optional<StringRef> OperationType::getName() const { in getName()
84 const ods::Operation *OperationType::getODSOperation() const { in getODSOperation()
H A DNodePrinter.cpp133 .Case([&](OperationType type) { in print()
H A DNodes.cpp311 Type resultType = OperationType::get(ctx, name->getName(), odsOp); in create()
/llvm-project-15.0.7/mlir/python/mlir/_mlir_libs/_mlir/dialects/
H A Dpdl.pyi12 'OperationType',
32 class OperationType(Type):
37 def get(context: Optional[Context] = None) -> OperationType: ...
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/Parser/
H A DCodeComplete.h21 class OperationType; variable
44 virtual void codeCompleteOperationMemberAccess(ast::OperationType opType);
/llvm-project-15.0.7/mlir/lib/CAPI/Dialect/
H A DPDL.cpp44 return unwrap(type).isa<pdl::OperationType>(); in mlirTypeIsAPDLOperationType()
48 return wrap(pdl::OperationType::get(unwrap(ctx))); in mlirPDLOperationTypeGet()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DMLIRGen.cpp163 .Case([&](ast::OperationType astType) -> Type { in genType()
164 return builder.getType<pdl::OperationType>(); in genType()
240 replValues.front().getType().isa<pdl::OperationType>(); in genImpl()
341 if (ast::OperationType opType = type.dyn_cast<ast::OperationType>()) { in genNonInitializerVar()
437 if (ast::OperationType opType = parentType.dyn_cast<ast::OperationType>()) { in genExprImpl()
H A DCPPGen.cpp174 .Case([&](ast::OperationType opType) -> StringRef { in getNativeTypeName()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DCodeComplete.cpp24 ast::OperationType opType) {} in codeCompleteOperationMemberAccess()
H A DParser.cpp622 if (auto exprOpType = exprType.dyn_cast<ast::OperationType>()) { in convertExpressionTo()
625 if (auto opType = type.dyn_cast<ast::OperationType>()) { in convertExpressionTo()
903 ast::Type opTy = ast::OperationType::get(ctx); in processTdIncludeRecords()
2582 constraintType = ast::OperationType::get( in validateVariableConstraint()
2754 if (ast::OperationType opType = parentType.dyn_cast<ast::OperationType>()) { in validateMemberAccess()
2954 if (valueExprType.isa<ast::OperationType>()) { in validateOperationOperandsOrResults()
2990 if (!rootType.isa<ast::OperationType>()) in createEraseStmt()
3001 if (!rootType.isa<ast::OperationType>()) { in createReplaceStmt()
3014 if (replType.isa<ast::OperationType>()) { in createReplaceStmt()
3036 if (!rootType.isa<ast::OperationType>()) { in createRewriteStmt()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DTypes.h157 class OperationType : public Type::TypeBase<detail::OperationTypeStorage> {
163 static OperationType get(Context &context,
/llvm-project-15.0.7/mlir/lib/Dialect/Transform/IR/
H A DTransformOps.cpp29 types.resize(handles.size(), pdl::OperationType::get(parser.getContext())); in parsePDLOpTypedResults()
257 !block.getArgument(0).getType().isa<pdl::OperationType>()) { in verify()
260 << pdl::OperationType::get(getContext()); in verify()
H A DTransformInterfaces.cpp326 !body->getArgumentTypes()[0].isa<pdl::OperationType>()) { in verifyPossibleTopLevelTransformOpTrait()
329 << pdl::OperationType::get(op->getContext()); in verifyPossibleTopLevelTransformOpTrait()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/PDL/IR/
H A DPDLTypes.td41 // pdl::OperationType
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/TransformOps/
H A DLinalgTransformOps.cpp154 Type pdlOpType = parser.getBuilder().getType<pdl::OperationType>(); in parseTileLikeOp()
765 pdl::OperationType::get(parser.getBuilder().getContext()); in parse()
965 auto pdlOperationType = pdl::OperationType::get(parser.getContext()); in parse()
/llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/
H A DPDLToPDLInterp.cpp207 bool isOperationValue = val && val.getType().isa<pdl::OperationType>(); in generateMatcher()
256 loc, builder.getType<pdl::OperationType>(), parentVal); in getValueAt()
927 builder.getFunctionType(builder.getType<pdl::OperationType>(), in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp739 void codeCompleteOperationMemberAccess(ast::OperationType opType) final { in codeCompleteOperationMemberAccess()
1290 ast::OperationType opType = expr->getType().dyn_cast<ast::OperationType>(); in getInlayHintsFor()
/llvm-project-15.0.7/mlir/lib/Rewrite/
H A DByteCode.cpp390 .Case<pdl::OperationType>( in appendPDLValueKind()
604 if (eleType.isa<pdl::OperationType>()) in allocateMemoryIndices()
874 .Case([](pdl::OperationType) { return OpCode::ExtractOp; }) in generate() argument
/llvm-project-15.0.7/mlir/include/mlir/Dialect/PDLInterp/IR/
H A DPDLInterpOps.td439 build($_builder, $_state, $_builder.getType<pdl::OperationType>(), name,
927 pdl::RangeType::get($_builder.getType<pdl::OperationType>()),

12