9#ifndef LLDB_TARGET_MEMORYTAGMANAGER_H
10#define LLDB_TARGET_MEMORYTAGMANAGER_H
15#include "llvm/Support/Error.h"
112 virtual llvm::Expected<std::vector<lldb::addr_t>>
114 size_t granules = 0)
const = 0;
129 size_t len)
const = 0;
135 virtual llvm::Expected<std::vector<uint8_t>>
136 PackTags(
const std::vector<lldb::addr_t> &tags)
const = 0;
158 virtual llvm::Expected<std::vector<lldb::addr_t>>
virtual std::vector< lldb::addr_t > UnpackTagsFromCoreFileSegment(CoreReaderFn reader, lldb::addr_t tag_segment_virtual_address, lldb::addr_t tag_segment_data_address, lldb::addr_t addr, size_t len) const =0
std::function< size_t(lldb::offset_t, size_t, void *)> CoreReaderFn
virtual ~MemoryTagManager()=default
virtual TagRange ExpandToGranule(TagRange range) const =0
virtual llvm::Expected< TagRange > MakeTaggedRange(lldb::addr_t addr, lldb::addr_t end_addr, const lldb_private::MemoryRegionInfos &memory_regions) const =0
virtual llvm::Expected< std::vector< lldb::addr_t > > UnpackTagsData(const std::vector< uint8_t > &tags, size_t granules=0) const =0
Range< lldb::addr_t, lldb::addr_t > TagRange
virtual ptrdiff_t AddressDiff(lldb::addr_t addr1, lldb::addr_t addr2) const =0
virtual size_t GetTagSizeInBytes() const =0
virtual lldb::addr_t GetGranuleSize() const =0
virtual llvm::Expected< std::vector< lldb::addr_t > > RepeatTagsForRange(const std::vector< lldb::addr_t > &tags, TagRange range) const =0
virtual llvm::Expected< std::vector< uint8_t > > PackTags(const std::vector< lldb::addr_t > &tags) const =0
virtual int32_t GetAllocationTagType() const =0
virtual lldb::addr_t RemoveTagBits(lldb::addr_t addr) const =0
virtual llvm::Expected< std::vector< TagRange > > MakeTaggedRanges(lldb::addr_t addr, lldb::addr_t end_addr, const lldb_private::MemoryRegionInfos &memory_regions) const =0
virtual lldb::addr_t GetLogicalTag(lldb::addr_t addr) const =0
A class that represents a running process on the host machine.