aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/Analysis/DemandedBits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Analysis/DemandedBits.h')
-rw-r--r--llvm/include/llvm/Analysis/DemandedBits.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/DemandedBits.h b/llvm/include/llvm/Analysis/DemandedBits.h
index 7a8618a27ce7..5a68fcbebfea 100644
--- a/llvm/include/llvm/Analysis/DemandedBits.h
+++ b/llvm/include/llvm/Analysis/DemandedBits.h
@@ -18,8 +18,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_ANALYSIS_DEMANDED_BITS_H
-#define LLVM_ANALYSIS_DEMANDED_BITS_H
+#ifndef LLVM_ANALYSIS_DEMANDEDBITS_H
+#define LLVM_ANALYSIS_DEMANDEDBITS_H
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/DenseMap.h"
@@ -53,6 +53,9 @@ public:
/// accepted, but will always produce a mask with all bits set.
APInt getDemandedBits(Instruction *I);
+ /// Return the bits demanded from use U.
+ APInt getDemandedBits(Use *U);
+
/// Return true if, during analysis, I could not be reached.
bool isInstructionDead(Instruction *I);
@@ -146,4 +149,4 @@ FunctionPass *createDemandedBitsWrapperPass();
} // end namespace llvm
-#endif // LLVM_ANALYSIS_DEMANDED_BITS_H
+#endif // LLVM_ANALYSIS_DEMANDEDBITS_H