aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetLowering.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 56fe7cbab5..d538b4d6c0 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -414,9 +414,11 @@ public:
/// isMaskedValueZeroForTargetNode - Return true if 'Op & Mask' is known to
/// be zero. Op is expected to be a target specific node. Used by DAG
- /// combiner.
- virtual bool isMaskedValueZeroForTargetNode(const SDOperand &Op,
- uint64_t Mask) const;
+ /// combiner. MVIZ is a function pointer to the main MaskedValueIsZero
+ /// function.
+ typedef bool (*MVIZFnPtr)(const SDOperand&, uint64_t, const TargetLowering &);
+ virtual bool isMaskedValueZeroForTargetNode(const SDOperand &Op,uint64_t Mask,
+ MVIZFnPtr MVIZ) const;
//===--------------------------------------------------------------------===//
// Inline Asm Support hooks