14#ifndef LLVM_SUPPORT_SMLOC_H
15#define LLVM_SUPPORT_SMLOC_H
24 const char *Ptr =
nullptr;
29 constexpr bool isValid()
const {
return Ptr !=
nullptr; }
56 "Start and End should either both be valid or both be invalid!");
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Represents a location in source code.
static SMLoc getFromPointer(const char *Ptr)
constexpr bool operator!=(const SMLoc &RHS) const
constexpr bool operator==(const SMLoc &RHS) const
constexpr const char * getPointer() const
constexpr bool isValid() const
constexpr SMLoc()=default
Represents a range in source code.
SMRange(SMLoc St, SMLoc En)
This is an optimization pass for GlobalISel generic memory operations.