[polly] r231652 - Update PTX generator to latest LLVM changes
Tobias Grosser
tobias at grosser.es
Mon Mar 9 06:35:19 PDT 2015
Author: grosser
Date: Mon Mar 9 08:35:19 2015
New Revision: 231652
URL: http://llvm.org/viewvc/llvm-project?rev=231652&view=rev
Log:
Update PTX generator to latest LLVM changes
Modified:
polly/trunk/lib/CMakeLists.txt
polly/trunk/lib/CodeGen/PTXGenerator.cpp
Modified: polly/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CMakeLists.txt?rev=231652&r1=231651&r2=231652&view=diff
==============================================================================
--- polly/trunk/lib/CMakeLists.txt (original)
+++ polly/trunk/lib/CMakeLists.txt Mon Mar 9 08:35:19 2015
@@ -142,6 +142,7 @@ if (BUILD_SHARED_LIBS)
LLVMTransformUtils
LLVMAnalysis
LLVMipo
+ LLVMMC
)
link_directories(
${LLVM_LIBRARY_DIR}
Modified: polly/trunk/lib/CodeGen/PTXGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PTXGenerator.cpp?rev=231652&r1=231651&r2=231652&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PTXGenerator.cpp (original)
+++ polly/trunk/lib/CodeGen/PTXGenerator.cpp Mon Mar 9 08:35:19 2015
@@ -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 *Ne
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);
More information about the llvm-commits
mailing list