This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add additional checking to tablgen RISCVVEmitter requested in D95016.
ClosedPublic

Authored by craig.topper on Mar 10 2021, 4:51 PM.

Details

Summary

This errors, but doesn't give source location. We'd need to pass
the Record through several layers to get to the location.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 10 2021, 4:51 PM
craig.topper requested review of this revision.Mar 10 2021, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2021, 4:51 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
jrtc27 accepted this revision.Mar 10 2021, 4:55 PM

Any TableGen backend error that's a real message and not an assertion failure with a backtrace is a win in my books :)

clang/utils/TableGen/RISCVVEmitter.cpp
627

Hm, if this is the actual parser then these should also be PrintFatalError (another instance earlier in the function, and one in applyBasicType)?

This revision is now accepted and ready to land.Mar 10 2021, 4:55 PM

Turn some llvm_unreachables into fatal errors

This revision was landed with ongoing or failed builds.Mar 10 2021, 7:56 PM
This revision was automatically updated to reflect the committed changes.