15 #ifndef LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H 16 #define LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H 41 : SV(
std::move(SV)), BufferName(
"<in-memory object>") {
48 : SV(
std::move(SV)), BufferName(Name) {
61 std::string BufferName;
void init(const char *BufStart, const char *BufEnd, bool RequiresNullTerminator)
init - Initialize this MemoryBuffer as a reference to externally allocated memory, memory that we know is already null terminated.
This class represents lattice values for constants.
SmallVectorMemoryBuffer(SmallVectorImpl< char > &&SV, StringRef Name)
Construct a named SmallVectorMemoryBuffer from the given SmallVector r-value and StringRef.
~SmallVectorMemoryBuffer() override
amdgpu Simplify well known AMD library false Value Value const Twine & Name
SmallVectorMemoryBuffer(SmallVectorImpl< char > &&SV)
Construct an SmallVectorMemoryBuffer from the given SmallVector r-value.
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator begin()
StringRef getBufferIdentifier() const override
Return an identifier for this buffer, typically the filename it was read from.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
SmallVector-backed MemoryBuffer instance.
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator end()
BufferKind
The kind of memory backing used to support the MemoryBuffer.
StringRef - Represent a constant reference to a string, i.e.
BufferKind getBufferKind() const override
Return information on the memory mechanism used to support the MemoryBuffer.