[AMDGPU][NFC] Document high parameter of f16 interp intrinsics
authorCarl Ritson <carl.ritson@amd.com>
Fri, 18 Dec 2020 10:56:16 +0000 (19:56 +0900)
committerCarl Ritson <carl.ritson@amd.com>
Fri, 18 Dec 2020 10:59:13 +0000 (19:59 +0900)
llvm/include/llvm/IR/IntrinsicsAMDGPU.td

index ea4a93f..2cab7f3 100644 (file)
@@ -1330,6 +1330,7 @@ def int_amdgcn_interp_p2 :
           // See int_amdgcn_v_interp_p1 for why this is IntrNoMem.
 
 // __builtin_amdgcn_interp_p1_f16 <i>, <attr_chan>, <attr>, <high>, <m0>
+// high selects whether high or low 16-bits are loaded from LDS
 def int_amdgcn_interp_p1_f16 :
   GCCBuiltin<"__builtin_amdgcn_interp_p1_f16">,
   Intrinsic<[llvm_float_ty],
@@ -1338,6 +1339,7 @@ def int_amdgcn_interp_p1_f16 :
              ImmArg<ArgIndex<1>>, ImmArg<ArgIndex<2>>, ImmArg<ArgIndex<3>>]>;
 
 // __builtin_amdgcn_interp_p2_f16 <p1>, <j>, <attr_chan>, <attr>, <high>, <m0>
+// high selects whether high or low 16-bits are loaded from LDS
 def int_amdgcn_interp_p2_f16 :
   GCCBuiltin<"__builtin_amdgcn_interp_p2_f16">,
   Intrinsic<[llvm_half_ty],