NFC. Introduce Value::getPointerDerferecnceableBytes
authorArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 27 Apr 2016 12:51:01 +0000 (12:51 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 27 Apr 2016 12:51:01 +0000 (12:51 +0000)
commit345f01481ba3e7ea60fc0459e32f29240e00a7be
treebe06f9ab94c95f11ea3bd4de128491cbb527fa2e
parent8ab2803b6323d081e29cc4f37cc90e48d4c09be3
NFC. Introduce Value::getPointerDerferecnceableBytes

Extract a part of isDereferenceableAndAlignedPointer functionality to Value::getPointerDerferecnceableBytes. Currently it's a NFC, but in future I'm going to accumulate all the logic about value dereferenceability in this function similarly to Value::getPointerAlignment function (D16144).

Reviewed By: reames

Differential Revision: http://reviews.llvm.org/D17572

llvm-svn: 267708
llvm/include/llvm/IR/Value.h
llvm/lib/Analysis/Loads.cpp
llvm/lib/IR/Value.cpp