[PATCH] D26585: [AMDGPU] Add wave barrier builtin

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 10:38:08 PST 2016


arsenm added a comment.

This also needs a corresponding convergent pseudoinstruction otherwise machine CFG changes could do the same things



================
Comment at: include/llvm/IR/IntrinsicsAMDGPU.td:110
 
+def int_amdgcn_s_wave_barrier : GCCBuiltin<"__builtin_amdgcn_s_wave_barrier">,
+  Intrinsic<[], [], [IntrConvergent]>;
----------------
There is no scalar instruction, so this should drop the _s_


Repository:
  rL LLVM

https://reviews.llvm.org/D26585





More information about the llvm-commits mailing list