Commit ca79e08
authored
cranelift: Turn
* cranelift: Turn AliasRegion into an entity stored in the DFG
Generalize AliasRegion from a fixed enum (Heap/Table/Vmctx) into an entity
index with AliasRegionData containing a description string for printing.
MemFlagsData grows a region: PackedOption<AliasRegion> field instead of
bitpacking the alias region with the rest of its flags.
Alias regions are stored in a PrimaryMap<AliasRegion, AliasRegionData> in the
DFG. There is no deduplication: each push() creates a new region entity.
Users (e.g. Wasmtime) are responsible for caching and reusing their own alias
region entities.
The CLIF text format is updated to support region declarations in the function
header, e.g. region0 = "heap", with memflags referencing regions by entity
name instead of the old hardcoded keywords.
* Address review feedback
* fix tests after rebase
* fix clippy and a cfg warning
* fix typo
* really fix things this time
* fix aarch64 inst size assertionAliasRegion into an entity stored in the DFG (#13354)1 parent 3471bf9 commit ca79e08
252 files changed
Lines changed: 4621 additions & 3007 deletions
File tree
- cranelift
- codegen
- meta/src
- src
- ir
- isa
- aarch64
- inst
- riscv64
- s390x
- inst
- lower
- x64
- lower
- legalizer
- machinst
- verifier
- entity/src
- filetests/filetests
- alias
- egraph
- inline
- isa
- aarch64
- riscv64
- x64
- verifier
- fuzzgen/src
- interpreter/src
- reader/src
- crates
- cranelift/src
- compiler
- func_environ/gc
- enabled
- translate
- environ/src
- tests/disas
- component-model
- gc
- copying
- drc
- null
- load-store
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
560 | 565 | | |
561 | 566 | | |
562 | 567 | | |
| |||
1153 | 1158 | | |
1154 | 1159 | | |
1155 | 1160 | | |
1156 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1157 | 1169 | | |
1158 | 1170 | | |
1159 | 1171 | | |
| |||
1164 | 1176 | | |
1165 | 1177 | | |
1166 | 1178 | | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1170 | 1186 | | |
1171 | 1187 | | |
1172 | 1188 | | |
| |||
1221 | 1237 | | |
1222 | 1238 | | |
1223 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1224 | 1251 | | |
1225 | 1252 | | |
1226 | 1253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
| 795 | + | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
883 | | - | |
| 883 | + | |
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
| 902 | + | |
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
946 | | - | |
| 946 | + | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | | - | |
| 965 | + | |
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
984 | | - | |
| 984 | + | |
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | | - | |
| 1072 | + | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
| 1090 | + | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
| 1118 | + | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | | - | |
| 1182 | + | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
| |||
3132 | 3132 | | |
3133 | 3133 | | |
3134 | 3134 | | |
3135 | | - | |
| 3135 | + | |
3136 | 3136 | | |
3137 | | - | |
| 3137 | + | |
3138 | 3138 | | |
3139 | 3139 | | |
3140 | 3140 | | |
3141 | 3141 | | |
3142 | 3142 | | |
3143 | 3143 | | |
3144 | 3144 | | |
3145 | | - | |
| 3145 | + | |
3146 | 3146 | | |
3147 | 3147 | | |
3148 | 3148 | | |
| |||
3773 | 3773 | | |
3774 | 3774 | | |
3775 | 3775 | | |
3776 | | - | |
| 3776 | + | |
3777 | 3777 | | |
3778 | 3778 | | |
3779 | 3779 | | |
| |||
3802 | 3802 | | |
3803 | 3803 | | |
3804 | 3804 | | |
3805 | | - | |
| 3805 | + | |
3806 | 3806 | | |
3807 | 3807 | | |
3808 | 3808 | | |
| |||
3830 | 3830 | | |
3831 | 3831 | | |
3832 | 3832 | | |
3833 | | - | |
| 3833 | + | |
3834 | 3834 | | |
3835 | 3835 | | |
3836 | 3836 | | |
| |||
3855 | 3855 | | |
3856 | 3856 | | |
3857 | 3857 | | |
3858 | | - | |
| 3858 | + | |
3859 | 3859 | | |
3860 | 3860 | | |
3861 | 3861 | | |
| |||
0 commit comments