-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xiandaonancheng
committed
Sep 12, 2024
1 parent
dbecb41
commit 9b57c75
Showing
25 changed files
with
405 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ir | ||
|
||
// goLocalInitMap is mapping need init virtual variable to its go_local variable. | ||
var goLocalInitMap = map[*Name]*Name{} | ||
|
||
// BindGoLocalInit records need init virtual variable and its go_local variable. | ||
func BindGoLocalInit(goLocal, needInit *Name) { | ||
goLocalInitMap[needInit] = goLocal | ||
} | ||
|
||
// GetGoLocalByInit gets go_local variable for need init virtual variable. | ||
func GetGoLocalByInit(needInit *Name) *Name { | ||
return goLocalInitMap[needInit] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ const ( | |
stmtSend | ||
stmtAssign | ||
stmtAssignOp | ||
stmtGoLocalAssign | ||
stmtIncDec | ||
stmtBranch | ||
stmtCall | ||
|
Oops, something went wrong.