mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Header files will be on the way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| //===-- 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;
 | |
| }
 |