diff options
author | Jay Foad <jay.foad@gmail.com> | 2014-05-14 08:00:07 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2014-05-14 08:00:07 +0000 |
commit | 5fa4d1cd1abda014d687ce36b8ff90e0626429fd (patch) | |
tree | 29f0d2e8430f4cc3cf6629319fb65538b9db8cc2 /include | |
parent | b8236e532a9bc5e0c6684a0b51f808d4754272bd (diff) | |
download | llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.gz llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.bz2 llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.xz |
Update the comments for ComputeMaskedBits, which lost its Mask parameter
in r154011.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/ValueTracking.h | 7 | ||||
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h index 55f5bd1475..b1afc795a0 100644 --- a/include/llvm/Analysis/ValueTracking.h +++ b/include/llvm/Analysis/ValueTracking.h @@ -27,14 +27,13 @@ namespace llvm { class MDNode; class TargetLibraryInfo; - /// ComputeMaskedBits - Determine which of the bits specified in Mask are + /// ComputeMaskedBits - Determine which bits of V are /// known to be either zero or one and return them in the KnownZero/KnownOne - /// bit sets. This code only analyzes bits in Mask, in order to short-circuit - /// processing. + /// bit sets. /// /// This function is defined on values with integer type, values with pointer /// type (but only if TD is non-null), and vectors of integers. In the case - /// where V is a vector, the mask, known zero, and known one values are the + /// where V is a vector, the known zero and known one values are the /// same width as the vector element, and the bit is set only if it is true /// for all of the elements in the vector. void ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 2dce0b3371..691092ad8b 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -1079,10 +1079,9 @@ public: bool MaskedValueIsZero(SDValue Op, const APInt &Mask, unsigned Depth = 0) const; - /// ComputeMaskedBits - Determine which of the bits specified in Mask are + /// ComputeMaskedBits - Determine which bits of Op are /// known to be either zero or one and return them in the KnownZero/KnownOne - /// bitsets. This code only analyzes bits in Mask, in order to short-circuit - /// processing. Targets can implement the computeMaskedBitsForTargetNode + /// bitsets. Targets can implement the computeMaskedBitsForTargetNode /// method in the TargetLowering class to allow target nodes to be understood. void ComputeMaskedBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth = 0) const; |