| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
GHC.Core.Opt.Simplify.Inline
Synopsis
- couldBeSmallEnoughToInline :: UnfoldingOpts -> Int -> CoreExpr -> Bool
 - smallEnoughToInline :: UnfoldingOpts -> Unfolding -> Bool
 - callSiteInline :: Logger -> UnfoldingOpts -> Int -> Id -> Bool -> Bool -> [ArgSummary] -> CallCtxt -> Maybe CoreExpr
 - data CallCtxt
 
Cheap and cheerful inlining checks.
couldBeSmallEnoughToInline :: UnfoldingOpts -> Int -> CoreExpr -> Bool Source #
smallEnoughToInline :: UnfoldingOpts -> Unfolding -> Bool Source #
The smart inlining decisions are made by callSiteInline
callSiteInline :: Logger -> UnfoldingOpts -> Int -> Id -> Bool -> Bool -> [ArgSummary] -> CallCtxt -> Maybe CoreExpr Source #
Constructors
| BoringCtxt | |
| RhsCtxt RecFlag | |
| DiscArgCtxt | |
| RuleArgCtxt | |
| ValAppCtxt | |
| CaseCtxt |