lib/Analysis/BasicAliasAnalysis.cpp
static APInt adjustToPointerSize(const APInt &Offset, unsigned PointerSize) {
  assert(PointerSize <= Offset.getBitWidth() && "Invalid PointerSize!");
  unsigned ShiftBits = Offset.getBitWidth() - PointerSize;
  return (Offset << ShiftBits).ashr(ShiftBits);
}
/// To ensure a pointer offset fits in an integer of size PointerSize
/// (in bits) when that size is smaller than the maximum pointer size. This is
/// an issue, for example, in particular for 32b pointers with negative indices
/// that rely on two's complement wrap-arounds for precise alias information
/// where the maximum pointer size is 64b.
To ensure a pointer offset fits in an integer of size PointerSize
(in bits) when that size is smaller than the maximum pointer size. This is
an issue, for example, in particular for 32b pointers with negative indices
that rely on two's complement wrap-arounds for precise alias information
where the maximum pointer size is 64b.
To ensure a pointer offset fits in an integer of size PointerSize ( in bits ) when that size is smaller than the maximum pointer size . This is an issue for example in particular for 32b pointers with negative indices that rely on two ' s complement wrap - arounds for precise alias information where the maximum pointer size is 64b .
static APInt adjustToPointerSize(const APInt &Offset, unsigned PointerSize) {
  assert(PointerSize <= Offset.getBitWidth() && "Invalid PointerSize!");
  unsigned ShiftBits = Offset.getBitWidth() - PointerSize;
  return (Offset << ShiftBits).ashr(ShiftBits);
}
static APInt adjustToPointerSize ( const APInt & Offset , unsigned PointerSize ) { assert ( PointerSize <= Offset . getBitWidth ( ) && " " ) ; unsigned ShiftBits = Offset . getBitWidth ( ) - PointerSize ; return ( Offset << ShiftBits ) . ashr ( ShiftBits ) ; }
To ensure a pointer offset fits in an integer of size PointerSize
(in bits) when that size is smaller than the maximum pointer size.
To ensure a pointer offset fits in an integer of size PointerSize ( in bits ) when that size is smaller than the maximum pointer size .