[llvm] ed7f36e - [LangRef] update a couple of struct/vector creation examples to use poison
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 29 01:42:30 PST 2024
Author: Nuno Lopes
Date: 2024-11-29T09:42:25Z
New Revision: ed7f36e1ecc26d6360126fc6ed0514b592fcc029
URL: https://github.com/llvm/llvm-project/commit/ed7f36e1ecc26d6360126fc6ed0514b592fcc029
DIFF: https://github.com/llvm/llvm-project/commit/ed7f36e1ecc26d6360126fc6ed0514b592fcc029.diff
LOG: [LangRef] update a couple of struct/vector creation examples to use poison
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index be5b6e2e215e65..abfd2fdfb9de71 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -10827,9 +10827,9 @@ Example:
.. code-block:: llvm
- %agg1 = insertvalue {i32, float} undef, i32 1, 0 ; yields {i32 1, float undef}
- %agg2 = insertvalue {i32, float} %agg1, float %val, 1 ; yields {i32 1, float %val}
- %agg3 = insertvalue {i32, {float}} undef, float %val, 1, 0 ; yields {i32 undef, {float %val}}
+ %agg1 = insertvalue {i32, float} poison, i32 1, 0 ; yields {i32 1, float poison}
+ %agg2 = insertvalue {i32, float} %agg1, float %val, 1 ; yields {i32 1, float %val}
+ %agg3 = insertvalue {i32, {float}} poison, float %val, 1, 0 ; yields {i32 poison, {float %val}}
.. _memoryops:
@@ -20876,7 +20876,7 @@ Example:
;;; Expansion.
;; Lanes at and above %pivot are taken from %on_false
- %atfirst = insertelement <4 x i32> undef, i32 %pivot, i32 0
+ %atfirst = insertelement <4 x i32> poison, i32 %pivot, i32 0
%splat = shufflevector <4 x i32> %atfirst, <4 x i32> poison, <4 x i32> zeroinitializer
%pivotmask = icmp ult <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32> %splat
%mergemask = and <4 x i1> %cond, <4 x i1> %pivotmask
More information about the llvm-commits
mailing list