Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
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