[polly] r198859 - Remove IR/Writer.h
Tobias Grosser
tobias at grosser.es
Thu Jan 9 02:42:16 PST 2014
Author: grosser
Date: Thu Jan 9 04:42:15 2014
New Revision: 198859
URL: http://llvm.org/viewvc/llvm-project?rev=198859&view=rev
Log:
Remove IR/Writer.h
This should fix the buildbots.
Modified:
polly/trunk/lib/Analysis/MayAliasSet.cpp
polly/trunk/lib/Analysis/ScopDetection.cpp
polly/trunk/lib/Analysis/ScopInfo.cpp
polly/trunk/lib/Analysis/TempScopInfo.cpp
polly/trunk/lib/CodeGen/Cloog.cpp
polly/trunk/lib/Exchange/JSONExporter.cpp
polly/trunk/lib/IndependentBlocks.cpp
Modified: polly/trunk/lib/Analysis/MayAliasSet.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/MayAliasSet.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/MayAliasSet.cpp (original)
+++ polly/trunk/lib/Analysis/MayAliasSet.cpp Thu Jan 9 04:42:15 2014
@@ -17,7 +17,6 @@
#include "llvm/Analysis/AliasSetTracker.h"
#include "llvm/Analysis/RegionInfo.h"
#include "llvm/Analysis/RegionIterator.h"
-#include "llvm/IR/Writer.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
@@ -29,7 +28,7 @@ void MayAliasSet::print(raw_ostream &OS)
OS << "Must alias {";
for (const_iterator I = mustalias_begin(), E = mustalias_end(); I != E; ++I) {
- WriteAsOperand(OS, *I, false);
+ (*I)->printAsOperand(OS, false);
OS << ", ";
}
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Thu Jan 9 04:42:15 2014
@@ -56,7 +56,6 @@
#include "llvm/Analysis/RegionIterator.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
-#include "llvm/IR/Writer.h"
#include "llvm/DebugInfo.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/DiagnosticInfo.h"
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu Jan 9 04:42:15 2014
@@ -30,7 +30,6 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/RegionIterator.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
-#include "llvm/IR/Writer.h"
#include "llvm/Support/CommandLine.h"
#define DEBUG_TYPE "polly-scops"
@@ -287,7 +286,7 @@ static void makeIslCompatible(std::strin
void MemoryAccess::setBaseName() {
raw_string_ostream OS(BaseName);
- WriteAsOperand(OS, getBaseAddr(), false);
+ getBaseAddr()->printAsOperand(OS, false);
BaseName = OS.str();
makeIslCompatible(BaseName);
@@ -656,7 +655,7 @@ ScopStmt::ScopStmt(Scop &parent, TempSco
}
raw_string_ostream OS(BaseName);
- WriteAsOperand(OS, &bb, false);
+ bb.printAsOperand(OS, false);
BaseName = OS.str();
makeIslCompatible(BaseName);
@@ -875,11 +874,11 @@ std::string Scop::getNameStr() const {
raw_string_ostream ExitStr(ExitName);
raw_string_ostream EntryStr(EntryName);
- WriteAsOperand(EntryStr, R.getEntry(), false);
+ R.getEntry()->printAsOperand(EntryStr, false);
EntryStr.str();
if (R.getExit()) {
- WriteAsOperand(ExitStr, R.getExit(), false);
+ R.getExit()->printAsOperand(ExitStr, false);
ExitStr.str();
} else
ExitName = "FunctionExit";
Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Thu Jan 9 04:42:15 2014
@@ -25,7 +25,6 @@
#include "llvm/Analysis/RegionIterator.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
-#include "llvm/IR/Writer.h"
#include "llvm/IR/DataLayout.h"
#define DEBUG_TYPE "polly-analyze-ir"
Modified: polly/trunk/lib/CodeGen/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/Cloog.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/Cloog.cpp (original)
+++ polly/trunk/lib/CodeGen/Cloog.cpp Thu Jan 9 04:42:15 2014
@@ -28,7 +28,6 @@
#include "polly/ScopInfo.h"
#define DEBUG_TYPE "polly-cloog"
-#include "llvm/IR/Writer.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
@@ -258,11 +257,11 @@ std::string CloogExporter::getFileName(R
raw_string_ostream ExitStr(ExitName);
raw_string_ostream EntryStr(EntryName);
- WriteAsOperand(EntryStr, R->getEntry(), false);
+ R->getEntry()->printAsOperand(EntryStr, false);
EntryStr.str();
if (R->getExit()) {
- WriteAsOperand(ExitStr, R->getExit(), false);
+ R->getExit()->printAsOperand(ExitStr, false);
ExitStr.str();
} else
ExitName = "FunctionExit";
Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Thu Jan 9 04:42:15 2014
@@ -18,7 +18,6 @@
#include "polly/ScopPass.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/Statistic.h"
-#include "llvm/IR/Writer.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/system_error.h"
Modified: polly/trunk/lib/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndependentBlocks.cpp?rev=198859&r1=198858&r2=198859&view=diff
==============================================================================
--- polly/trunk/lib/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/IndependentBlocks.cpp Thu Jan 9 04:42:15 2014
@@ -20,7 +20,6 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/RegionInfo.h"
#include "llvm/Analysis/ValueTracking.h"
-#include "llvm/IR/Writer.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Support/CommandLine.h"
#define DEBUG_TYPE "polly-independent"
@@ -481,13 +480,13 @@ bool IndependentBlocks::isIndependentBlo
OI != OE; ++OI) {
if (isEscapeOperand(*OI, BB, R)) {
DEBUG(dbgs() << "Instruction in function '";
- WriteAsOperand(dbgs(), BB->getParent(), false);
+ BB->getParent()->printAsOperand(dbgs(), false);
dbgs() << "' not independent:\n");
DEBUG(dbgs() << "Uses invalid operator\n");
DEBUG(Inst->print(dbgs()));
DEBUG(dbgs() << "\n");
DEBUG(dbgs() << "Invalid operator is: ";
- WriteAsOperand(dbgs(), *OI, false); dbgs() << "\n");
+ (*OI)->printAsOperand(dbgs(), false); dbgs() << "\n");
return false;
}
}
More information about the llvm-commits
mailing list