This should fix the buildbots.
llvm-svn: 198859
#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"
OS << "Must alias {";
for (const_iterator I = mustalias_begin(), E = mustalias_end(); I != E; ++I) {
- WriteAsOperand(OS, *I, false);
+ (*I)->printAsOperand(OS, false);
OS << ", ";
}
#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"
#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"
void MemoryAccess::setBaseName() {
raw_string_ostream OS(BaseName);
- WriteAsOperand(OS, getBaseAddr(), false);
+ getBaseAddr()->printAsOperand(OS, false);
BaseName = OS.str();
makeIslCompatible(BaseName);
}
raw_string_ostream OS(BaseName);
- WriteAsOperand(OS, &bb, false);
+ bb.printAsOperand(OS, false);
BaseName = OS.str();
makeIslCompatible(BaseName);
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";
#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"
#include "polly/ScopInfo.h"
#define DEBUG_TYPE "polly-cloog"
-#include "llvm/IR/Writer.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
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";
#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"
#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"
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;
}
}