Skip to content

Commit

Permalink
inference: create a separate type for doing optimizations (#23276)
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 authored Oct 16, 2017
1 parent a54e60f commit a9b90ca
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 77 deletions.
Loading

0 comments on commit a9b90ca

Please sign in to comment.