@@ -217,9 +217,9 @@ enum NodeType {
217
217
// / UNDEF - An undefined node.
218
218
UNDEF,
219
219
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.
223
223
FREEZE,
224
224
225
225
// / EXTRACT_ELEMENT - This is used to get the lower or upper (determined by
@@ -300,7 +300,7 @@ enum NodeType {
300
300
// / it to the add/sub hardware instruction, and then inverting the outgoing
301
301
// / carry/borrow.
302
302
// /
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
304
304
// / it, as the carry is a regular value rather than a glue, which allows
305
305
// / further optimisation.
306
306
// /
@@ -490,7 +490,7 @@ enum NodeType {
490
490
STRICT_FSETCC,
491
491
STRICT_FSETCCS,
492
492
493
- // FPTRUNC_ROUND - This corresponds to the fptrunc_round intrinsic.
493
+ // / FPTRUNC_ROUND - This corresponds to the fptrunc_round intrinsic.
494
494
FPTRUNC_ROUND,
495
495
496
496
// / FMA - Perform a * b + c with no intermediate rounding step.
@@ -684,10 +684,10 @@ enum NodeType {
684
684
AVGCEILS,
685
685
AVGCEILU,
686
686
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)
691
691
ABDS,
692
692
ABDU,
693
693
@@ -728,8 +728,9 @@ enum NodeType {
728
728
// / amount modulo the element size of the first operand.
729
729
// /
730
730
// / 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))
733
734
SHL,
734
735
SRA,
735
736
SRL,
@@ -787,7 +788,8 @@ enum NodeType {
787
788
788
789
// / SHL_PARTS/SRA_PARTS/SRL_PARTS - These operators are used for expanded
789
790
// / integer shift operations. The operation ordering is:
790
- // / [Lo,Hi] = op [LoLHS,HiLHS], Amt
791
+ // /
792
+ // / [Lo,Hi] = op [LoLHS,HiLHS], Amt
791
793
SHL_PARTS,
792
794
SRA_PARTS,
793
795
SRL_PARTS,
@@ -998,7 +1000,7 @@ enum NodeType {
998
1000
999
1001
// / FMINNUM/FMAXNUM - Perform floating-point minimum or maximum on two
1000
1002
// / values.
1001
- //
1003
+ // /
1002
1004
// / In the case where a single input is a NaN (either signaling or quiet),
1003
1005
// / the non-NaN input is returned.
1004
1006
// /
@@ -1196,11 +1198,11 @@ enum NodeType {
1196
1198
VAEND,
1197
1199
VASTART,
1198
1200
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.
1201
1203
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.
1204
1206
PREALLOCATED_ARG,
1205
1207
1206
1208
// / SRCVALUE - This is a node type that holds a Value* that is used to
@@ -1319,24 +1321,24 @@ enum NodeType {
1319
1321
ATOMIC_LOAD_UINC_WRAP,
1320
1322
ATOMIC_LOAD_UDEC_WRAP,
1321
1323
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)
1328
1330
MLOAD,
1329
1331
MSTORE,
1330
1332
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.
1340
1342
MGATHER,
1341
1343
MSCATTER,
1342
1344
@@ -1385,9 +1387,11 @@ enum NodeType {
1385
1387
// / pow-of-2 vectors, one valid legalizer expansion is to use a tree
1386
1388
// / reduction, i.e.:
1387
1389
// / 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
+ // /
1391
1395
// / For non-pow-2 vectors, this can be computed by extracting each element
1392
1396
// / and performing the operation as if it were scalarized.
1393
1397
VECREDUCE_FADD,
0 commit comments