~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to include/llvm/Analysis/ValueTracking.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-04-01 23:45:03 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120401234503-c04qxrk7s9my53uy
Tags: 3.1~svn153852-1
New snapshot release

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
  class APInt;
25
25
  class TargetData;
26
26
  class StringRef;
27
 
  
 
27
  class MDNode;
 
28
 
28
29
  /// ComputeMaskedBits - Determine which of the bits specified in Mask are
29
30
  /// known to be either zero or one and return them in the KnownZero/KnownOne
30
31
  /// bit sets.  This code only analyzes bits in Mask, in order to short-circuit
38
39
  void ComputeMaskedBits(Value *V, const APInt &Mask, APInt &KnownZero,
39
40
                         APInt &KnownOne, const TargetData *TD = 0,
40
41
                         unsigned Depth = 0);
41
 
  
 
42
  void computeMaskedBitsLoad(const MDNode &Ranges, const APInt &Mask,
 
43
                             APInt &KnownZero);
 
44
 
42
45
  /// ComputeSignBit - Determine whether the sign bit is known to be zero or
43
46
  /// one.  Convenience wrapper around ComputeMaskedBits.
44
47
  void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,