diff options
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 8740f35..8dc4105 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -294,6 +294,10 @@ public: const Value *getUnderlyingObject(unsigned MaxLookup = 6) const { return const_cast<Value*>(this)->getUnderlyingObject(MaxLookup); } + + /// isDereferenceablePointer - Test if this value is always a pointer to + /// allocated and suitably aligned memory for a simple load or store. + bool isDereferenceablePointer() const; /// DoPHITranslation - If this value is a PHI node with CurBB as its parent, /// return the value in the PHI node corresponding to PredBB. If not, return |