[llvm] 03f3ef2 - [LangRef] Correct return type llvm.test.set.loop.iterations.*

Sam Parker via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 04:57:03 PDT 2020


Author: Sam Parker
Date: 2020-10-19T12:56:38+01:00
New Revision: 03f3ef221b0257a91182640563440fe8dd104c81

URL: https://github.com/llvm/llvm-project/commit/03f3ef221b0257a91182640563440fe8dd104c81
DIFF: https://github.com/llvm/llvm-project/commit/03f3ef221b0257a91182640563440fe8dd104c81.diff

LOG: [LangRef] Correct return type llvm.test.set.loop.iterations.*

The langref description for llvm.test.set.loop.iterations.* were
missing the i1 return type.

Differential Revision: https://reviews.llvm.org/D89564

Patch by: Janek van Oirschot

Added: 
    

Modified: 
    llvm/docs/LangRef.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 087cf1f1d4d7..b36c544f9de1 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -15474,8 +15474,8 @@ This is an overloaded intrinsic.
 
 ::
 
-      declare void @llvm.test.set.loop.iterations.i32(i32)
-      declare void @llvm.test.set.loop.iterations.i64(i64)
+      declare i1 @llvm.test.set.loop.iterations.i32(i32)
+      declare i1 @llvm.test.set.loop.iterations.i64(i64)
 
 Overview:
 """""""""
@@ -15499,6 +15499,7 @@ The '``llvm.test.set.loop.iterations.*``' intrinsics do not perform any
 arithmetic on their operand. It's a hint to the backend that can use this to
 set up the hardware-loop count with a target specific instruction, usually a
 move of this value to a special register or a hardware-loop instruction.
+The result is the conditional value of whether the given count is not zero.
 
 '``llvm.loop.decrement.reg.*``' Intrinsic
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


        


More information about the llvm-commits mailing list