-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DeviceMSAN] Support MemorySanitizer for device offloading #15955
base: sycl
Are you sure you want to change the base?
Conversation
Hi @intel/llvm-reviewers-runtime |
@@ -790,6 +791,13 @@ processInputModule(std::unique_ptr<Module> M) { | |||
if (M->getTargetTriple().find("spir") != std::string::npos) | |||
Modified |= removeDeviceGlobalFromCompilerUsed(*M.get()); | |||
|
|||
// AddressSanitizer specific passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MemorySanitizer? And should the line 797 is MsanKernel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MemorySanitizer? And should the line 797 is MsanKernel?
I'm going to unify "AsanKernelMetadata" and "MsanKernelMetadata", so I used a more general name here.
clang/lib/Driver/OffloadBundler.cpp
Outdated
// the list of defined symbols. | ||
if (SF->isIR() && | ||
(Name == "llvm.used" || Name == "llvm.compiler.used" || | ||
Name == "__AsanDeviceGlobalMetadata")) | ||
Name == "__AsanDeviceGlobalMetadata" || | ||
Name == "__MsanKernelMetadata")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the name is different for ASAN and MSAN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. I will merge them in other patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, I handle them all in SanitizerKernelMetadata Pass, and don't use a same name, because I'm not sure if their content will be different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
UR: oneapi-src/unified-runtime#2325