-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alias analysis #2
Conversation
varName :: MonadRef m => Expr Var -> SubPass AliasAnalysis m P.String | ||
varName e = fmap (view lit) . match' =<< source =<< view name <$> match' e | ||
|
||
modifyAttr :: forall m. MonadRef m => (RefData' Attr UsedVars (SubPass AliasAnalysis m) -> RefData' Attr UsedVars (SubPass AliasAnalysis m)) -> SubPass AliasAnalysis m () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks generally useful – how about generalizing the types and moving to Luna.IR.Internal.IR
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
Type holes in specs + 2 fixes described in inline comments. Otherwise LGTM. |
atLeastOneIsEqual <- forM args $ \(Arg _ n) -> do | ||
n' <- source n | ||
gatherVar n' f' | ||
sameVar <- sameNameVar (unsafeRelayout properVar) (unsafeRelayout n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the assumption that n'
is a var? How about (Just (Just x)) : x
* Remove unused code: project management in component browser * Encapsulate internal FRP logic of project list * Collapse some code paths * Open project passed on command line through presenter A project name or ID that is passed on the command line was initialised in the controller setup, before the presenters and views are set up. Now, we fully initialise the IDE before opening a project so we have control over the view while a project is being opened. * Show a spinner in all cases of opening a project * Let root presenter open/close projects when switching projects * Change spinner to make progress over a fixed period * Resolve issues when Project Manager API isn't available * Bump wasm size limit
…le-6756-6804 * develop: (22 commits) Coalesce graph editor view invalidations (#6786) Append warnings extracted before tail call execution (#6849) Detect and override hooks of the same kind (#6842) Dynamic app resampling and better performance measurements. (#6595) Show spinner when opening/creating a project, take #2 (#6827) Infrastructure for testing inter project imports and exports (#6840) Only initialise visualisation chooser if it is used. (#6758) Allow casting a Mixed column into a concrete type (#6777) Stop graph editing when in full-screen visualization mode (#6844) Handle `show-dashboard` event (#6837) Fix some dashboard issues (#6668) Fix JWT leak (#6815) Fix "set username" screen (#6824) Fallback to opened date when ordering projects (#6814) Various test improvements to increase coverage and speed things up (#6820) do not activate nested dropdowns together (#6830) Clearly select single specialization with enum dispatch pattern (#6819) Prevent incorrect application of list widget on incompatible expressions (#6771) Update GraalVM to 22.3.1 JDK17 (#6750) Import/export syntax error have more specific messages (#6808) ...
No description provided.