[PATCH] D56155: [docs] cttz and ctlz return poison, not undef, when argument is 0

Pranav Kant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 29 13:11:34 PST 2018


pranavk created this revision.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D56155

Files:
  docs/LangRef.rst


Index: docs/LangRef.rst
===================================================================
--- docs/LangRef.rst
+++ docs/LangRef.rst
@@ -12258,8 +12258,8 @@
 The '``llvm.ctlz``' intrinsic counts the leading (most significant)
 zeros in a variable, or within each element of the vector. If
 ``src == 0`` then the result is the size in bits of the type of ``src``
-if ``is_zero_undef == 0`` and ``undef`` otherwise. For example,
-``llvm.ctlz(i32 2) = 30``.
+if ``is_zero_undef == 0`` and :ref:`poison value <poisonvalues>` otherwise.
+For example, ``llvm.ctlz(i32 2) = 30``.
 
 '``llvm.cttz.*``' Intrinsic
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -12305,8 +12305,8 @@
 The '``llvm.cttz``' intrinsic counts the trailing (least significant)
 zeros in a variable, or within each element of a vector. If ``src == 0``
 then the result is the size in bits of the type of ``src`` if
-``is_zero_undef == 0`` and ``undef`` otherwise. For example,
-``llvm.cttz(2) = 1``.
+``is_zero_undef == 0`` and :ref:`poison value <poisonvalues>` otherwise.
+For example, ``llvm.cttz(2) = 1``.
 
 .. _int_overflow:
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56155.179706.patch
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181229/ac6182e8/attachment.bin>


More information about the llvm-commits mailing list