|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.driver.Driver
coins.lparallel.LoopPara
A driver implementation using COINS Compiler Driver API.
| Field Summary | |
protected static java.lang.String |
DEFAULT_OPENMP_NAME
|
(package private) java.io.File |
fHir2CFile
|
(package private) java.lang.String |
fOpenMPTmpFileName
|
boolean |
fstophir2c
|
protected java.util.Set |
fSubprogramsToBeParallelized
|
TemporaryFileManager |
fTemporaryFileManager
|
| Constructor Summary | |
LoopPara()
|
|
| Method Summary | |
void |
assemble(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.File out,
IoRoot io)
Assembler. Invokes an assembler command with options specified in a command line. Input lines can be read from an InputStream. |
void |
cleanup(CompileSpecification spec)
|
void |
compile(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.OutputStream out,
IoRoot io)
Compiler. This sample compiler has eight passes: C source to HIR-C(*), HIR-C to HIR-Base(*), Flow analysis on HIR(*), Optimization and Parallelization on HIR, HIR to LIR(*), Assembly code generation(*). |
java.util.Set |
getSubprogramsToBeParallelized(HirRoot hirRoot,
SymRoot symRoot,
IoRoot ioRoot)
|
protected void |
go(java.lang.String[] args)
Makes a compile specification from a command line. |
void |
hir2OpenMP(HirRoot pHirRoot,
SymRoot pSymRoot,
IoRoot pIoRoot)
|
void |
link(java.io.File out,
IoRoot io)
Linker. Invokes a linker command with options specified in a command line. Output executable file should be written to a File. |
void |
LoopParallel(HirRoot hirRoot,
SymRoot symRoot,
IoRoot ioRoot)
LoopParallel: |
static void |
main(java.lang.String[] args)
A main function. Makes a compile specification from a command line. |
boolean |
makeCSourceFromHirBase(java.lang.String pModifier,
HirRoot hirRoot,
SymRoot symRoot,
IoRoot io)
|
protected void |
OpenMPCompile(java.lang.String timing,
HirRoot hirRoot,
SymRoot symRoot,
java.io.OutputStream out,
IoRoot io)
OpenMPCompile: |
protected void |
optimizeHir(HirRoot hirRoot,
FlowRoot hirFlowRoot,
SymRoot symRoot,
IoRoot io)
HIR-level optimizations. |
protected void |
testHir(HirRoot hirRoot,
FlowRoot hirFlowRoot,
IoRoot io)
Tests HIR before converting it to LIR. |
protected void |
testSym(HirRoot pHirRoot,
IoRoot io)
Tests Symbol Table before converting HIR to LIR. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public TemporaryFileManager fTemporaryFileManager
java.io.File fHir2CFile
public boolean fstophir2c
java.lang.String fOpenMPTmpFileName
protected static final java.lang.String DEFAULT_OPENMP_NAME
protected java.util.Set fSubprogramsToBeParallelized
| Constructor Detail |
public LoopPara()
| Method Detail |
public boolean makeCSourceFromHirBase(java.lang.String pModifier,
HirRoot hirRoot,
SymRoot symRoot,
IoRoot io)
throws java.io.IOException,
PassException
java.io.IOException
PassException
protected void OpenMPCompile(java.lang.String timing,
HirRoot hirRoot,
SymRoot symRoot,
java.io.OutputStream out,
IoRoot io)
throws java.io.IOException,
PassException
java.io.IOException
PassException
public void LoopParallel(HirRoot hirRoot,
SymRoot symRoot,
IoRoot ioRoot)
public void hir2OpenMP(HirRoot pHirRoot,
SymRoot pSymRoot,
IoRoot pIoRoot)
throws java.io.IOException,
PassException
java.io.IOException
PassException
public java.util.Set getSubprogramsToBeParallelized(HirRoot hirRoot,
SymRoot symRoot,
IoRoot ioRoot)
public void compile(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.OutputStream out,
IoRoot io)
throws java.io.IOException,
PassException
compile in interface CompilerImplementationcompile in class DriversourceFile - the source file name.in - input.out - output.suffix - suffix rule of the source file.io - the IoRoot.
PassException - unrecoverable error(s) found in processing.
java.io.IOException - any IO error.
protected void testSym(HirRoot pHirRoot,
IoRoot io)
throws java.io.IOException,
PassException
testSym in class Driverio - an IoRoot object.
java.io.IOException - any IO error.
PassException - unrecoverable error(s) found in processing.
protected void testHir(HirRoot hirRoot,
FlowRoot hirFlowRoot,
IoRoot io)
throws java.io.IOException,
PassException
testHir in class DriverhirRoot - an HirRoot object.hirFlowRoot - an HIR-based flow analysis result.io - an IoRoot object.
java.io.IOException - any IO error.
PassException - unrecoverable error(s) found in processing.
protected void optimizeHir(HirRoot hirRoot,
FlowRoot hirFlowRoot,
SymRoot symRoot,
IoRoot io)
hirRoot - an HirRoot objecthirFlowRoot - an HIR-based flow analysis resultsymRoot - a SymRoot objectio - an IoRoot object
public void assemble(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.File out,
IoRoot io)
throws java.io.IOException,
PassException
assemble in interface CompilerImplementationassemble in class DriversourceFile - the source file namein - the InputStreamout - the output Filesuffix - suffix rule of the source file.io - the IoRoot.
PassException - unrecoverable error(s) found in processing.
java.io.IOException - any IO error.
public void link(java.io.File out,
IoRoot io)
throws java.io.IOException,
PassException
link in interface CompilerImplementationlink in class Driverout - the output Fileio - the IoRoot.
java.io.IOException - any IO error.
PassException - unrecoverable error(s) found in processing.public void cleanup(CompileSpecification spec)
protected void go(java.lang.String[] args)
Driver
go in class Driverargs - a command line.public static void main(java.lang.String[] args)
args - a command line.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||