[all-commits] [llvm/llvm-project] acbe89: [MemProf][NFC] Rename DefaultShadowGranularity to ...

Enna1 via All-commits all-commits at lists.llvm.org
Wed Jan 24 23:13:02 PST 2024


  Branch: refs/heads/users/Enna1/memprof-rename-mem-granularity
  Home:   https://github.com/llvm/llvm-project
  Commit: acbe89106530b2396e449ae8549bf8fc1261d958
      https://github.com/llvm/llvm-project/commit/acbe89106530b2396e449ae8549bf8fc1261d958
  Author: xumingjie.enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-01-25 (Thu, 25 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