Skip to content

Midend Optimizations - #28

Open
yelhsams wants to merge 10 commits into
veriislefrom
midend-zero
Open

Midend Optimizations#28
yelhsams wants to merge 10 commits into
veriislefrom
midend-zero

Conversation

@yelhsams

Copy link
Copy Markdown
Collaborator

So far, all of arithmetic.isle is verified, with the exception of NaN propagations for FP rules. Finding a suitable spec for simplify is still in progress.

src_opts.join("spaceship.isle"),
src_opts.join("spectre.isle"),
src_opts.join("vector.isle"),
// inst_tags_isle.clone(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to remove commented out code

],
untracked_inputs: vec![clif_opt_isle],
rule_trace: false,
// "lower" -- replace

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done?

;; the right, and thus only simplify patterns like `x+0`, not `0+x`.

;; x+0 == x.
(rule iadd_zero (simplify (iadd ty

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move these back to their original file (as in, put the rule names on the original rules) before we merge

}

// For midend (opt) missing defs
// filter out Instantiations without declaration in termenv

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

fn collect_specs(&mut self, defs: &[Def], termenv: &TermEnv, tyenv: &TypeEnv) -> Result<()> {
for def in defs {
// For midend (opt) missing defs
// filter out Instantiations without declaration in termenv

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to helper?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants