Skip to content

Commit cc7b24a

Browse files
authored
[NFC] Fix typos in comments (#109765)
1 parent 30dbbdd commit cc7b24a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

llvm/include/llvm/CodeGen/ISDOpcodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ enum NodeType {
825825
/// be saturated against signed values, resulting in `S`, which will combine
826826
/// to `TRUNCATE_SSAT_S`. If the value of C ranges from `0 to 255`, it will
827827
/// be saturated against unsigned values, resulting in `U`, which will
828-
/// combine to `TRUNATE_SSAT_U`. Similarly, in `truncate(umin(x, C))`, if
828+
/// combine to `TRUNCATE_SSAT_U`. Similarly, in `truncate(umin(x, C))`, if
829829
/// value of C ranges from `0 to 255`, it becomes `U` because it is saturated
830830
/// for unsigned values. As a result, it combines to `TRUNCATE_USAT_U`.
831831
TRUNCATE_SSAT_S, // saturate signed input to signed result -

llvm/lib/Analysis/VectorUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ void InterleavedAccessInfo::analyzeInterleaving(
14541454
// that all the pointers in the group don't wrap.
14551455
// So we check only group member 0 (which is always guaranteed to exist),
14561456
// and group member Factor - 1; If the latter doesn't exist we rely on
1457-
// peeling (if it is a non-reversed accsess -- see Case 3).
1457+
// peeling (if it is a non-reversed access -- see Case 3).
14581458
if (InvalidateGroupIfMemberMayWrap(Group, 0, std::string("first")))
14591459
continue;
14601460
if (Group->getMember(Group->getFactor() - 1))

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,7 @@ bool RISCVDAGToDAGISel::SelectAddrRegImm(SDValue Addr, SDValue &Base,
27252725
}
27262726

27272727
/// Similar to SelectAddrRegImm, except that the least significant 5 bits of
2728-
/// Offset shoule be all zeros.
2728+
/// Offset should be all zeros.
27292729
bool RISCVDAGToDAGISel::SelectAddrRegImmLsb00000(SDValue Addr, SDValue &Base,
27302730
SDValue &Offset) {
27312731
if (SelectAddrFrameIndex(Addr, Base, Offset))

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4540,7 +4540,7 @@ static SDValue lowerScalarInsert(SDValue Scalar, SDValue VL, MVT VT,
45404540
// t33: v8i8 = extract_subvector t11, Constant:i64<8>
45414541
// a) t35: v8i8 = vector_shuffle<0,2,4,6,8,10,12,14> t34, t33
45424542
// b) t35: v8i8 = vector_shuffle<1,3,5,7,9,11,13,15> t34, t33
4543-
// Returns {Src Vector, Even Elements} om success
4543+
// Returns {Src Vector, Even Elements} on success
45444544
static bool isDeinterleaveShuffle(MVT VT, MVT ContainerVT, SDValue V1,
45454545
SDValue V2, ArrayRef<int> Mask,
45464546
const RISCVSubtarget &Subtarget) {

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class octuple_to_str<int octuple> {
232232
def VLOpFrag : PatFrag<(ops), (XLenVT (VLOp (XLenVT AVL:$vl)))>;
233233

234234
// Output pattern for X0 used to represent VLMAX in the pseudo instructions.
235-
// We can't use X0 register becuase the AVL operands use GPRNoX0.
235+
// We can't use X0 register because the AVL operands use GPRNoX0.
236236
// This must be kept in sync with RISCV::VLMaxSentinel.
237237
def VLMax : OutPatFrag<(ops), (XLenVT -1)>;
238238

0 commit comments

Comments
 (0)