Skip to content

Commit a87ca9e

Browse files
committed
GlobalISel: Add accessor to known bits to CombinerHelper
I need to pass known bits to a target combine matcher (which for some reason aren't methods in a subclass of CombinerHelper?)
1 parent 23da702 commit a87ca9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class CombinerHelper {
6262
GISelKnownBits *KB = nullptr,
6363
MachineDominatorTree *MDT = nullptr);
6464

65+
GISelKnownBits *getKnownBits() const {
66+
return KB;
67+
}
68+
6569
/// MachineRegisterInfo::replaceRegWith() and inform the observer of the changes
6670
void replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, Register ToReg) const;
6771

0 commit comments

Comments
 (0)