[PATCH] [msan] Allow using a MemorySanitizer instance for functions across different modules

Keno Fischer kfischer at college.harvard.edu
Thu Apr 9 20:36:23 PDT 2015


Hi eugenis,

We use MemorySanitizer in a JIT setting where we run all of our functions through a function pass manager to apply some of our own lowering passes before passing everything off to MCJIT. I tried adding MemorySanitizer to this setup, but the current implementation assumes that all functions MemorySanitizer will run on belong to the same module. Address this by reinitializing MemorySanitizer if the passed function is in a different module and looking or creating the correct globals in that module.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8949

Files:
  lib/Transforms/Instrumentation/MemorySanitizer.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8949.23556.patch
Type: text/x-patch
Size: 4437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150410/b6e2aab7/attachment.bin>


More information about the llvm-commits mailing list