diff options
author | Alon Zakai <azakai@google.com> | 2022-09-28 12:35:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 12:35:28 -0700 |
commit | 524e813891f5957ce9263b909b282b2cbfd1c5be (patch) | |
tree | 75b2caf6f63a550a0e8cc8312c5f6d84f15221a4 /src/passes/GlobalStructInference.cpp | |
parent | 7044da7fe6754c54bd7f4930eaa208e3081cabe3 (diff) | |
download | binaryen-524e813891f5957ce9263b909b282b2cbfd1c5be.tar.gz binaryen-524e813891f5957ce9263b909b282b2cbfd1c5be.tar.bz2 binaryen-524e813891f5957ce9263b909b282b2cbfd1c5be.zip |
[GUFA] Prepare for cone types [NFC] (#5086)
This does not actually add cone types, but it does NFC refactoring towards that.
Specifically it replaces the internal ExactType with ConeType, and the latter
has a depth, so a cone type of depth 0 is the old exact type.
Cone types with depth > 0 are not possible yet, keeping this NFC.
I believe this design with a depth for cone types has little overhead. It does add
to the size of ConeType, but the variant there is larger anyhow (it contains a
Literal). And things like isSubType need to loop anyhow, so looping up to the
depth etc. in checks won't make things slower.
Diffstat (limited to 'src/passes/GlobalStructInference.cpp')
0 files changed, 0 insertions, 0 deletions