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
Merge requests
!213
Scheduler additions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Scheduler additions
scheduler-additions
into
main
Overview
0
Commits
2
Pipelines
1
Changes
5
Merged
Aaron Councilman
requested to merge
scheduler-additions
into
main
2 weeks ago
Overview
0
Commits
2
Pipelines
1
Changes
5
Expand
Adds support for
else if
Adds boolean operators not (
!
), or (
||
), and and (
&&
)
0
0
Merge request reports
Viewing commit
31ed14d3
Prev
Next
Show latest version
5 files
+
119
−
37
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
31ed14d3
Add boolean operations
· 31ed14d3
Aaron Councilman
authored
2 weeks ago
juno_scheduler/src/compile.rs
+
9
−
2
Options
@@ -551,7 +551,14 @@ fn compile_expr(
}
Ok
(
ExprResult
::
Expr
(
ir
::
ScheduleExp
::
Record
{
fields
:
result
}))
}
parser
::
Expr
::
SetOp
{
parser
::
Expr
::
UnaryOp
{
span
:
_
,
op
,
exp
}
=>
{
let
exp
=
compile_exp_as_expr
(
*
exp
,
lexer
,
macrostab
,
macros
)
?
;
Ok
(
ExprResult
::
Expr
(
ir
::
ScheduleExp
::
UnaryOp
{
op
,
exp
:
Box
::
new
(
exp
),
}))
}
parser
::
Expr
::
BinaryOp
{
span
:
_
,
op
,
lhs
,
@@ -559,7 +566,7 @@ fn compile_expr(
}
=>
{
let
lhs
=
compile_exp_as_expr
(
*
lhs
,
lexer
,
macrostab
,
macros
)
?
;
let
rhs
=
compile_exp_as_expr
(
*
rhs
,
lexer
,
macrostab
,
macros
)
?
;
Ok
(
ExprResult
::
Expr
(
ir
::
ScheduleExp
::
Set
Op
{
Ok
(
ExprResult
::
Expr
(
ir
::
ScheduleExp
::
Binary
Op
{
op
,
lhs
:
Box
::
new
(
lhs
),
rhs
:
Box
::
new
(
rhs
),
Loading