aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-30 03:48:36 +0000
committerChris Lattner <sabre@nondot.org>2006-01-30 03:48:36 +0000
commit030dae5bcec6ba82ccfbf633354d1766ee70b084 (patch)
treeaa9df6f0a7ecffcc657b50b81cc1fd870474fbcd
parentbc3814f5e070029d36fa145611577525928fc4ae (diff)
Pass the address of the main MaskedValueIsZero function to allow recursion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25797 91177308-0d34-0410-b5e6-96231b3b80d8
-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