[llvm] [GlobalISel] Change MatchTable entries to 1 byte each (PR #74429)
Wang Pengcheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 20:23:53 PST 2023
================
@@ -427,8 +458,8 @@ bool GIMatchTableExecutor::executeMatchTable(
break;
}
case GIM_CheckAtomicOrdering: {
- int64_t InsnID = MatchTable[CurrentIdx++];
- AtomicOrdering Ordering = (AtomicOrdering)MatchTable[CurrentIdx++];
+ uint64_t InsnID = nextULEB128();
+ auto Ordering = (AtomicOrdering)nextULEB128();
----------------
wangpc-pp wrote:
Change these casting to `static_cast` by the way. :-)
https://github.com/llvm/llvm-project/pull/74429
More information about the llvm-commits
mailing list