Remove IR/Writer.h
authorTobias Grosser <tobias@grosser.es>
Thu, 9 Jan 2014 10:42:15 +0000 (10:42 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 9 Jan 2014 10:42:15 +0000 (10:42 +0000)
This should fix the buildbots.

llvm-svn: 198859

polly/lib/Analysis/MayAliasSet.cpp
polly/lib/Analysis/ScopDetection.cpp
polly/lib/Analysis/ScopInfo.cpp
polly/lib/Analysis/TempScopInfo.cpp
polly/lib/CodeGen/Cloog.cpp
polly/lib/Exchange/JSONExporter.cpp
polly/lib/IndependentBlocks.cpp

index c39873e..e7205ee 100644 (file)
@@ -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) const {
   OS << "Must alias {";
 
   for (const_iterator I = mustalias_begin(), E = mustalias_end(); I != E; ++I) {
-    WriteAsOperand(OS, *I, false);
+    (*I)->printAsOperand(OS, false);
     OS << ", ";
   }
 
index ddc6699..50b7f1b 100644 (file)
@@ -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"
index df9f7b0..1b6ddec 100644 (file)
@@ -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::string &str) {
 
 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, TempScop &tempScop, const Region &CurRegion,
   }
 
   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";
index a12be08..c8a8490 100644 (file)
@@ -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"
index 607dcbe..ebf82b6 100644 (file)
@@ -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(Region *R) 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";
index 3d9d152..92c69d2 100644 (file)
@@ -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"
index fde88f3..e7c5200 100644 (file)
@@ -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::isIndependentBlock(const Region *R,
          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;
       }
     }