From 03f3ef221b0257a91182640563440fe8dd104c81 Mon Sep 17 00:00:00 2001 From: Sam Parker Date: Mon, 19 Oct 2020 12:26:44 +0100 Subject: [PATCH] [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 --- llvm/docs/LangRef.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^