forked from OSchip/llvm-project
GlobalISel: Add some basic getters to GISelKnownBits
This commit is contained in:
parent
fb51d508ee
commit
82c313ca8f
|
@ -40,6 +40,15 @@ public:
|
|||
GISelKnownBits(MachineFunction &MF, unsigned MaxDepth = 6);
|
||||
virtual ~GISelKnownBits() = default;
|
||||
void setMF(MachineFunction &MF);
|
||||
|
||||
const MachineFunction &getMachineFunction() const {
|
||||
return MF;
|
||||
}
|
||||
|
||||
const DataLayout &getDataLayout() const {
|
||||
return DL;
|
||||
}
|
||||
|
||||
virtual void computeKnownBitsImpl(Register R, KnownBits &Known,
|
||||
const APInt &DemandedElts,
|
||||
unsigned Depth = 0);
|
||||
|
|
Loading…
Reference in New Issue