[llvm] [NFC][AMDGPU] Introduce SIInstrFlags predicates for TSFlag access (PR #201512)

Piotr Sobczak via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 02:37:02 PDT 2026


================
@@ -182,6 +182,210 @@ enum : uint64_t {
   IsSWMMAC = UINT64_C(1) << 63,
 };
 
+// Inline predicates for TSFlags — the single place where raw TSFlags bit
+// tests are written. All callers (SIInstrInfo methods, MC-level code) go
+// through these functions to make bit layout changes easier.
+//
+// getTSFlags extracts the TSFlags value from different argument types.
+// SIInstrInfo.h adds a MachineInstr overload in namespace llvm (found via ADL
+// when predicates are instantiated with MachineInstr). Later commits in this
----------------
piotrAMD wrote:

Nit: please drop the part starting with "Later commits in this series add..". Comments should describe the code as-is and not depend on future changes.

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


More information about the llvm-commits mailing list