Go to the documentation of this file.
13 #ifndef LLVM_SUPPORT_MEMORYBUFFERREF_H
14 #define LLVM_SUPPORT_MEMORYBUFFERREF_H
30 : Buffer(Buffer), Identifier(Identifier) {}
42 return LHS.Buffer.begin() ==
RHS.Buffer.begin() &&
43 LHS.Buffer.end() ==
RHS.Buffer.end() &&
44 LHS.Identifier.begin() ==
RHS.Identifier.begin() &&
45 LHS.Identifier.end() ==
RHS.Identifier.end();
56 #endif // LLVM_SUPPORT_MEMORYBUFFERREF_H
const char * getBufferStart() const
This is an optimization pass for GlobalISel generic memory operations.
size_t getBufferSize() const
MemoryBufferRef()=default
friend bool operator==(const MemoryBufferRef &LHS, const MemoryBufferRef &RHS)
Check pointer identity (not value) of identifier and data.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
friend bool operator!=(const MemoryBufferRef &LHS, const MemoryBufferRef &RHS)
const char * getBufferEnd() const
MemoryBufferRef(StringRef Buffer, StringRef Identifier)
StringRef getBuffer() const
StringRef - Represent a constant reference to a string, i.e.
StringRef getBufferIdentifier() const