GlobalISel: Add some basic getters to GISelKnownBits

This commit is contained in:
Matt Arsenault 2020-06-10 09:40:51 -04:00
parent fb51d508ee
commit 82c313ca8f
1 changed files with 9 additions and 0 deletions

View File

@ -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);