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
31e649ce
Commit
31e649ce
authored
1 year ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
Beginnings of schedules
parent
29b8ad42
No related branches found
No related tags found
1 merge request
!13
Basic IR schedules framework
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hercules_ir/src/ir.rs
+1
-0
1 addition, 0 deletions
hercules_ir/src/ir.rs
hercules_ir/src/lib.rs
+2
-0
2 additions, 0 deletions
hercules_ir/src/lib.rs
hercules_ir/src/schedule.rs
+23
-0
23 additions, 0 deletions
hercules_ir/src/schedule.rs
with
26 additions
and
0 deletions
hercules_ir/src/ir.rs
+
1
−
0
View file @
31e649ce
...
...
@@ -1078,6 +1078,7 @@ impl TernaryOperator {
* Rust things to make newtyped IDs usable.
*/
#[macro_export]
macro_rules!
define_id_type
{
(
$x
:
ident
)
=>
{
#[derive(Debug,
Clone,
Copy,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord)]
...
...
This diff is collapsed.
Click to expand it.
hercules_ir/src/lib.rs
+
2
−
0
View file @
31e649ce
...
...
@@ -7,6 +7,7 @@ pub mod dom;
pub
mod
ir
;
pub
mod
loops
;
pub
mod
parse
;
pub
mod
schedule
;
pub
mod
subgraph
;
pub
mod
typecheck
;
pub
mod
verify
;
...
...
@@ -18,6 +19,7 @@ pub use crate::dom::*;
pub
use
crate
::
ir
::
*
;
pub
use
crate
::
loops
::
*
;
pub
use
crate
::
parse
::
*
;
pub
use
crate
::
schedule
::
*
;
pub
use
crate
::
subgraph
::
*
;
pub
use
crate
::
typecheck
::
*
;
pub
use
crate
::
verify
::
*
;
This diff is collapsed.
Click to expand it.
hercules_ir/src/schedule.rs
0 → 100644
+
23
−
0
View file @
31e649ce
use
crate
::
*
;
/*
* An individual schedule is a single "directive" for the compiler to take into
* consideration at some point during the compilation pipeline. Each schedule is
* associated with a single node.
*/
#[derive(Debug,
Clone)]
pub
enum
Schedule
{}
/*
* A plan is a set of schedules associated with each node, plus partitioning
* information. Partitioning information is a mapping from node ID to partition
* ID.
*/
#[derive(Debug,
Clone)]
pub
struct
Plan
{
schedules
:
Vec
<
Vec
<
Schedule
>>
,
partitions
:
Vec
<
PartitionID
>
,
num_partitions
:
usize
,
}
define_id_type!
(
PartitionID
);
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