[TableGen] Make getRegisterValueType stricter about HwModes.
authorCraig Topper <craig.topper@sifive.com>
Mon, 24 Apr 2023 06:28:23 +0000 (23:28 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 24 Apr 2023 06:28:23 +0000 (23:28 -0700)
commitd20c29d9964188dabfaef9c510e59b895f4ad869
treece31ff08b0679e34da777c10924e75193a46e6c1
parentfd9f7b90109b3fb9a3ac8df5eb4dd966a359c2f4
[TableGen] Make getRegisterValueType stricter about HwModes.

I don't think this code would work correctly if the register class
used used HwModes. Add asserts to make sure it's not used with HwModes.

Also fix a long outdated comment on the function.
llvm/utils/TableGen/DAGISelMatcherGen.cpp