|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.spacetime.SafeFileReaderWriterPositions
public class SafeFileReaderWriterPositions
Separate FileReaders from splitters, FileWriters from joiners.
The spacetime compiler can not cope with a FileReader directly before a splitter or a FileWriter directly after a joiner. This little pass inserts identity filters to avoid these cases. The filters are not the SIRIdentity builtin filter which sir/lowering/fusion/Lifter removes (and possibly other optimization passes also remove).
Method Summary | |
---|---|
static void |
doit(SIRStream str)
Make FileReader positions safe with respect to splitters and FileWriter positions safe with respect to joiners. |
static SIRFilter |
makeIdentityFilter(CType typ)
Create a new identity filter at a specified type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void doit(SIRStream str)
str
- the root SIRStreampublic static SIRFilter makeIdentityFilter(CType typ)
typ
- input and output CType for identity filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |