This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Define InvalidRegBankID enum value
ClosedPublic

Authored by arsenm on Jul 16 2020, 2:26 PM.

Diff Detail

Event Timeline

arsenm created this revision.Jul 16 2020, 2:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2020, 2:26 PM
arsenm updated this revision to Diff 279385.Jul 20 2020, 5:44 PM

Make enum unsigned to match getID

paquette added inline comments.Jul 29 2020, 9:02 AM
llvm/utils/TableGen/RegisterBankEmitter.cpp
136

Why 0 when it was -1 before?

arsenm added inline comments.Jul 29 2020, 9:04 AM
llvm/utils/TableGen/RegisterBankEmitter.cpp
136

This is still -1, just the unsigned interpretation. All of the code treats this as unsigned, so to avoid fixing up everywhere that uses these to use int, the enum needs to be switched to unsigned.

paquette accepted this revision.Aug 6 2020, 9:01 AM

LGTM

This revision is now accepted and ready to land.Aug 6 2020, 9:01 AM