[llvm] [TableGen][SelectionDAG] Make CheckValueTypeMatcher use MVT::SimpleValueType (PR #99537)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 11:47:02 PDT 2024
================
@@ -235,7 +235,8 @@ void MatcherGen::EmitLeafMatchCode(const TreePatternNode &N) {
if (N.hasName())
return;
// An unnamed ValueType as in (sext_inreg GPR:$foo, i8).
- return AddMatcher(new CheckValueTypeMatcher(LeafRec->getName()));
+ return AddMatcher(new CheckValueTypeMatcher(
+ static_cast<MVT::SimpleValueType>(LeafRec->getValueAsInt("Value"))));
----------------
topperc wrote:
Use `llvm::getValueType(LeafRec)`
https://github.com/llvm/llvm-project/pull/99537
More information about the llvm-commits
mailing list