[PATCH] [MSan][LLVM][MIPS] Shadow and Origin offsets for MIPS

Kostya Serebryany kcc at google.com
Wed Nov 19 13:03:34 PST 2014


================
Comment at: lib/Transforms/Instrumentation/MemorySanitizer.cpp:128
@@ -125,1 +127,3 @@
 static const uint64_t kOriginOffset32 = 1ULL << 30;
+static const uint64_t kMIPS32_OriginOffset32 = 0x20000000UL;
+static const uint64_t kMIPS64_OriginOffset64 = 0x2000000000ULL;
----------------
I'd prefer not to have any more 32-bit here for now, 
at least until we have 32-bit msan on x86

================
Comment at: lib/Transforms/Instrumentation/MemorySanitizer.cpp:453
@@ -437,1 +452,3 @@
+        OriginOffset = kOriginOffset64;
+      }
       break;
----------------
add an else statement with 
  report_fatal_error("unsupported triple");

http://reviews.llvm.org/D6146






More information about the llvm-commits mailing list