summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PTXGenerator.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-03-09 13:35:19 +0000
committerTobias Grosser <tobias@grosser.es>2015-03-09 13:35:19 +0000
commited61e1fcd180b7cc5b24687148983d2d56ca338f (patch)
tree1df8d5a2ba126a79c1cb8637b6c44286a639f90b /polly/lib/CodeGen/PTXGenerator.cpp
parent05b098d250bc23c27b4a2f8289e3f3e2c8e26b8f (diff)
downloadbcm5719-llvm-ed61e1fcd180b7cc5b24687148983d2d56ca338f.tar.gz
bcm5719-llvm-ed61e1fcd180b7cc5b24687148983d2d56ca338f.zip
Update PTX generator to latest LLVM changes
llvm-svn: 231652
Diffstat (limited to 'polly/lib/CodeGen/PTXGenerator.cpp')
-rw-r--r--polly/lib/CodeGen/PTXGenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/PTXGenerator.cpp b/polly/lib/CodeGen/PTXGenerator.cpp
index 987aee004b3..e2432b5515f 100644
--- a/polly/lib/CodeGen/PTXGenerator.cpp
+++ b/polly/lib/CodeGen/PTXGenerator.cpp
@@ -20,6 +20,7 @@
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
+#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/TargetRegistry.h"
@@ -559,11 +560,10 @@ static bool createASMAsString(Module *New, const StringRef &Triple,
TargetMachine &Target = *target.get();
// Build up all of the passes that we want to do to the module.
- PassManager PM;
+ llvm::legacy::PassManager PM;
PM.add(new TargetLibraryInfoWrapperPass(TheTriple));
- PM.add(new DataLayoutPass(*Target.getDataLayout()));
- Target.addAnalysisPasses(PM);
+ PM.add(createTargetTransformInfoWrapperPass(Target.getTargetIRAnalysis()));
{
raw_string_ostream NameROS(ASM);
OpenPOWER on IntegriCloud