[llvm] [AddressSanitizer] Remove memory effects from functions (PR #130495)

Guy David via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 12 02:05:46 PDT 2025


================
@@ -58,6 +58,13 @@ void getAddressSanitizerParams(const Triple &TargetTriple, int LongSize,
                                bool IsKasan, uint64_t *ShadowBase,
                                int *MappingScale, bool *OrShadowOffset);
 
+/// Remove memory attributes that are incompatible with the instrumentation
+/// added by AddressSanitizer and HWSanitizer. See more details in the
+/// implementation.
+/// \p RemoveWriteOnly - whether to remove writeonly attribute from function
+/// arguments.
+void removeASanIncompatibleFnAttributes(Function &F, bool RemoveWriteOnly);
----------------
guy-david wrote:

Renamed to `ReadsArgMem`.

https://github.com/llvm/llvm-project/pull/130495


More information about the llvm-commits mailing list