diff options
author | Vitaly Buka <vitalybuka@google.com> | 2020-07-30 21:07:10 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2020-07-30 21:08:24 -0700 |
commit | 89051ebacea72733ff7088cf09a760b1be707acf (patch) | |
tree | d6c3c02920f3314f5686c3f715c37dec1fe16fe1 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 9f0225894254c4706519c85d6fc06c5382903fef (diff) | |
download | llvm-89051ebacea72733ff7088cf09a760b1be707acf.zip llvm-89051ebacea72733ff7088cf09a760b1be707acf.tar.gz llvm-89051ebacea72733ff7088cf09a760b1be707acf.tar.bz2 |
[NFC] GetUnderlyingObject -> getUnderlyingObject
I am going to touch them in the next patch anyway
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 9dfe8fd..54a2796 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -4160,7 +4160,7 @@ static bool isSameUnderlyingObjectInLoop(const PHINode *PN, return true; } -Value *llvm::GetUnderlyingObject(Value *V, const DataLayout &DL, +Value *llvm::getUnderlyingObject(Value *V, const DataLayout &DL, unsigned MaxLookup) { if (!V->getType()->isPointerTy()) return V; @@ -4206,7 +4206,7 @@ Value *llvm::GetUnderlyingObject(Value *V, const DataLayout &DL, return V; } -void llvm::GetUnderlyingObjects(const Value *V, +void llvm::getUnderlyingObjects(const Value *V, SmallVectorImpl<const Value *> &Objects, const DataLayout &DL, LoopInfo *LI, unsigned MaxLookup) { @@ -4215,7 +4215,7 @@ void llvm::GetUnderlyingObjects(const Value *V, Worklist.push_back(V); do { const Value *P = Worklist.pop_back_val(); - P = GetUnderlyingObject(P, DL, MaxLookup); + P = getUnderlyingObject(P, DL, MaxLookup); if (!Visited.insert(P).second) continue; @@ -4276,9 +4276,9 @@ static const Value *getUnderlyingObjectFromInt(const Value *V) { } while (true); } -/// This is a wrapper around GetUnderlyingObjects and adds support for basic +/// This is a wrapper around getUnderlyingObjects and adds support for basic /// ptrtoint+arithmetic+inttoptr sequences. -/// It returns false if unidentified object is found in GetUnderlyingObjects. +/// It returns false if unidentified object is found in getUnderlyingObjects. bool llvm::getUnderlyingObjectsForCodeGen(const Value *V, SmallVectorImpl<Value *> &Objects, const DataLayout &DL) { @@ -4288,7 +4288,7 @@ bool llvm::getUnderlyingObjectsForCodeGen(const Value *V, V = Working.pop_back_val(); SmallVector<const Value *, 4> Objs; - GetUnderlyingObjects(V, Objs, DL); + getUnderlyingObjects(V, Objs, DL); for (const Value *V : Objs) { if (!Visited.insert(V).second) @@ -4301,7 +4301,7 @@ bool llvm::getUnderlyingObjectsForCodeGen(const Value *V, continue; } } - // If GetUnderlyingObjects fails to find an identifiable object, + // If getUnderlyingObjects fails to find an identifiable object, // getUnderlyingObjectsForCodeGen also fails for safety. if (!isIdentifiedObject(V)) { Objects.clear(); |