15 #ifndef LLVM_MC_MACHINELOCATION_H 16 #define LLVM_MC_MACHINELOCATION_H 25 bool IsRegister =
false;
26 unsigned Register = 0;
38 : IsRegister(!Indirect), Register(R) {}
41 return IsRegister == Other.IsRegister && Register == Other.Register;
47 bool isReg()
const {
return IsRegister; }
48 unsigned getReg()
const {
return Register; }
59 #endif // LLVM_MC_MACHINELOCATION_H This class represents lattice values for constants.
MachineLocation()=default
bool operator==(const MachineLocation &Other) const
void setIsRegister(bool Is)
void setRegister(unsigned R)
bool operator!=(uint64_t V1, const APInt &V2)
MachineLocation(unsigned R, bool Indirect=false)
Create a direct register location.