[llvm] a87ca9e - GlobalISel: Add accessor to known bits to CombinerHelper
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 11:35:01 PDT 2020
Author: Matt Arsenault
Date: 2020-03-30T11:34:42-07:00
New Revision: a87ca9e4af5a794054a179688a1d73de0e97d81b
URL: https://github.com/llvm/llvm-project/commit/a87ca9e4af5a794054a179688a1d73de0e97d81b
DIFF: https://github.com/llvm/llvm-project/commit/a87ca9e4af5a794054a179688a1d73de0e97d81b.diff
LOG: 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?)
Added:
Modified:
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
index f97c22ac420a..d5464cb75320 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
@@ -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;
More information about the llvm-commits
mailing list