You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/ubuntu/code/env/bin/xdsl-tblgen", line 8, in <module>
sys.exit(main())
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 631, in main
tblgen_to_py(args.input_file, cull=args.cull)
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 599, in tblgen_to_py
[dialect] = dialects
ValueError: too many values to unpack (expected 1)
And after removing the ShapeDialect from the json (in other words "Dialect":["ShapeDialect","StableHLO_Dialect"] -> "Dialect":["StableHLO_Dialect"]
Traceback (most recent call last):
File "/home/ubuntu/code/env/bin/xdsl-tblgen", line 8, in <module>
sys.exit(main())
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 631, in main
tblgen_to_py(args.input_file, cull=args.cull)
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 600, in tblgen_to_py
loader.generate_dialect(dialect)
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 173, in generate_dialect
self.generate_op(op, dialect_name)
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 418, in generate_op
(variadicity, constraint) = self._resolve_constraint(arg)
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 399, in _resolve_constraint
self._resolve_prop_constraint(rec["baseAttr"]),
File "/home/ubuntu/code/env/lib/python3.10/site-packages/xdsl/tools/tblgen_to_py.py", line 314, in _resolve_prop_constraint
if rec.name in self.attributes:
AttributeError: 'dict' object has no attribute 'name'
The text was updated successfully, but these errors were encountered:
superlopuh
changed the title
Problem generating xdsl-tblgen with this json file
tool: (xdsl-tblgen) Problem generating xdsl-tblgen with this json file
Feb 13, 2025
./llvm-project/build/bin/llvm-tblgen -D stablehlo --dump-json -I ./llvm-project/mlir/include/ -I ./mlir-hlo/stablehlo/ mlir-hlo/stablehlo/stablehlo/dialect/StablehloOps.td > stablehlo.json
In these commit of LLVM and MLIR-HLO
stablehlo.json
I get the following error:
And after removing the ShapeDialect from the json (in other words
"Dialect":["ShapeDialect","StableHLO_Dialect"]
->"Dialect":["StableHLO_Dialect"]
The text was updated successfully, but these errors were encountered: