Skip to content

[mlir-reduce] inconsistent command line behavior #155544

@vfdff

Description

@vfdff
  • When I try mlir-reduce to reduce my mlir file, it failed as unregistered-dialect. and the tool suggests me use option -allow-unregistered-dialect to work aound.
mlir-reduce test.mlir -reduction-tree='traversal-mode=0 test=test.sh'
loc("test.mlir":22:45): error: #"hacc"<"aicore_kind<Ascend310P>"> : 'none' attribute created with unregistered dialect. If this is intended, please call allowUnregisteredDialects() on the MLIRContext, or use -allow-unregistered-dialect with the MLIR opt tool used
  • Then I try to add the above option -allow-unregistered-dialect, it failed with Unknown command line argument '-allow-unregistered-dialect'
mlir-reduce: Unknown command line argument '-allow-unregistered-dialect'.  Try: 'mlir-reduce --help'
mlir-reduce: Did you mean '--allocate-arm-sme-tiles'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    mlirquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions