Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Commits
ef164c45
Commit
ef164c45
authored
4 months ago
by
Aaron Councilman
Browse files
Options
Downloads
Patches
Plain Diff
Fix juno call code-gen
parent
bf65041d
No related branches found
No related tags found
1 merge request
!46
Fix juno call code-gen
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
juno_frontend/src/codegen.rs
+12
-8
12 additions, 8 deletions
juno_frontend/src/codegen.rs
juno_frontend/src/main.rs
+0
-3
0 additions, 3 deletions
juno_frontend/src/main.rs
with
12 additions
and
11 deletions
juno_frontend/src/codegen.rs
+
12
−
8
View file @
ef164c45
...
...
@@ -490,23 +490,27 @@ impl CodeGenerator<'_> {
}
// Create the call expression, a region specifically for it, and a region after that.
let
mut
call_region
=
self
.builder
.allocate_node
(
func_id
);
let
mut
after_call_region
=
self
.builder
.allocate_node
(
func_id
);
let
mut
call_region
=
ssa
.create_block
(
&
mut
self
.builder
);
ssa
.add_pred
(
call_region
,
block
);
ssa
.seal_block
(
call_region
,
&
mut
self
.builder
);
let
mut
after_call_region
=
ssa
.create_block
(
&
mut
self
.builder
);
ssa
.add_pred
(
after_call_region
,
call_region
);
ssa
.seal_block
(
after_call_region
,
&
mut
self
.builder
);
let
mut
call
=
self
.builder
.allocate_node
(
func_id
);
let
call_id
=
call
.id
();
call_region
.build_region
(
Box
::
new
([
block
]));
after_call_region
.build_region
(
Box
::
new
([
call_region
.id
()]));
block
=
after_call_region
.id
();
call
.build_call
(
call_region
.id
()
,
call_region
,
call_func
,
dynamic_constants
.into
(),
arg_vals
.into
(),
);
let
_
=
self
.builder
.add_node
(
call_region
);
let
_
=
self
.builder
.add_node
(
after_call_region
);
let
_
=
self
.builder
.add_node
(
call
);
block
=
after_call_region
;
// Read each of the "inout values" and perform the SSA update
let
inouts_index
=
self
.builder
.create_field_index
(
1
);
for
(
idx
,
var
)
in
inouts
.into_iter
()
.enumerate
()
{
...
...
This diff is collapsed.
Click to expand it.
juno_frontend/src/main.rs
+
0
−
3
View file @
ef164c45
...
...
@@ -61,9 +61,6 @@ fn main() {
if
args
.verify
||
args
.verify_all
{
pm
.add_pass
(
hercules_opt
::
pass
::
Pass
::
Verify
);
}
if
args
.x_dot
{
pm
.add_pass
(
hercules_opt
::
pass
::
Pass
::
Xdot
(
true
));
}
add_verified_pass!
(
pm
,
args
,
PhiElim
);
if
args
.x_dot
{
pm
.add_pass
(
hercules_opt
::
pass
::
Pass
::
Xdot
(
true
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment