14#ifndef LLVM_MC_MACHINELOCATION_H
15#define LLVM_MC_MACHINELOCATION_H
24 bool IsRegister =
false;
25 unsigned Register = 0;
37 : IsRegister(!Indirect), Register(R) {}
40 return IsRegister ==
Other.IsRegister && Register ==
Other.Register;
46 bool isReg()
const {
return IsRegister; }
47 unsigned getReg()
const {
return Register; }
MachineLocation()=default
void setRegister(unsigned R)
bool operator==(const MachineLocation &Other) const
MachineLocation(unsigned R, bool Indirect=false)
Create a direct register location.
void setIsRegister(bool Is)
This is an optimization pass for GlobalISel generic memory operations.
bool operator!=(uint64_t V1, const APInt &V2)