-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[ir] SNodeOpStmt use GlobalPtrStmt for all SNodeOpTypes #2082
Conversation
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.
Awesome! LGTM, and welcome back!
I have a question in lower_access: what if a global pointer is lowered with activate == false by a SNodeOpStmt or a GlobalLoadStmt, but later we need to activate that pointer?
I'm not exactly sure what "later we need to activate that pointer" refers to, but here's what I remember about the activate
flag:
- When created, each
GlobalPtrStmt
hasactivate=true
- In
flag_access
(beforelower_access
), for read-only pointers we markactivate=false
(There doesn't seem to be a place where we mark a pointer with activate=false
as activate=true
? :-) Correct me if I'm wrong.)
IIUC,
|
This sounds reasonable to me - maybe you can show a specific case where "activate that pointer" becomes problematic? |
I see... I thought each pointer should be lowered only once, but I re-read |
Related issue = #742
This PR removes the
indices
field fromSNodeOpStmt
.I have a question in
lower_access
: what if a global pointer is lowered withactivate == false
by aSNodeOpStmt
or aGlobalLoadStmt
, but later we need to activate that pointer?[Click here for the format server]