[llvm] cc4d7dc - [AMDGPU] Fix comment for llvm.amdgcn.div.scale. NFC.
Austin Kerbow via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 12:07:13 PDT 2020
Author: Austin Kerbow
Date: 2020-04-13T12:04:55-07:00
New Revision: cc4d7dced9fa6630ec0921f9c5a58fa1a2972e60
URL: https://github.com/llvm/llvm-project/commit/cc4d7dced9fa6630ec0921f9c5a58fa1a2972e60
DIFF: https://github.com/llvm/llvm-project/commit/cc4d7dced9fa6630ec0921f9c5a58fa1a2972e60.diff
LOG: [AMDGPU] Fix comment for llvm.amdgcn.div.scale. NFC.
Update comment to reflect actual lowering.
Added:
Modified:
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
index d1eae65beb3d..b5f9685f5b7b 100644
--- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
@@ -217,8 +217,8 @@ def int_amdgcn_s_waitcnt : GCCBuiltin<"__builtin_amdgcn_s_waitcnt">,
def int_amdgcn_div_scale : Intrinsic<
// 1st parameter: Numerator
// 2nd parameter: Denominator
- // 3rd parameter: Constant to select between first and
- // second. (0 = first, 1 = second).
+ // 3rd parameter: Select quotient. Must equal Numerator or Denominator.
+ // (0 = Denominator, 1 = Numerator).
[llvm_anyfloat_ty, llvm_i1_ty],
[LLVMMatchType<0>, LLVMMatchType<0>, llvm_i1_ty],
[IntrNoMem, IntrSpeculatable, ImmArg<2>]
More information about the llvm-commits
mailing list