Skip to content

Commit abd1927

Browse files
committed
Fix some comment typos. NFC.
1 parent 0d90d24 commit abd1927

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
///
6363
/// Origins are meaningless for fully initialized values, so MemorySanitizer
6464
/// avoids storing origin to memory when a fully initialized value is stored.
65-
/// This way it avoids needless overwritting origin of the 4-byte region on
65+
/// This way it avoids needless overwriting origin of the 4-byte region on
6666
/// a short (i.e. 1 byte) clean store, and it is also good for performance.
6767
///
6868
/// Atomic handling.
@@ -611,7 +611,7 @@ void insertModuleCtor(Module &M) {
611611

612612
/// A legacy function pass for msan instrumentation.
613613
///
614-
/// Instruments functions to detect unitialized reads.
614+
/// Instruments functions to detect uninitialized reads.
615615
struct MemorySanitizerLegacyPass : public FunctionPass {
616616
// Pass identification, replacement for typeid.
617617
static char ID;
@@ -2533,7 +2533,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
25332533
/// The main purpose of this code is to do something reasonable with all
25342534
/// random intrinsics we might encounter, most importantly - SIMD intrinsics.
25352535
/// We recognize several classes of intrinsics by their argument types and
2536-
/// ModRefBehaviour and apply special intrumentation when we are reasonably
2536+
/// ModRefBehaviour and apply special instrumentation when we are reasonably
25372537
/// sure that we know what the intrinsic does.
25382538
///
25392539
/// We special-case intrinsics where this approach fails. See llvm.bswap
@@ -2594,7 +2594,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
25942594
setOrigin(&I, getOrigin(Op));
25952595
}
25962596

2597-
// Instrument vector convert instrinsic.
2597+
// Instrument vector convert intrinsic.
25982598
//
25992599
// This function instruments intrinsics like cvtsi2ss:
26002600
// %Out = int_xxx_cvtyyy(%ConvertOp)
@@ -2697,7 +2697,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
26972697
return IRB.CreateSExt(S2, T);
26982698
}
26992699

2700-
// Instrument vector shift instrinsic.
2700+
// Instrument vector shift intrinsic.
27012701
//
27022702
// This function instruments intrinsics like int_x86_avx2_psll_w.
27032703
// Intrinsic shifts %In by %ShiftSize bits.
@@ -2762,7 +2762,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
27622762
}
27632763
}
27642764

2765-
// Instrument vector pack instrinsic.
2765+
// Instrument vector pack intrinsic.
27662766
//
27672767
// This function instruments intrinsics like x86_mmx_packsswb, that
27682768
// packs elements of 2 input vectors into half as many bits with saturation.
@@ -2805,7 +2805,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
28052805
setOriginForNaryOp(I);
28062806
}
28072807

2808-
// Instrument sum-of-absolute-differencies intrinsic.
2808+
// Instrument sum-of-absolute-differences intrinsic.
28092809
void handleVectorSadIntrinsic(IntrinsicInst &I) {
28102810
const unsigned SignificantBitsPerResultElement = 16;
28112811
bool isX86_MMX = I.getOperand(0)->getType()->isX86_MMXTy();
@@ -4302,7 +4302,7 @@ struct VarArgAArch64Helper : public VarArgHelper {
43024302
// for 128-bit FP/SIMD vn-v7).
43034303
// We need then to propagate the shadow arguments on both regions
43044304
// 'va::__gr_top + va::__gr_offs' and 'va::__vr_top + va::__vr_offs'.
4305-
// The remaning arguments are saved on shadow for 'va::stack'.
4305+
// The remaining arguments are saved on shadow for 'va::stack'.
43064306
// One caveat is it requires only to propagate the non-named arguments,
43074307
// however on the call site instrumentation 'all' the arguments are
43084308
// saved. So to copy the shadow values from the va_arg TLS array
@@ -4403,7 +4403,7 @@ struct VarArgPowerPC64Helper : public VarArgHelper {
44034403
Triple TargetTriple(F.getParent()->getTargetTriple());
44044404
// Parameter save area starts at 48 bytes from frame pointer for ABIv1,
44054405
// and 32 bytes for ABIv2. This is usually determined by target
4406-
// endianness, but in theory could be overriden by function attribute.
4406+
// endianness, but in theory could be overridden by function attribute.
44074407
// For simplicity, we ignore it here (it'd only matter for QPX vectors).
44084408
if (TargetTriple.getArch() == Triple::ppc64)
44094409
VAArgBase = 48;

0 commit comments

Comments
 (0)