Skip to content

Commit 6fdd58d

Browse files
committed
Tidy up one last mention of EntityMap.
1 parent 87e43cc commit 6fdd58d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎cranelift/rustc.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ such a thing might look like, including:
5151
- Build an optimizer IR without the constraints of fast-debug-build
5252
compilation. Cranelift's base IR is focused on Codegen, so a
5353
full-strength optimizer would either use an IR layer on top of it
54-
(possibly using Cranelift's flexible EntityMap system), or possibly
55-
an independent IR that could be translated to/from the base IR.
56-
Either way, this overall architecture would keep the optimizer out
57-
of the way of the non-optimizing build path, which keeps that path
58-
fast and simple, and gives the optimizer more flexibility. If we
59-
then want to base the IR on a powerful data structure like the Value
60-
State Dependence Graph (VSDG), we can do so with fewer compromises.
54+
(possibly using cranelift-entity's flexible `SecondaryMap`s), or
55+
possibly an independent IR that could be translated to/from the base
56+
IR. Either way, this overall architecture would keep the optimizer
57+
out of the way of the non-optimizing build path, which keeps that
58+
path fast and simple, and gives the optimizer more flexibility. If we
59+
then want to base the IR on a powerful data structure like the
60+
Value State Dependence Graph (VSDG), we can do so with fewer
61+
compromises.
6162

6263
And, these ideas build on each other. For example, one of the challenges
6364
for dependence-graph-oriented IRs like the VSDG is getting good enough

0 commit comments

Comments
 (0)