14 #ifndef LLVM_EXECUTIONENGINE_SECTIONMEMORYMANAGER_H 15 #define LLVM_EXECUTIONENGINE_SECTIONMEMORYMANAGER_H 23 #include <system_error> 76 unsigned Flags, std::error_code &EC) = 0;
128 unsigned SectionID,
StringRef SectionName,
129 bool isReadOnly)
override;
154 struct FreeMemBlock {
161 unsigned PendingPrefixIndex;
181 std::error_code applyMemoryGroupPermissions(MemoryGroup &MemGroup,
182 unsigned Permissions);
184 void anchor()
override;
187 MemoryGroup RWDataMem;
188 MemoryGroup RODataMem;
194 #endif // LLVM_EXECUTION_ENGINE_SECTION_MEMORY_MANAGER_H
This class represents lattice values for constants.
SectionMemoryManager(MemoryMapper *MM=nullptr)
Creates a SectionMemoryManager instance with MM as the associated memory mapper.
Implementations of this interface are used by SectionMemoryManager to request pages from the operatin...
~SectionMemoryManager() override
AllocationPurpose
This enum describes the various reasons to allocate pages from allocateMappedMemory.
virtual void invalidateInstructionCache()
Invalidate instruction cache for code sections.
uint8_t * allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName) override
Allocates a memory block of (at least) the given size suitable for executable code.
uint8_t * allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName, bool isReadOnly) override
Allocates a memory block of (at least) the given size suitable for executable code.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
This class encapsulates the notion of a memory block which has an address and a size.
void operator=(const SectionMemoryManager &)=delete
bool finalizeMemory(std::string *ErrMsg=nullptr) override
Update section-specific memory permissions and other attributes.
This is a simple memory manager which implements the methods called by the RuntimeDyld class to alloc...
StringRef - Represent a constant reference to a string, i.e.