9 #ifndef LLVM_DEBUGINFO_GSYM_RANGE_H 10 #define LLVM_DEBUGINFO_GSYM_RANGE_H 17 #define HEX8(v) llvm::format_hex(v, 4) 18 #define HEX16(v) llvm::format_hex(v, 6) 19 #define HEX32(v) llvm::format_hex(v, 10) 20 #define HEX64(v) llvm::format_hex(v, 18) 38 bool contains(uint64_t Addr)
const {
return Start <= Addr && Addr <
End; }
44 return Start == R.
Start && End == R.
End;
50 return std::make_pair(Start, End) < std::make_pair(R.
Start, R.
End);
88 void clear() { Ranges.clear(); }
89 bool empty()
const {
return Ranges.empty(); }
93 size_t size()
const {
return Ranges.size(); }
95 return Ranges == RHS.
Ranges;
101 Collection::const_iterator
begin()
const {
return Ranges.begin(); }
102 Collection::const_iterator
end()
const {
return Ranges.end(); }
128 #endif // #ifndef LLVM_DEBUGINFO_GSYM_RANGE_H Collection::const_iterator end() const
AddressRange(uint64_t S, uint64_t E)
This class represents lattice values for constants.
void encode(FileWriter &O, uint64_t BaseAddr) const
bool contains(uint64_t Addr) const
bool operator!=(const AddressRange &R) const
void decode(DataExtractor &Data, uint64_t BaseAddr, uint64_t &Offset)
AddressRange objects are encoded and decoded to be relative to a base address.
The AddressRanges class helps normalize address range collections.
bool operator==(const AddressRange &R) const
bool operator<(const AddressRange &R) const
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
A simplified binary data writer class that doesn't require targets, target definitions, architectures, or require any other optional compile time libraries to be enabled via the build process.
A class that represents an address range.
const AddressRange & operator[](size_t i) const
std::vector< AddressRange > Collection
bool intersects(const AddressRange &R) const
bool operator==(const AddressRanges &RHS) const
static void skip(DataExtractor &Data, uint64_t &Offset)
Skip an address range object in the specified data a the specified offset.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
Collection::const_iterator begin() const
raw_ostream & operator<<(raw_ostream &OS, const FunctionInfo &R)