[llvm] [DXIL] Add GroupMemoryBarrierWithGroupSync intrinsic (PR #114349)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 09:59:58 PST 2024


================
@@ -106,17 +106,35 @@ class OpLowerer {
     return false;
   }
 
-  [[nodiscard]]
-  bool replaceFunctionWithOp(Function &F, dxil::OpCode DXILOp) {
+#define DXIL_OP_INTRINSIC_ARG_SELECT_TYPES
+#include "DXILOperation.inc"
+
+  [[nodiscard]] bool
+  replaceFunctionWithOp(Function &F, dxil::OpCode DXILOp,
+                        ArrayRef<IntrinArgSelect> ArgSelects) {
     bool IsVectorArgExpansion = isVectorArgExpansion(F);
----------------
bogner wrote:

Might be worth asserting that we don't have `IsVectorArgExpansion` and a non-empty `ArgSelects` at the same time.

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


More information about the llvm-commits mailing list