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

Enna1 via All-commits all-commits at lists.llvm.org
Thu Jan 25 18:05:00 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0ade459917e22f9930559453155537ad2b5e0d8
      https://github.com/llvm/llvm-project/commit/e0ade459917e22f9930559453155537ad2b5e0d8
  Author: 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 DefaultMemGranulari… (#79412)

…ty 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