[llvm] [LangRef] Add aligned attribute description into masked.compress/expandload sections. (PR #83808)

Yeting Kuo via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 00:01:48 PST 2024


https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/83808

>From c8b5f58c75d54f3dad79895112f1d126ddcd5389 Mon Sep 17 00:00:00 2001
From: Yeting Kuo <yeting.kuo at sifive.com>
Date: Mon, 4 Mar 2024 01:16:38 -0800
Subject: [PATCH 1/3] [LangRef] Add aligned attribute description into
 masked.compress/expandload sections.

align attribute is used for masked.compress/expandload in commit #83519, #83763, #83516.
---
 llvm/docs/LangRef.rst | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index f56d4ed28f2855..a2d1f816665250 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -24276,6 +24276,9 @@ Arguments:
 
 The first operand is the base pointer for the load. It has the same underlying type as the element of the returned vector. The second operand, mask, is a vector of boolean values with the same number of elements as the return type. The third is a pass-through value that is used to fill the masked-off lanes of the result. The return type and the type of the '``passthru``' operand have the same vector type.
 
+The :ref:`align <attr_align>` parameter attribute can be provided for the first
+operand.
+
 Semantics:
 """"""""""
 
@@ -24333,6 +24336,8 @@ Arguments:
 
 The first operand is the input vector, from which elements are collected and written to memory. The second operand is the base pointer for the store, it has the same underlying type as the element of the input vector operand. The third operand is the mask, a vector of boolean values. The mask and the input vector must have the same number of vector elements.
 
+The :ref:`align <attr_align>` parameter attribute can be provided for the second
+operand.
 
 Semantics:
 """"""""""

>From 04c55c172d096f8ccec3fd3995fc312d68d5d30d Mon Sep 17 00:00:00 2001
From: Yeting Kuo <yeting.kuo at sifive.com>
Date: Mon, 4 Mar 2024 23:13:09 -0800
Subject: [PATCH 2/3] Address arsenm's comment

---
 llvm/docs/LangRef.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index a2d1f816665250..e6703d9d8f80cc 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -24277,7 +24277,7 @@ Arguments:
 The first operand is the base pointer for the load. It has the same underlying type as the element of the returned vector. The second operand, mask, is a vector of boolean values with the same number of elements as the return type. The third is a pass-through value that is used to fill the masked-off lanes of the result. The return type and the type of the '``passthru``' operand have the same vector type.
 
 The :ref:`align <attr_align>` parameter attribute can be provided for the first
-operand.
+operand. The pointer alignment is default to 1.
 
 Semantics:
 """"""""""
@@ -24337,7 +24337,7 @@ Arguments:
 The first operand is the input vector, from which elements are collected and written to memory. The second operand is the base pointer for the store, it has the same underlying type as the element of the input vector operand. The third operand is the mask, a vector of boolean values. The mask and the input vector must have the same number of vector elements.
 
 The :ref:`align <attr_align>` parameter attribute can be provided for the second
-operand.
+operand. The pointer alignment is default to 1.
 
 Semantics:
 """"""""""

>From a38f21d0dad1690c16aa0a302efee8fa3ba6e196 Mon Sep 17 00:00:00 2001
From: Yeting Kuo <yeting.kuo at sifive.com>
Date: Tue, 5 Mar 2024 00:01:30 -0800
Subject: [PATCH 3/3] Fix typos

---
 llvm/docs/LangRef.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index e6703d9d8f80cc..0e3f6f8daababc 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -24277,7 +24277,7 @@ Arguments:
 The first operand is the base pointer for the load. It has the same underlying type as the element of the returned vector. The second operand, mask, is a vector of boolean values with the same number of elements as the return type. The third is a pass-through value that is used to fill the masked-off lanes of the result. The return type and the type of the '``passthru``' operand have the same vector type.
 
 The :ref:`align <attr_align>` parameter attribute can be provided for the first
-operand. The pointer alignment is default to 1.
+operand. The pointer alignment defaults to 1.
 
 Semantics:
 """"""""""
@@ -24337,7 +24337,7 @@ Arguments:
 The first operand is the input vector, from which elements are collected and written to memory. The second operand is the base pointer for the store, it has the same underlying type as the element of the input vector operand. The third operand is the mask, a vector of boolean values. The mask and the input vector must have the same number of vector elements.
 
 The :ref:`align <attr_align>` parameter attribute can be provided for the second
-operand. The pointer alignment is default to 1.
+operand. The pointer alignment defaults to 1.
 
 Semantics:
 """"""""""



More information about the llvm-commits mailing list