Skip to content

Commit 2bd4234

Browse files
committed
change comment wording
1 parent 59a262d commit 2bd4234

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

llvm/docs/GlobalISel/GenericOpcode.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ G_EXTRACT for scalar types, but acts elementwise on vectors.
151151
G_TRUNC_SSAT_S
152152
^^^^^^^^^^^^^^
153153

154-
Truncate a saturated signed input to a signed result.
154+
Truncate a signed input to a signed result with saturation.
155155

156156
.. code-block:: none
157157
@@ -160,7 +160,7 @@ Truncate a saturated signed input to a signed result.
160160
G_TRUNC_SSAT_U
161161
^^^^^^^^^^^^^^
162162

163-
Truncate a saturated signed input to an unsigned result.
163+
Truncate a signed input to an unsigned result with saturation.
164164

165165
.. code-block:: none
166166
@@ -169,7 +169,7 @@ Truncate a saturated signed input to an unsigned result.
169169
G_TRUNC_USAT_U
170170
^^^^^^^^^^^^^^
171171

172-
Truncate a saturated unsigned input to an unsigned result.
172+
Truncate a unsigned input to an unsigned result with saturation.
173173

174174
.. code-block:: none
175175

llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,8 @@ class LLVM_ABI MachineIRBuilder {
811811

812812
/// Build and insert \p Res = \p G_TRUNC_SSAT_S \p Op
813813
///
814-
/// G_TRUNC_SSAT_S truncates the saturated signed input, \p Op, to a signed
815-
/// result.
814+
/// G_TRUNC_SSAT_S truncates the signed input, \p Op, to a signed result with
815+
/// saturation.
816816
///
817817
/// \pre setBasicBlock or setMI must have been called.
818818
/// \pre \p Res must be a generic virtual register with scalar or vector type.
@@ -825,8 +825,8 @@ class LLVM_ABI MachineIRBuilder {
825825

826826
/// Build and insert \p Res = \p G_TRUNC_SSAT_U \p Op
827827
///
828-
/// G_TRUNC_SSAT_U truncates the saturated signed input, \p Op, to a unsigned
829-
/// result.
828+
/// G_TRUNC_SSAT_U truncates the signed input, \p Op, to an unsigned result
829+
/// with saturation.
830830
///
831831
/// \pre setBasicBlock or setMI must have been called.
832832
/// \pre \p Res must be a generic virtual register with scalar or vector type.
@@ -839,8 +839,8 @@ class LLVM_ABI MachineIRBuilder {
839839

840840
/// Build and insert \p Res = \p G_TRUNC_USAT_U \p Op
841841
///
842-
/// G_TRUNC_USAT_U truncates the saturated unsigned input, \p Op, to a
843-
/// unsigned result.
842+
/// G_TRUNC_USAT_U truncates the unsigned input, \p Op, to an unsigned result
843+
/// with saturation.
844844
///
845845
/// \pre setBasicBlock or setMI must have been called.
846846
/// \pre \p Res must be a generic virtual register with scalar or vector type.

llvm/include/llvm/Support/TargetOpcodes.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,13 @@ HANDLE_TARGET_OPCODE(G_ANYEXT)
475475
/// elements of the vector.
476476
HANDLE_TARGET_OPCODE(G_TRUNC)
477477

478-
/// Generic instruction to truncate a saturated signed operand to a signed result.
478+
/// Generic instruction to truncate a signed operand to a signed result with saturation.
479479
HANDLE_TARGET_OPCODE(G_TRUNC_SSAT_S)
480480

481-
/// Generic instruction to truncate a saturated signed operand to an unsigned result.
481+
/// Generic instruction to truncate a signed operand to an unsigned result with saturation.
482482
HANDLE_TARGET_OPCODE(G_TRUNC_SSAT_U)
483483

484-
/// Generic instruction to truncate a saturated unsigned operand to an unsigned result.
484+
/// Generic instruction to truncate a unsigned operand to an unsigned result with saturation.
485485
HANDLE_TARGET_OPCODE(G_TRUNC_USAT_U)
486486

487487
/// Generic integer constant.

llvm/include/llvm/Target/GenericOpcodes.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,21 @@ def G_TRUNC : GenericInstruction {
8686
let hasSideEffects = false;
8787
}
8888

89-
// Truncate the signed saturated operand to a signed result.
89+
// Truncate the signed saturated operand to a signed result with saturation.
9090
def G_TRUNC_SSAT_S : GenericInstruction {
9191
let OutOperandList = (outs type0:$dst);
9292
let InOperandList = (ins type1:$src);
9393
let hasSideEffects = false;
9494
}
9595

96-
// Truncate the signed saturated operand to an unsigned result.
96+
// Truncate the signed saturated operand to an unsigned result with saturation.
9797
def G_TRUNC_SSAT_U : GenericInstruction {
9898
let OutOperandList = (outs type0:$dst);
9999
let InOperandList = (ins type1:$src);
100100
let hasSideEffects = false;
101101
}
102102

103-
// Truncate the unsigned saturated operand to an unsigned result.
103+
// Truncate the unsigned saturated operand to an unsigned result with saturation.
104104
def G_TRUNC_USAT_U : GenericInstruction {
105105
let OutOperandList = (outs type0:$dst);
106106
let InOperandList = (ins type1:$src);

0 commit comments

Comments
 (0)