This is an archive of the discontinued LLVM Phabricator instance.

Improve error message when declarativeAssembly contains invalid literals
ClosedPublic

Authored by mehdi_amini on Dec 3 2021, 4:07 PM.

Diff Detail

Event Timeline

mehdi_amini created this revision.Dec 3 2021, 4:07 PM
mehdi_amini requested review of this revision.Dec 3 2021, 4:07 PM
rriddle accepted this revision.Dec 3 2021, 4:20 PM
rriddle added inline comments.
mlir/tools/mlir-tblgen/FormatGen.cpp
213–214

Is there a test for this?

mlir/tools/mlir-tblgen/FormatGen.h
151

Is the llvm:: necessary on these?

This revision is now accepted and ready to land.Dec 3 2021, 4:20 PM

Remove spurious llvm:: namespace qualifier

This revision was landed with ongoing or failed builds.Dec 3 2021, 4:27 PM
This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Dec 3 2021, 4:27 PM
mlir/tools/mlir-tblgen/FormatGen.cpp
213–214

No, I haven't been able to hit this case from the existing callers.

It is handled here: https://github.com/llvm/llvm-project/blob/main/mlir/tools/mlir-tblgen/OpFormatGen.cpp#L2716

mehdi_amini marked an inline comment as done.Dec 3 2021, 4:28 PM