Author inferReturnTypes methods with the Op Adaptor by using the InferTypeOpAdaptor.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/lib/Dialect/Test/TestDialect.cpp | ||
---|---|---|
1392 | Is getX and getY general here? |
mlir/test/lib/Dialect/Test/TestDialect.cpp | ||
---|---|---|
1392 | No, the arguments of OpWithInferTypeAdaptorInterfaceOp are named x and y. |
Comment Actions
This broke the bot, can you fix or revert?
https://lab.llvm.org/buildbot/#/builders/61/builds/46176
+ /vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/bin/FileCheck /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py error: missing shape attribute Traceback (most recent call last): File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 17, in <module> def testConstShape(): File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 11, in run f() File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 26, in testConstShape def const_shape_tensor(arg): File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/tools/mlir/python_packages/mlir_core/mlir/dialects/_func_ops_ext.py", line 190, in decorator return_values = f(*func_args, **func_kwargs) File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 30, in const_shape_tensor x = shape.ConstShapeOp([1, 2]) File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/tools/mlir/python_packages/mlir_core/mlir/dialects/_shape_ops_gen.py", line 278, in __init__ results = _ods_ir.InferTypeOpInterface(ConstShapeOp).inferReturnTypes( ValueError: Failed to infer result types
Is getX and getY general here?