projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silencing an MSVC warning: '<<' : result of 32-bit shift implicitly converted to...
[oota-llvm.git]
/
lib
/
Analysis
/
NoAliasAnalysis.cpp
diff --git
a/lib/Analysis/NoAliasAnalysis.cpp
b/lib/Analysis/NoAliasAnalysis.cpp
index 0c119d645963d1cf0c2ae6261deb276429a26239..203e1daf7a09e9a5dfbd779387dee7169890ded6 100644
(file)
--- a/
lib/Analysis/NoAliasAnalysis.cpp
+++ b/
lib/Analysis/NoAliasAnalysis.cpp
@@
-15,6
+15,8
@@
#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/IR/DataLayout.h"
+#include "llvm/IR/LLVMContext.h"
+#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
using namespace llvm;
#include "llvm/Pass.h"
using namespace llvm;
@@
-32,11
+34,11
@@
namespace {
void getAnalysisUsage(AnalysisUsage &AU) const override {}
void getAnalysisUsage(AnalysisUsage &AU) const override {}
-
void initializePass(
) override {
+
bool doInitialization(Module &M
) override {
// Note: NoAA does not call InitializeAliasAnalysis because it's
// special and does not support chaining.
// Note: NoAA does not call InitializeAliasAnalysis because it's
// special and does not support chaining.
- D
ataLayoutPass *DLP = getAnalysisIfAvailable<DataLayoutPass>
();
-
DL = DLP ? &DLP->getDataLayout() : 0
;
+ D
L = &M.getDataLayout
();
+
return true
;
}
AliasResult alias(const Location &LocA, const Location &LocB) override {
}
AliasResult alias(const Location &LocA, const Location &LocB) override {
@@
-53,6
+55,14
@@
namespace {
bool pointsToConstantMemory(const Location &Loc, bool OrLocal) override {
return false;
}
bool pointsToConstantMemory(const Location &Loc, bool OrLocal) override {
return false;
}
+ Location getArgLocation(ImmutableCallSite CS, unsigned ArgIdx,
+ ModRefResult &Mask) override {
+ Mask = ModRef;
+ AAMDNodes AATags;
+ CS->getAAMetadata(AATags);
+ return Location(CS.getArgument(ArgIdx), UnknownSize, AATags);
+ }
+
ModRefResult getModRefInfo(ImmutableCallSite CS,
const Location &Loc) override {
return ModRef;
ModRefResult getModRefInfo(ImmutableCallSite CS,
const Location &Loc) override {
return ModRef;