summaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.cpp
blob: 91ec6c28f55262d154632783a66625ecb6163c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//===-- ModuloScheduling.cpp - Software Pipeling Approach - SMS -----------===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
// The is a software pipelining pass based on the Swing Modulo Scheduling
// algorithm (SMS).
//
//===----------------------------------------------------------------------===//

#include "ModuloSchedGraph.h"
#include "llvm/Function.h"
#include "llvm/Pass.h"

namespace {
  
  class ModuloScheduling : public FunctionPass {
    
  public:
    virtual bool runOnFunction(Function &F);
  };

  RegisterOpt<ModuloScheduling> X("modulo-sched",
                                  "Modulo Scheduling/Software Pipelining");
}

/// Create Modulo Scheduling Pass
/// 
Pass *createModuloSchedPass() {
  return new ModuloScheduling(); 
}

/// ModuloScheduling::runOnFunction - main transformation entry point
///
bool ModuloScheduling::runOnFunction(Function &F) {
  bool Changed = false;
  return Changed;
}