Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
b1e64155
Commit
b1e64155
authored
Aug 03, 2016
by
Matthew Pickering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More comments about InlinePragmas
Just pointers about where to look in the source code.
parent
0c37aef2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
compiler/basicTypes/BasicTypes.hs
compiler/basicTypes/BasicTypes.hs
+2
-0
compiler/deSugar/DsBinds.hs
compiler/deSugar/DsBinds.hs
+5
-0
No files found.
compiler/basicTypes/BasicTypes.hs
View file @
b1e64155
...
...
@@ -980,6 +980,8 @@ if an Id has defaultInlinePragma it means the user didn't specify anything.
If inl_inline = Inline or Inlineable, then the Id should have an InlineRule unfolding.
If you want to know where InlinePragmas take effect: Look in DsBinds.mkCorePair
Note [CONLIKE pragma]
~~~~~~~~~~~~~~~~~~~~~
The ConLike constructor of a RuleMatchInfo is aimed at the following.
...
...
compiler/deSugar/DsBinds.hs
View file @
b1e64155
...
...
@@ -347,6 +347,11 @@ dsHsBind dflags (AbsBindsSig { abs_tvs = tyvars, abs_ev_vars = dicts
dsHsBind
_
(
PatSynBind
{})
=
panic
"dsHsBind: PatSynBind"
-- | This is where we apply INLINE and INLINABLE pragmas. All we need to
-- do is to attach the unfolding information to the Id. When the interface
-- files are created, unfoldings are only attached if the information is
-- present.
------------------------
makeCorePair
::
DynFlags
->
Id
->
Bool
->
Arity
->
CoreExpr
->
(
Id
,
CoreExpr
)
makeCorePair
dflags
gbl_id
is_default_method
dict_arity
rhs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment