Skip to content

Commit d5a614d

Browse files
authored
[CodeGen][NFC] Fix documentation comments (#100092)
1 parent 20d7fff commit d5a614d

File tree

1 file changed

+39
-35
lines changed

1 file changed

+39
-35
lines changed

llvm/include/llvm/CodeGen/ISDOpcodes.h

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ enum NodeType {
217217
/// UNDEF - An undefined node.
218218
UNDEF,
219219

220-
// FREEZE - FREEZE(VAL) returns an arbitrary value if VAL is UNDEF (or
221-
// is evaluated to UNDEF), or returns VAL otherwise. Note that each
222-
// read of UNDEF can yield different value, but FREEZE(UNDEF) cannot.
220+
/// FREEZE - FREEZE(VAL) returns an arbitrary value if VAL is UNDEF (or
221+
/// is evaluated to UNDEF), or returns VAL otherwise. Note that each
222+
/// read of UNDEF can yield different value, but FREEZE(UNDEF) cannot.
223223
FREEZE,
224224

225225
/// EXTRACT_ELEMENT - This is used to get the lower or upper (determined by
@@ -300,7 +300,7 @@ enum NodeType {
300300
/// it to the add/sub hardware instruction, and then inverting the outgoing
301301
/// carry/borrow.
302302
///
303-
/// The use of these opcodes is preferable to adde/sube if the target supports
303+
/// The use of these opcodes is preferable to ADDE/SUBE if the target supports
304304
/// it, as the carry is a regular value rather than a glue, which allows
305305
/// further optimisation.
306306
///
@@ -490,7 +490,7 @@ enum NodeType {
490490
STRICT_FSETCC,
491491
STRICT_FSETCCS,
492492

493-
// FPTRUNC_ROUND - This corresponds to the fptrunc_round intrinsic.
493+
/// FPTRUNC_ROUND - This corresponds to the fptrunc_round intrinsic.
494494
FPTRUNC_ROUND,
495495

496496
/// FMA - Perform a * b + c with no intermediate rounding step.
@@ -684,10 +684,10 @@ enum NodeType {
684684
AVGCEILS,
685685
AVGCEILU,
686686

687-
// ABDS/ABDU - Absolute difference - Return the absolute difference between
688-
// two numbers interpreted as signed/unsigned.
689-
// i.e trunc(abs(sext(Op0) - sext(Op1))) becomes abds(Op0, Op1)
690-
// or trunc(abs(zext(Op0) - zext(Op1))) becomes abdu(Op0, Op1)
687+
/// ABDS/ABDU - Absolute difference - Return the absolute difference between
688+
/// two numbers interpreted as signed/unsigned.
689+
/// i.e trunc(abs(sext(Op0) - sext(Op1))) becomes abds(Op0, Op1)
690+
/// or trunc(abs(zext(Op0) - zext(Op1))) becomes abdu(Op0, Op1)
691691
ABDS,
692692
ABDU,
693693

@@ -728,8 +728,9 @@ enum NodeType {
728728
/// amount modulo the element size of the first operand.
729729
///
730730
/// Funnel 'double' shifts take 3 operands, 2 inputs and the shift amount.
731-
/// fshl(X,Y,Z): (X << (Z % BW)) | (Y >> (BW - (Z % BW)))
732-
/// fshr(X,Y,Z): (X << (BW - (Z % BW))) | (Y >> (Z % BW))
731+
///
732+
/// fshl(X,Y,Z): (X << (Z % BW)) | (Y >> (BW - (Z % BW)))
733+
/// fshr(X,Y,Z): (X << (BW - (Z % BW))) | (Y >> (Z % BW))
733734
SHL,
734735
SRA,
735736
SRL,
@@ -787,7 +788,8 @@ enum NodeType {
787788

788789
/// SHL_PARTS/SRA_PARTS/SRL_PARTS - These operators are used for expanded
789790
/// integer shift operations. The operation ordering is:
790-
/// [Lo,Hi] = op [LoLHS,HiLHS], Amt
791+
///
792+
/// [Lo,Hi] = op [LoLHS,HiLHS], Amt
791793
SHL_PARTS,
792794
SRA_PARTS,
793795
SRL_PARTS,
@@ -998,7 +1000,7 @@ enum NodeType {
9981000

9991001
/// FMINNUM/FMAXNUM - Perform floating-point minimum or maximum on two
10001002
/// values.
1001-
//
1003+
///
10021004
/// In the case where a single input is a NaN (either signaling or quiet),
10031005
/// the non-NaN input is returned.
10041006
///
@@ -1196,11 +1198,11 @@ enum NodeType {
11961198
VAEND,
11971199
VASTART,
11981200

1199-
// PREALLOCATED_SETUP - This has 2 operands: an input chain and a SRCVALUE
1200-
// with the preallocated call Value.
1201+
/// PREALLOCATED_SETUP - This has 2 operands: an input chain and a SRCVALUE
1202+
/// with the preallocated call Value.
12011203
PREALLOCATED_SETUP,
1202-
// PREALLOCATED_ARG - This has 3 operands: an input chain, a SRCVALUE
1203-
// with the preallocated call Value, and a constant int.
1204+
/// PREALLOCATED_ARG - This has 3 operands: an input chain, a SRCVALUE
1205+
/// with the preallocated call Value, and a constant int.
12041206
PREALLOCATED_ARG,
12051207

12061208
/// SRCVALUE - This is a node type that holds a Value* that is used to
@@ -1319,24 +1321,24 @@ enum NodeType {
13191321
ATOMIC_LOAD_UINC_WRAP,
13201322
ATOMIC_LOAD_UDEC_WRAP,
13211323

1322-
// Masked load and store - consecutive vector load and store operations
1323-
// with additional mask operand that prevents memory accesses to the
1324-
// masked-off lanes.
1325-
//
1326-
// Val, OutChain = MLOAD(BasePtr, Mask, PassThru)
1327-
// OutChain = MSTORE(Value, BasePtr, Mask)
1324+
/// Masked load and store - consecutive vector load and store operations
1325+
/// with additional mask operand that prevents memory accesses to the
1326+
/// masked-off lanes.
1327+
///
1328+
/// Val, OutChain = MLOAD(BasePtr, Mask, PassThru)
1329+
/// OutChain = MSTORE(Value, BasePtr, Mask)
13281330
MLOAD,
13291331
MSTORE,
13301332

1331-
// Masked gather and scatter - load and store operations for a vector of
1332-
// random addresses with additional mask operand that prevents memory
1333-
// accesses to the masked-off lanes.
1334-
//
1335-
// Val, OutChain = GATHER(InChain, PassThru, Mask, BasePtr, Index, Scale)
1336-
// OutChain = SCATTER(InChain, Value, Mask, BasePtr, Index, Scale)
1337-
//
1338-
// The Index operand can have more vector elements than the other operands
1339-
// due to type legalization. The extra elements are ignored.
1333+
/// Masked gather and scatter - load and store operations for a vector of
1334+
/// random addresses with additional mask operand that prevents memory
1335+
/// accesses to the masked-off lanes.
1336+
///
1337+
/// Val, OutChain = GATHER(InChain, PassThru, Mask, BasePtr, Index, Scale)
1338+
/// OutChain = SCATTER(InChain, Value, Mask, BasePtr, Index, Scale)
1339+
///
1340+
/// The Index operand can have more vector elements than the other operands
1341+
/// due to type legalization. The extra elements are ignored.
13401342
MGATHER,
13411343
MSCATTER,
13421344

@@ -1385,9 +1387,11 @@ enum NodeType {
13851387
/// pow-of-2 vectors, one valid legalizer expansion is to use a tree
13861388
/// reduction, i.e.:
13871389
/// For RES = VECREDUCE_FADD <8 x f16> SRC_VEC
1388-
/// PART_RDX = FADD SRC_VEC[0:3], SRC_VEC[4:7]
1389-
/// PART_RDX2 = FADD PART_RDX[0:1], PART_RDX[2:3]
1390-
/// RES = FADD PART_RDX2[0], PART_RDX2[1]
1390+
///
1391+
/// PART_RDX = FADD SRC_VEC[0:3], SRC_VEC[4:7]
1392+
/// PART_RDX2 = FADD PART_RDX[0:1], PART_RDX[2:3]
1393+
/// RES = FADD PART_RDX2[0], PART_RDX2[1]
1394+
///
13911395
/// For non-pow-2 vectors, this can be computed by extracting each element
13921396
/// and performing the operation as if it were scalarized.
13931397
VECREDUCE_FADD,

0 commit comments

Comments
 (0)