[PATCH] D89564: Provide correct return type and additional description for llvm.test.set.loop.iterations.* in langref

Janek van Oirschot via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 10:17:15 PDT 2020


JanekvO created this revision.
JanekvO added reviewers: SjoerdMeijer, samparker.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.
JanekvO requested review of this revision.

The langref description for `llvm.test.set.loop.iterations.*` seems to be missing the i1 return type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89564

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -15461,8 +15461,8 @@
 
 ::
 
-      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:
 """""""""
@@ -15486,6 +15486,7 @@
 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 a condition to determine whether the loop should be skipped.
 
 '``llvm.loop.decrement.reg.*``' Intrinsic
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89564.298662.patch
Type: text/x-patch
Size: 859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201016/ce070c37/attachment.bin>


More information about the llvm-commits mailing list