|
62 | 62 | ///
|
63 | 63 | /// Origins are meaningless for fully initialized values, so MemorySanitizer
|
64 | 64 | /// 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 |
66 | 66 | /// a short (i.e. 1 byte) clean store, and it is also good for performance.
|
67 | 67 | ///
|
68 | 68 | /// Atomic handling.
|
@@ -611,7 +611,7 @@ void insertModuleCtor(Module &M) {
|
611 | 611 |
|
612 | 612 | /// A legacy function pass for msan instrumentation.
|
613 | 613 | ///
|
614 |
| -/// Instruments functions to detect unitialized reads. |
| 614 | +/// Instruments functions to detect uninitialized reads. |
615 | 615 | struct MemorySanitizerLegacyPass : public FunctionPass {
|
616 | 616 | // Pass identification, replacement for typeid.
|
617 | 617 | static char ID;
|
@@ -2533,7 +2533,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
2533 | 2533 | /// The main purpose of this code is to do something reasonable with all
|
2534 | 2534 | /// random intrinsics we might encounter, most importantly - SIMD intrinsics.
|
2535 | 2535 | /// 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 |
2537 | 2537 | /// sure that we know what the intrinsic does.
|
2538 | 2538 | ///
|
2539 | 2539 | /// We special-case intrinsics where this approach fails. See llvm.bswap
|
@@ -2594,7 +2594,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
2594 | 2594 | setOrigin(&I, getOrigin(Op));
|
2595 | 2595 | }
|
2596 | 2596 |
|
2597 |
| - // Instrument vector convert instrinsic. |
| 2597 | + // Instrument vector convert intrinsic. |
2598 | 2598 | //
|
2599 | 2599 | // This function instruments intrinsics like cvtsi2ss:
|
2600 | 2600 | // %Out = int_xxx_cvtyyy(%ConvertOp)
|
@@ -2697,7 +2697,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
2697 | 2697 | return IRB.CreateSExt(S2, T);
|
2698 | 2698 | }
|
2699 | 2699 |
|
2700 |
| - // Instrument vector shift instrinsic. |
| 2700 | + // Instrument vector shift intrinsic. |
2701 | 2701 | //
|
2702 | 2702 | // This function instruments intrinsics like int_x86_avx2_psll_w.
|
2703 | 2703 | // Intrinsic shifts %In by %ShiftSize bits.
|
@@ -2762,7 +2762,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
2762 | 2762 | }
|
2763 | 2763 | }
|
2764 | 2764 |
|
2765 |
| - // Instrument vector pack instrinsic. |
| 2765 | + // Instrument vector pack intrinsic. |
2766 | 2766 | //
|
2767 | 2767 | // This function instruments intrinsics like x86_mmx_packsswb, that
|
2768 | 2768 | // packs elements of 2 input vectors into half as many bits with saturation.
|
@@ -2805,7 +2805,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
2805 | 2805 | setOriginForNaryOp(I);
|
2806 | 2806 | }
|
2807 | 2807 |
|
2808 |
| - // Instrument sum-of-absolute-differencies intrinsic. |
| 2808 | + // Instrument sum-of-absolute-differences intrinsic. |
2809 | 2809 | void handleVectorSadIntrinsic(IntrinsicInst &I) {
|
2810 | 2810 | const unsigned SignificantBitsPerResultElement = 16;
|
2811 | 2811 | bool isX86_MMX = I.getOperand(0)->getType()->isX86_MMXTy();
|
@@ -4302,7 +4302,7 @@ struct VarArgAArch64Helper : public VarArgHelper {
|
4302 | 4302 | // for 128-bit FP/SIMD vn-v7).
|
4303 | 4303 | // We need then to propagate the shadow arguments on both regions
|
4304 | 4304 | // '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'. |
4306 | 4306 | // One caveat is it requires only to propagate the non-named arguments,
|
4307 | 4307 | // however on the call site instrumentation 'all' the arguments are
|
4308 | 4308 | // saved. So to copy the shadow values from the va_arg TLS array
|
@@ -4403,7 +4403,7 @@ struct VarArgPowerPC64Helper : public VarArgHelper {
|
4403 | 4403 | Triple TargetTriple(F.getParent()->getTargetTriple());
|
4404 | 4404 | // Parameter save area starts at 48 bytes from frame pointer for ABIv1,
|
4405 | 4405 | // 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. |
4407 | 4407 | // For simplicity, we ignore it here (it'd only matter for QPX vectors).
|
4408 | 4408 | if (TargetTriple.getArch() == Triple::ppc64)
|
4409 | 4409 | VAArgBase = 48;
|
|
0 commit comments