PageRenderTime 624ms queryFilters 0ms Sphinxql 222ms GetByIds 248ms meta 0ms repositoryFilters 2ms languageFilters 0ms sourceFilters 0ms

619 results for 'import UniqFM' (624 ms)

Source

Language

Repository

UniqFM.lhs https://bitbucket.org/carter/ghc.git | Haskell | 275 lines
131-- Bindings in right argument shadow those in the left
132plusUFM         :: UniqFM elt -> UniqFM elt -> UniqFM elt
133
134plusUFM_C       :: (elt -> elt -> elt)
135                -> UniqFM elt -> UniqFM elt -> UniqFM elt
136
140intersectUFM_C  :: (elt1 -> elt2 -> elt3)
141                -> UniqFM elt1 -> UniqFM elt2 -> UniqFM elt3
142
148filterUFM_Directly :: (Unique -> elt -> Bool) -> UniqFM elt -> UniqFM elt
149partitionUFM    :: (elt -> Bool) -> UniqFM elt -> (UniqFM elt, UniqFM elt)
150
155
156splitUFM        :: Uniquable key => UniqFM elt -> key -> (UniqFM elt, Maybe elt, UniqFM elt)
157                   -- Splits a UFM into things less than, equal to, and greater than the key
Liveness.hs https://bitbucket.org/carter/ghc.git | Haskell | 955 lines
44import UniqSet
45import UniqFM
46import UniqSupply
388        slurpCompM :: [LiveBasicBlock instr]
389                   -> State (UniqFM [UniqFM Reg]) [Bag (Reg, Reg)]
390        slurpCompM blocks
400        slurpBlock :: Bool -> LiveBasicBlock instr
401                   -> State (UniqFM [UniqFM Reg]) (Bag (Reg, Reg))
402        slurpBlock propagate (BasicBlock blockId instrs)
412                -> LiveInstr instr
413                -> State (UniqFM [UniqFM Reg])          -- blockId -> [slot -> reg]
414                                                        --      for tracking slotMaps across jumps
455
456        mergeSlotMaps :: UniqFM Reg -> UniqFM Reg -> UniqFM Reg
457        mergeSlotMaps map1 map2
GraphOps.hs https://bitbucket.org/carter/ghc.git | Haskell | 665 lines
23import Outputable
24import Unique
25import UniqSet
25import UniqSet
26import UniqFM
27
28import Data.List        hiding (union)
29import Data.Maybe
30
645        => (a -> a) -> a -> k
646        -> UniqFM a -> UniqFM a
647
658        => (a -> a)
659        -> k -> UniqFM a -> UniqFM a
660
Spill.hs https://bitbucket.org/carter/ghc.git | Haskell | 343 lines
10where
11import RegAlloc.Liveness
12import Instruction
12import Instruction
13import Reg
14import OldCmm hiding (RegSet)
14import OldCmm hiding (RegSet)
15import BlockId
16
16
17import State
18import Unique
18import Unique
19import UniqFM
20import UniqSet
UniqFM.hs git://github.com/ghc/ghc.git | Haskell | 379 lines
182-- Bindings in right argument shadow those in the left
183plusUFM :: UniqFM elt -> UniqFM elt -> UniqFM elt
184-- M.union is left-biased, plusUFM should be right-biased.
188
189plusUFM_C :: (elt -> elt -> elt) -> UniqFM elt -> UniqFM elt -> UniqFM elt
190plusUFM_C f (UFM x) (UFM y) = UFM (M.unionWith f x y)
216
217minusUFM :: UniqFM elt1 -> UniqFM elt2 -> UniqFM elt1
218minusUFM (UFM x) (UFM y) = UFM (M.difference x y)
219
220intersectUFM :: UniqFM elt -> UniqFM elt -> UniqFM elt
221intersectUFM (UFM x) (UFM y) = UFM (M.intersection x y)
247
248partitionUFM :: (elt -> Bool) -> UniqFM elt -> (UniqFM elt, UniqFM elt)
249partitionUFM p (UFM m) =
UniqFM.lhs https://bitbucket.org/khibino/ghc-hack | Haskell | 277 lines
136-- Bindings in right argument shadow those in the left
137plusUFM		:: UniqFM elt -> UniqFM elt -> UniqFM elt
138
139plusUFM_C	:: (elt -> elt -> elt)
140		-> UniqFM elt -> UniqFM elt -> UniqFM elt
141
143
144intersectUFM	:: UniqFM elt -> UniqFM elt -> UniqFM elt
145intersectUFM_C	:: (elt1 -> elt2 -> elt3)
145intersectUFM_C	:: (elt1 -> elt2 -> elt3)
146		-> UniqFM elt1 -> UniqFM elt2 -> UniqFM elt3
147
159
160splitUFM        :: Uniquable key => UniqFM elt -> key -> (UniqFM elt, Maybe elt, UniqFM elt)
161		   -- Splits a UFM into things less than, equal to, and greater than the key
CoreMonad.lhs https://bitbucket.org/carter/ghc.git | Haskell | 1,060 lines
67#ifdef GHCI
68import Name( Name )
69#endif
70import CoreSyn
71import PprCore
72import CoreUtils
72import CoreUtils
73import CoreLint		( lintCoreBindings )
74import HscTypes
74import HscTypes
75import Module           ( Module )
76import DynFlags
94import UniqSupply
95import UniqFM       ( UniqFM, mapUFM, filterUFM )
96import MonadUtils
CoreMonad.lhs https://github.com/crdueck/ghc.git | Haskell | 1,080 lines
67#ifdef GHCI
68import Name( Name )
69#endif
70import CoreSyn
71import PprCore
72import CoreUtils
72import CoreUtils
73import CoreLint		( lintCoreBindings )
74import HscTypes
74import HscTypes
75import Module
76import DynFlags
94import UniqSupply
95import UniqFM       ( UniqFM, mapUFM, filterUFM )
96import MonadUtils
SpecConstr.lhs https://bitbucket.org/carter/ghc.git | Haskell | 1,793 lines
27
28import CoreSyn
29import CoreSubst
29import CoreSubst
30import CoreUtils
31import CoreUnfold	( couldBeSmallEnoughToInline )
31import CoreUnfold	( couldBeSmallEnoughToInline )
32import CoreFVs 		( exprsFreeVars )
33import CoreMonad
33import CoreMonad
34import Literal		( litIsLifted )
35import HscTypes         ( ModGuts(..) )
58import FastString
59import UniqFM
60import MonadUtils
BinIface.hs https://bitbucket.org/carter/ghc.git | Haskell | 1,587 lines
21
22import TcRnMonad
23import TyCon
23import TyCon
24import DataCon    (dataConName, dataConWorkId, dataConTyCon)
25import PrelInfo   (wiredInThings, basicKnownKeyNames)
25import PrelInfo   (wiredInThings, basicKnownKeyNames)
26import Id         (idName, isDataConWorkId_maybe)
27import CoreSyn    (DFunArg(..))
27import CoreSyn    (DFunArg(..))
28import Coercion   (LeftOrRight(..))
29import TysWiredIn
40import DynFlags
41import UniqFM
42import UniqSupply
StgAst.hs git://github.com/ghcjs/ghcjs.git | Haskell | 155 lines
11
12import           Data.Char     (isSpace)
13import qualified Data.Foldable as F
13import qualified Data.Foldable as F
14import           Data.Set      (Set)
15import qualified Data.Set      as S
15import qualified Data.Set      as S
16import           DataCon
17import           DynFlags
18
19import           BasicTypes
20import           Control.Lens
33import           Unique
34import           UniqFM
35import           IdInfo
SpillClean.hs https://bitbucket.org/carter/ghc.git | Haskell | 601 lines
36
37import RegAlloc.Liveness
38import Instruction
38import Instruction
39import Reg
40
40
41import BlockId
42import OldCmm
43import UniqSet
44import UniqFM
45import Unique
45import Unique
46import State
47import Outputable
TrivColorable.hs https://bitbucket.org/carter/ghc.git | Haskell | 260 lines
10
11import RegClass
12import Reg
13
14import GraphBase
15
15
16import UniqFM
17import FastTypes
17import FastTypes
18import Platform
19import Panic
76MS 2010/04
77When converting UniqFM to use Data.IntMap, the fold cannot use UniqFM internal
78representation any more. But it is imperative that the assSqueeze stops
TrivColorable.hs https://github.com/crdueck/ghc.git | Haskell | 273 lines
10
11import RegClass
12import Reg
13
14import GraphBase
15
15
16import UniqFM
17import FastTypes
17import FastTypes
18import Platform
19import Panic
76MS 2010/04
77When converting UniqFM to use Data.IntMap, the fold cannot use UniqFM internal
78representation any more. But it is imperative that the assSqueeze stops
Liveness.hs https://github.com/dorchard/ghc.git | Haskell | 956 lines
44import UniqSet
45import UniqFM
46import UniqSupply
388        slurpCompM :: [LiveBasicBlock instr]
389                   -> State (UniqFM [UniqFM Reg]) [Bag (Reg, Reg)]
390        slurpCompM blocks
400        slurpBlock :: Bool -> LiveBasicBlock instr
401                   -> State (UniqFM [UniqFM Reg]) (Bag (Reg, Reg))
402        slurpBlock propagate (BasicBlock blockId instrs)
412                -> LiveInstr instr
413                -> State (UniqFM [UniqFM Reg])          -- blockId -> [slot -> reg]
414                                                        --      for tracking slotMaps across jumps
455
456        mergeSlotMaps :: UniqFM Reg -> UniqFM Reg -> UniqFM Reg
457        mergeSlotMaps map1 map2
Liveness.hs https://bitbucket.org/khibino/ghc-hack | Haskell | 951 lines
45import UniqSet
46import UniqFM
47import UniqSupply
384        slurpCompM :: [LiveBasicBlock instr]
385                   -> State (UniqFM [UniqFM Reg]) [Bag (Reg, Reg)]
386        slurpCompM blocks
396        slurpBlock :: Bool -> LiveBasicBlock instr
397                   -> State (UniqFM [UniqFM Reg]) (Bag (Reg, Reg))
398        slurpBlock propagate (BasicBlock blockId instrs)
408                -> LiveInstr instr
409                -> State (UniqFM [UniqFM Reg])          -- blockId -> [slot -> reg]
410                                                        --      for tracking slotMaps across jumps
451
452        mergeSlotMaps :: UniqFM Reg -> UniqFM Reg -> UniqFM Reg
453        mergeSlotMaps map1 map2
UniqFM.lhs git://github.com/ghc/ghc.git | Haskell | 275 lines
131-- Bindings in right argument shadow those in the left
132plusUFM         :: UniqFM elt -> UniqFM elt -> UniqFM elt
133
134plusUFM_C       :: (elt -> elt -> elt)
135                -> UniqFM elt -> UniqFM elt -> UniqFM elt
136
140intersectUFM_C  :: (elt1 -> elt2 -> elt3)
141                -> UniqFM elt1 -> UniqFM elt2 -> UniqFM elt3
142
148filterUFM_Directly :: (Unique -> elt -> Bool) -> UniqFM elt -> UniqFM elt
149partitionUFM    :: (elt -> Bool) -> UniqFM elt -> (UniqFM elt, UniqFM elt)
150
155
156splitUFM        :: Uniquable key => UniqFM elt -> key -> (UniqFM elt, Maybe elt, UniqFM elt)
157                   -- Splits a UFM into things less than, equal to, and greater than the key
UniqFM.lhs git://github.com/ilyasergey/GHC-XAppFix.git | Haskell | 277 lines
136-- Bindings in right argument shadow those in the left
137plusUFM		:: UniqFM elt -> UniqFM elt -> UniqFM elt
138
139plusUFM_C	:: (elt -> elt -> elt)
140		-> UniqFM elt -> UniqFM elt -> UniqFM elt
141
143
144intersectUFM	:: UniqFM elt -> UniqFM elt -> UniqFM elt
145intersectUFM_C	:: (elt1 -> elt2 -> elt3)
145intersectUFM_C	:: (elt1 -> elt2 -> elt3)
146		-> UniqFM elt1 -> UniqFM elt2 -> UniqFM elt3
147
159
160splitUFM        :: Uniquable key => UniqFM elt -> key -> (UniqFM elt, Maybe elt, UniqFM elt)
161		   -- Splits a UFM into things less than, equal to, and greater than the key
UniqDFM.hs git://github.com/ghc/ghc.git | Haskell | 393 lines
8
9This is very similar to @UniqFM@, the major difference being that the order of
10folding is not dependent on @Unique@ ordering, giving determinism.
62import Unique           ( Uniquable(..), Unique, getKey )
63import Outputable
64
64
65import qualified Data.IntMap as M
66import Data.Data
66import Data.Data
67import Data.List (sortBy)
68import Data.Function (on)
68import Data.Function (on)
69import UniqFM (UniqFM, listToUFM_Directly, nonDetUFMToList, ufmToIntMap)
70
GraphColor.hs https://bitbucket.org/carter/ghc.git | Haskell | 369 lines
14
15import GraphBase
16import GraphOps
16import GraphOps
17import GraphPpr
18
19import Unique
20import UniqFM
21import UniqSet
21import UniqSet
22import Outputable
23
23
24import Data.Maybe
25import Data.List
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21