15 #ifndef LLVM_SUPPORT_SMLOC_H
16 #define LLVM_SUPPORT_SMLOC_H
30 bool isValid()
const {
return Ptr !=
nullptr; }
57 "Start and end should either both be valid or both be invalid!");
65 #endif // LLVM_SUPPORT_SMLOC_H
Represents a range in source code.
const char * getPointer() const
NoneType
A simple null object to allow implicit construction of Optional<T> and similar types without having to ...
bool operator==(const SMLoc &RHS) const
bool operator!=(const SMLoc &RHS) const
SMRange(SMLoc St, SMLoc En)
static SMLoc getFromPointer(const char *Ptr)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Represents a location in source code.