[llvm] r371793 - AMDGPU: Add immarg to llvm.amdgcn.init.exec.from.input

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 16:46:54 PDT 2019


Author: arsenm
Date: Thu Sep 12 16:46:54 2019
New Revision: 371793

URL: http://llvm.org/viewvc/llvm-project?rev=371793&view=rev
Log:
AMDGPU: Add immarg to llvm.amdgcn.init.exec.from.input

As far as I can tell this has to be a constant.

Modified:
    llvm/trunk/include/llvm/IR/IntrinsicsAMDGPU.td

Modified: llvm/trunk/include/llvm/IR/IntrinsicsAMDGPU.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IntrinsicsAMDGPU.td?rev=371793&r1=371792&r2=371793&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IntrinsicsAMDGPU.td (original)
+++ llvm/trunk/include/llvm/IR/IntrinsicsAMDGPU.td Thu Sep 12 16:46:54 2019
@@ -186,7 +186,7 @@ def int_amdgcn_init_exec : Intrinsic<[],
 def int_amdgcn_init_exec_from_input : Intrinsic<[],
   [llvm_i32_ty,       // 32-bit SGPR input
    llvm_i32_ty],      // bit offset of the thread count
-  [IntrConvergent]>;
+  [IntrConvergent, ImmArg<1>]>;
 
 def int_amdgcn_wavefrontsize :
   GCCBuiltin<"__builtin_amdgcn_wavefrontsize">,




More information about the llvm-commits mailing list