This is an archive of the discontinued LLVM Phabricator instance.

[NFC][SDNode] Use `StringSwitch` instead of `if`
ClosedPublic

Authored by achieveartificialintelligence on Jan 16 2022, 6:52 PM.

Diff Detail

Event Timeline

achieveartificialintelligence requested review of this revision.Jan 16 2022, 6:52 PM
achieveartificialintelligence created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2022, 6:52 PM
craig.topper added inline comments.
llvm/utils/TableGen/SDNodeProperties.cpp
31

This won't report the error correctly if there are two properties and the first one is known but the second isn't. Properties will be non-zero after the first property so the second property won't be able to trigger an error.

This revision is now accepted and ready to land.Jan 17 2022, 10:03 AM
This revision was landed with ongoing or failed builds.Jan 17 2022, 4:12 PM
This revision was automatically updated to reflect the committed changes.