Skip to content

Commit

Permalink
inference: create a separate type for doing optimizations
Browse files Browse the repository at this point in the history
Most fields of InferenceState aren't valid during optimization,
so the goal is to reflect that in the structure of the types

Similarly, doing optimization operations during inference would be
invalid, so this helps distinguish those cases as well.

Finally, this makes is possible for non-InferenceState-initiated IR passes
(e.g. external to typeinf) to make uses of these passes.
  • Loading branch information
vtjnash committed Aug 15, 2017
1 parent 3b51323 commit 8ad6424
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 78 deletions.
Loading

0 comments on commit 8ad6424

Please sign in to comment.