15 #ifndef LLVM_MC_MACHINELOCATION_H
16 #define LLVM_MC_MACHINELOCATION_H
24 bool IsRegister =
false;
25 unsigned Register = 0;
42 return IsRegister == Other.IsRegister && Register == Other.Register &&
43 Offset == Other.Offset;
49 bool isReg()
const {
return IsRegister; }
50 unsigned getReg()
const {
return Register; }
57 void set(
unsigned R) {
64 void set(
unsigned R,
int O) {
77 #endif // LLVM_MC_MACHINELOCATION_H
void set(unsigned R, int O)
Make this location a register-indirect+offset location.
bool operator==(const MachineLocation &Other) const
MachineLocation()=default
MachineLocation(unsigned R)
Create a direct register location.
MachineLocation(unsigned R, int O)
Create a register-indirect location with an offset.
void setIsRegister(bool Is)
void setRegister(unsigned R)
bool operator!=(uint64_t V1, const APInt &V2)
void set(unsigned R)
Make this location a direct register location.