llvm-6502/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp

36 lines
881 B
C++
Raw Normal View History

//===-- ModuloScheduling.cpp - Software Pipeling Approach - SMS -----------===//
//
// 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;
}