mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
4f839ccf49
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8179 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
838 B
C++
36 lines
838 B
C++
//===-- ModuloScheduling.cpp - Software Pipeling Approach - SMS --*- C++ -*--=//
|
|
//
|
|
// The is a software pipelining pass based on the Swing Modulo Scheduling
|
|
// alogrithm (SMS).
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "ModuloSchedGraph.h"
|
|
|
|
#include "llvm/Pass.h"
|
|
#include "llvm/Function.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;
|
|
}
|
|
|