[all-commits] [llvm/llvm-project] e0f274: [lldb][AArch64] Add class for managing memory tags

David Spickett via All-commits all-commits at lists.llvm.org
Thu Jun 24 07:10:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0f2744a115c41e8d295b93dd74b39535c852390
      https://github.com/llvm/llvm-project/commit/e0f2744a115c41e8d295b93dd74b39535c852390
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    A lldb/include/lldb/Target/MemoryTagManager.h
    M lldb/source/Plugins/Process/Utility/CMakeLists.txt
    A lldb/source/Plugins/Process/Utility/MemoryTagManagerAArch64MTE.cpp
    A lldb/source/Plugins/Process/Utility/MemoryTagManagerAArch64MTE.h
    M lldb/unittests/Process/Utility/CMakeLists.txt
    A lldb/unittests/Process/Utility/MemoryTagManagerAArch64MTETest.cpp

  Log Message:
  -----------
  [lldb][AArch64] Add class for managing memory tags

This adds the MemoryTagManager class and a specialisation
of that class for AArch64 MTE tags. It provides a generic
interface for various tagging operations.
Adding/removing tags, diffing tagged pointers, etc.

Later patches will use this manager to handle memory tags
in generic code in both lldb and lldb-server.
Since it will be used in both, the base class header is in
lldb/Target.
(MemoryRegionInfo is another example of this pattern)

Reviewed By: omjavaid

Differential Revision: https://reviews.llvm.org/D97281




More information about the All-commits mailing list