diff options
| author | Dan Gohman <gohman@apple.com> | 2008-02-13 00:35:47 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-02-13 00:35:47 +0000 |
| commit | f990faf23b750631a7fce0e03a54268181989711 (patch) | |
| tree | 85dc6d977c8dccfa639f7ae0a17492d821ddc55c /llvm/include | |
| parent | 7022efbe7b4c319ad4df1702172da0a931e72aae (diff) | |
| download | bcm5719-llvm-f990faf23b750631a7fce0e03a54268181989711.tar.gz bcm5719-llvm-f990faf23b750631a7fce0e03a54268181989711.zip | |
Convert SelectionDAG::ComputeMaskedBits to use APInt instead of uint64_t.
Add an overload that supports the uint64_t interface for use by clients
that haven't been updated yet.
llvm-svn: 47039
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 6 | ||||
| -rw-r--r-- | llvm/include/llvm/Target/TargetLowering.h | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 665419bdd1a..560e0fca132 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -556,6 +556,12 @@ public: /// bitsets. This code only analyzes bits in Mask, in order to short-circuit /// processing. Targets can implement the computeMaskedBitsForTargetNode /// method in the TargetLowering class to allow target nodes to be understood. + void ComputeMaskedBits(SDOperand Op, APInt Mask, APInt &KnownZero, + APInt &KnownOne, unsigned Depth = 0) const; + + /// ComputeMaskedBits - This is a wrapper around the APInt-using + /// form of ComputeMaskedBits for use by clients that haven't been converted + /// to APInt yet. void ComputeMaskedBits(SDOperand Op, uint64_t Mask, uint64_t &KnownZero, uint64_t &KnownOne, unsigned Depth = 0) const; diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h index ee3b27246e9..d81dacf41f7 100644 --- a/llvm/include/llvm/Target/TargetLowering.h +++ b/llvm/include/llvm/Target/TargetLowering.h @@ -627,9 +627,9 @@ public: /// Mask are known to be either zero or one and return them in the /// KnownZero/KnownOne bitsets. virtual void computeMaskedBitsForTargetNode(const SDOperand Op, - uint64_t Mask, - uint64_t &KnownZero, - uint64_t &KnownOne, + APInt Mask, + APInt &KnownZero, + APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth = 0) const; |

