Optimizations got their own header files

Optimizations now live in the 'opt' namespace
include/llvm/Opt was renamed include/llvm/Optimizations


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-06-30 04:36:40 +00:00
parent 28bf86ac00
commit 7e02b7e600
7 changed files with 172 additions and 148 deletions

View File

@@ -19,7 +19,7 @@
//
//===----------------------------------------------------------------------===//
#include "llvm/Opt/AllOpts.h"
#include "llvm/Optimizations/InductionVars.h"
#include "llvm/ConstPoolVals.h"
#include "llvm/Analysis/IntervalPartition.h"
#include "llvm/Assembly/Writer.h"
@@ -29,6 +29,10 @@
#include "llvm/CFG.h"
#include <algorithm>
#include "llvm/Analysis/LoopDepth.h"
using namespace opt;
// isLoopInvariant - Return true if the specified value/basic block source is
// an interval invariant computation.
//
@@ -379,13 +383,11 @@ static bool ProcessIntervalPartition(cfg::IntervalPartition &IP) {
ptr_fun(ProcessInterval));
}
#include "llvm/Analysis/LoopDepth.h"
// DoInductionVariableCannonicalize - Simplify induction variables in loops.
// This function loops over an interval partition of a program, reducing it
// until the graph is gone.
//
bool DoInductionVariableCannonicalize(Method *M) {
bool opt::DoInductionVariableCannonicalize(Method *M) {
// TODO: REMOVE
if (0) { // Print basic blocks with their depth
LoopDepthCalculator LDC(M);