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
272abe75
Commit
272abe75
authored
4 months ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
Fix inline pass, get fac example working
parent
47e92dd2
No related branches found
No related tags found
1 merge request
!52
Setup for CI
Pipeline
#200258
passed
4 months ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Cargo.lock
+12
-0
12 additions, 0 deletions
Cargo.lock
Cargo.toml
+1
-1
1 addition, 1 deletion
Cargo.toml
hercules_opt/src/inline.rs
+1
-1
1 addition, 1 deletion
hercules_opt/src/inline.rs
juno_frontend/src/lib.rs
+1
-0
1 addition, 0 deletions
juno_frontend/src/lib.rs
with
15 additions
and
2 deletions
Cargo.lock
+
12
−
0
View file @
272abe75
...
...
@@ -442,6 +442,18 @@ dependencies = [
"pin-project-lite",
]
[[package]]
name = "fac"
version = "0.1.0"
dependencies = [
"async-std",
"clap",
"hercules_rt",
"juno_build",
"rand",
"with_builtin_macros",
]
[[package]]
name = "fastrand"
version = "2.1.1"
...
...
This diff is collapsed.
Click to expand it.
Cargo.toml
+
1
−
1
View file @
272abe75
...
...
@@ -14,7 +14,7 @@ members = [
"hercules_samples/dot"
,
"hercules_samples/matmul"
,
#
"hercules_samples/fac",
"hercules_samples/fac"
,
"juno_frontend"
,
"juno_scheduler"
,
...
...
This diff is collapsed.
Click to expand it.
hercules_opt/src/inline.rs
+
1
−
1
View file @
272abe75
...
...
@@ -197,7 +197,7 @@ fn inline_func(
// Stich the control use of the original call node's region with
// the predecessor control of the inlined function's return.
edit
=
edit
.replace_all_uses
(
control
,
called_return_pred
)
?
;
edit
=
edit
.replace_all_uses
(
control
,
old_id_to_new_id
(
called_return_pred
)
)
?
;
// Stitch uses of parameter nodes in the inlined function to the IDs
// of arguments provided to the call node.
...
...
This diff is collapsed.
Click to expand it.
juno_frontend/src/lib.rs
+
1
−
0
View file @
272abe75
...
...
@@ -151,6 +151,7 @@ pub fn compile_ir(
if
x_dot
{
pm
.add_pass
(
hercules_opt
::
pass
::
Pass
::
Xdot
(
true
));
}
add_pass!
(
pm
,
verify
,
Inline
);
add_pass!
(
pm
,
verify
,
CCP
);
add_pass!
(
pm
,
verify
,
DCE
);
add_pass!
(
pm
,
verify
,
GVN
);
...
...
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