[llvm] [AMDGPU] Fix CPol operands of MUBUF atomics. (PR #73118)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 07:51:32 PST 2023


================
@@ -1080,6 +1079,8 @@ def CPol_0 : DefaultOperand<CPol, 0>;
 def CPol_GLC1 : DefaultOperand<CPol, 1>;
 def CPol_GLC : ValuePredicatedOperand<CPol, "Op.getImm() & CPol::GLC">;
 def CPol_NonGLC : ValuePredicatedOperand<CPol, "!(Op.getImm() & CPol::GLC)", 1>;
+def CPol_GLC_WithDefault : DefaultOperand<CPol_GLC, !shl(1, CPolBit.GLC)>;
+def CPol_NonGLC_WithDefault : DefaultOperand<CPol_NonGLC, 0>;
----------------
jayfoad wrote:

How is the behaviour of `CPol_(Non)GLC_WithDefault` different from `CPol_(Non)GLC`?

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


More information about the llvm-commits mailing list