[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / nativeGen / SparcGen.hi
1 {-# GHC_PRAGMA INTERFACE VERSION 5 #-}
2 interface SparcGen where
3 import CLabelInfo(CLabel)
4 import CharSeq(CSeq)
5 import CmdLineOpts(GlobalSwitch)
6 import PreludePS(_PackedString)
7 import PreludeRatio(Ratio(..))
8 import Pretty(PprStyle)
9 import PrimKind(PrimKind)
10 import PrimOps(PrimOp)
11 import SplitUniq(SplitUniqSupply)
12 import Stix(CodeSegment, StixReg, StixTree)
13 data CSeq       {-# GHC_PRAGMA CNil | CAppend CSeq CSeq | CIndent Int CSeq | CNewline | CStr [Char] | CCh Char | CInt Int | CPStr _PackedString #-}
14 data PprStyle   {-# GHC_PRAGMA PprForUser | PprDebug | PprShowAll | PprInterface (GlobalSwitch -> Bool) | PprForC (GlobalSwitch -> Bool) | PprUnfolding (GlobalSwitch -> Bool) | PprForAsm (GlobalSwitch -> Bool) Bool ([Char] -> [Char]) #-}
15 data StixTree   {-# GHC_PRAGMA StSegment CodeSegment | StInt Integer | StDouble (Ratio Integer) | StString _PackedString | StLitLbl CSeq | StLitLit _PackedString | StCLbl CLabel | StReg StixReg | StIndex PrimKind StixTree StixTree | StInd PrimKind StixTree | StAssign PrimKind StixTree StixTree | StLabel CLabel | StFunBegin CLabel | StFunEnd CLabel | StJump StixTree | StFallThrough CLabel | StCondJump CLabel StixTree | StData PrimKind [StixTree] | StPrim PrimOp [StixTree] | StCall _PackedString PrimKind [StixTree] | StComment _PackedString #-}
16 sparcCodeGen :: PprStyle -> [[StixTree]] -> SplitUniqSupply -> CSeq
17         {-# GHC_PRAGMA _A_ 2 _U_ 211 _N_ _S_ "LS" _N_ _N_ #-}
18