[PATCH] D131737: change name of origin5 function to origin_with_descr
Kevin Athey via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 16:06:10 PDT 2022
kda created this revision.
Herald added subscribers: Enna1, hiraditya.
Herald added a project: All.
kda requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131737
Files:
compiler-rt/lib/msan/msan.cpp
compiler-rt/lib/msan/msan_interface_internal.h
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Index: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -579,7 +579,7 @@
/// Run-time helper that generates a new origin value for a stack
/// allocation.
- FunctionCallee MsanSetAllocaOrigin5Fn;
+ FunctionCallee MsanSetAllocaOriginWithDescriptionFn;
/// Run-time helper that poisons stack on function entry.
FunctionCallee MsanPoisonStackFn;
@@ -825,9 +825,9 @@
IRB.getInt32Ty());
}
- MsanSetAllocaOrigin5Fn = M.getOrInsertFunction(
- "__msan_set_alloca_origin5", IRB.getVoidTy(), IRB.getInt8PtrTy(), IntptrTy,
- IRB.getInt8PtrTy(), IRB.getInt8PtrTy());
+ MsanSetAllocaOriginWithDescriptionFn = M.getOrInsertFunction(
+ "__msan_set_alloca_origin_with_descr", IRB.getVoidTy(),
+ IRB.getInt8PtrTy(), IntptrTy, IRB.getInt8PtrTy(), IRB.getInt8PtrTy());
MsanPoisonStackFn =
M.getOrInsertFunction("__msan_poison_stack", IRB.getVoidTy(),
IRB.getInt8PtrTy(), IntptrTy);
@@ -3905,7 +3905,7 @@
if (PoisonStack && MS.TrackOrigins) {
Value *Idptr = getLocalVarIdptr(I);
Value *Descr = getLocalVarDescription(I);
- IRB.CreateCall(MS.MsanSetAllocaOrigin5Fn,
+ IRB.CreateCall(MS.MsanSetAllocaOriginWithDescriptionFn,
{IRB.CreatePointerCast(&I, IRB.getInt8PtrTy()), Len,
IRB.CreatePointerCast(Idptr, IRB.getInt8PtrTy()),
IRB.CreatePointerCast(Descr, IRB.getInt8PtrTy())});
Index: compiler-rt/lib/msan/msan_interface_internal.h
===================================================================
--- compiler-rt/lib/msan/msan_interface_internal.h
+++ compiler-rt/lib/msan/msan_interface_internal.h
@@ -109,8 +109,8 @@
SANITIZER_INTERFACE_ATTRIBUTE
void __msan_set_alloca_origin4(void *a, uptr size, char *descr, uptr pc);
SANITIZER_INTERFACE_ATTRIBUTE
-void __msan_set_alloca_origin5(void *a, uptr size, u32 *id_ptr, char *descr,
- uptr pc);
+void __msan_set_alloca_origin_with_descr(void *a, uptr size, u32 *id_ptr,
+ char *descr);
SANITIZER_INTERFACE_ATTRIBUTE
u32 __msan_chain_origin(u32 id);
SANITIZER_INTERFACE_ATTRIBUTE
Index: compiler-rt/lib/msan/msan.cpp
===================================================================
--- compiler-rt/lib/msan/msan.cpp
+++ compiler-rt/lib/msan/msan.cpp
@@ -621,8 +621,8 @@
GET_CALLER_PC());
}
-void __msan_set_alloca_origin5(void *a, uptr size, u32 *id_ptr, char *descr,
- uptr pc) {
+void __msan_set_alloca_origin_with_descr(void *a, uptr size, u32 *id_ptr,
+ char *descr) {
SetAllocaOrigin(a, size, id_ptr, descr, GET_CALLER_PC());
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131737.452024.patch
Type: text/x-patch
Size: 2924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220811/9bd34662/attachment.bin>
More information about the llvm-commits
mailing list