[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


================
@@ -647,6 +670,10 @@ class GIMatchTableExecutor {
   /// MI and IntoMI do not need to be in the same basic blocks, but MI must
   /// preceed IntoMI.
   bool isObviouslySafeToFold(MachineInstr &MI, MachineInstr &IntoMI) const;
+
+  template <typename Ty> static Ty readBytes(const uint8_t *MatchTable) {
----------------
wangpc-pp wrote:

What about `readBytesAs`?

https://github.com/llvm/llvm-project/pull/74429


More information about the llvm-commits mailing list