Skip to content

Commit

Permalink
GlobalISel: Add accessor to known bits to CombinerHelper
Browse files Browse the repository at this point in the history
I need to pass known bits to a target combine matcher (which for some
reason aren't methods in a subclass of CombinerHelper?)
  • Loading branch information
arsenm committed Mar 30, 2020
1 parent 23da702 commit a87ca9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
Expand Up @@ -62,6 +62,10 @@ class CombinerHelper {
GISelKnownBits *KB = nullptr,
MachineDominatorTree *MDT = nullptr);

GISelKnownBits *getKnownBits() const {
return KB;
}

/// MachineRegisterInfo::replaceRegWith() and inform the observer of the changes
void replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, Register ToReg) const;

Expand Down

0 comments on commit a87ca9e

Please sign in to comment.