[all-commits] [llvm/llvm-project] f32522: [MemProf][NFC] Rename DefaultShadowGranularity to ...
Enna1 via All-commits
all-commits at lists.llvm.org
Thu Jan 25 17:13:55 PST 2024
Branch: refs/heads/users/Enna1/memprof-rename-mem-granularity
Home: https://github.com/llvm/llvm-project
Commit: f325222fe9057aa65329836521065e2e6b1d9fc2
https://github.com/llvm/llvm-project/commit/f325222fe9057aa65329836521065e2e6b1d9fc2
Author: xumingjie.enna1 <xumingjie.enna1 at bytedance.com>
Date: 2024-01-26 (Fri, 26 Jan 2024)
Changed paths:
M llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
Log Message:
-----------
[MemProf][NFC] Rename DefaultShadowGranularity to DefaultMemGranularity in instrumentation code, be consistent with runtime
In runtime code, the size of memory block mapped to a single
shadow location is called MEM_GRANULARITY.
In instrumentation code, the size of memory block mapped to a single shadow
location is called DefaultShadowGranularity.
Actually, the SHADOW_GRANULARITY is 8 (1 << SHADOW_SCALE),
and the MEM_GRANULARITY is 64.
The wording of DefaultShadowGranularity in instrumentation code is a bit misleading,
this patch renames DefaultShadowGranularity to DefaultMemGranularity,
be consistent with runtime.
More information about the All-commits
mailing list