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
e15c5db1
"hpvm/projects/visc-rt/visc-rt.cpp" did not exist on "2026b16d151c098f05e2887226c361e70996672c"
Commit
e15c5db1
authored
5 months ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
Make manifest accessible from PM
parent
e0634614
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Cargo.lock
+1
-0
1 addition, 0 deletions
Cargo.lock
hercules_opt/src/pass.rs
+10
-1
10 additions, 1 deletion
hercules_opt/src/pass.rs
hercules_rt_proc/Cargo.toml
+1
-0
1 addition, 0 deletions
hercules_rt_proc/Cargo.toml
with
12 additions
and
1 deletion
Cargo.lock
+
1
−
0
View file @
e15c5db1
...
...
@@ -677,6 +677,7 @@ dependencies = [
"anyhow",
"hercules_cg",
"hercules_ir",
"hercules_opt",
"postcard",
"serde",
]
...
...
This diff is collapsed.
Click to expand it.
hercules_opt/src/pass.rs
+
10
−
1
View file @
e15c5db1
...
...
@@ -64,8 +64,11 @@ pub struct PassManager {
pub
antideps
:
Option
<
Vec
<
Vec
<
(
NodeID
,
NodeID
)
>>>
,
pub
bbs
:
Option
<
Vec
<
Vec
<
NodeID
>>>
,
// Current plan.
Keep track of the last time the plan was updated.
// Current plan.
pub
plans
:
Option
<
Vec
<
Plan
>>
,
// Store the manifest of a compiled object.
pub
manifests
:
Option
<
HashMap
<
String
,
Manifest
>>
,
}
impl
PassManager
{
...
...
@@ -85,6 +88,7 @@ impl PassManager {
antideps
:
None
,
bbs
:
None
,
plans
:
None
,
manifests
:
None
,
}
}
...
...
@@ -565,6 +569,7 @@ impl PassManager {
.expect
(
"PANIC: Unable to open output manifest file."
);
file
.write_all
(
&
hman_contents
)
.expect
(
"PANIC: Unable to write output manifest file contents."
);
self
.manifests
=
Some
(
smodule
.manifests
);
// Codegen doesn't require clearing analysis results.
continue
;
...
...
@@ -605,4 +610,8 @@ impl PassManager {
pub
fn
get_module
(
self
)
->
Module
{
self
.module
}
pub
fn
get_manifests
(
self
)
->
HashMap
<
String
,
Manifest
>
{
self
.manifests
.unwrap
()
}
}
This diff is collapsed.
Click to expand it.
hercules_rt_proc/Cargo.toml
+
1
−
0
View file @
e15c5db1
...
...
@@ -12,4 +12,5 @@ postcard = { version = "*", features = ["alloc"] }
serde
=
{
version
=
"*"
,
features
=
[
"derive"
]
}
hercules_cg
=
{
path
=
"../hercules_cg"
}
hercules_ir
=
{
path
=
"../hercules_ir"
}
hercules_opt
=
{
path
=
"../hercules_opt"
}
anyhow
=
"*"
\ No newline at end of file
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