diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-12-03 14:58:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 14:58:39 -0800 |
commit | d6444b5032a64f3abe35bf60eb96e151669d2fa5 (patch) | |
tree | 3df9f4aa3819961e63c9f1da640ec607abe2fbca /src/wasm | |
parent | 15356635e34ed8981c993d67ed90e83bc7bfa405 (diff) | |
download | binaryen-d6444b5032a64f3abe35bf60eb96e151669d2fa5.tar.gz binaryen-d6444b5032a64f3abe35bf60eb96e151669d2fa5.tar.bz2 binaryen-d6444b5032a64f3abe35bf60eb96e151669d2fa5.zip |
[NFC] Rename BasicID to BasicType (#3419)
This name is more descriptive and paves the way toward interning HeapTypes as
well, with an analogous BasicHeapType.
Diffstat (limited to 'src/wasm')
-rw-r--r-- | src/wasm/literal.cpp | 3 | ||||
-rw-r--r-- | src/wasm/wasm-type.cpp | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index c80bb44b8..4edaf8039 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -1569,7 +1569,8 @@ Literal Literal::shuffleV8x16(const Literal& other, return Literal(bytes); } -template<Type::BasicID Ty, int Lanes> static Literal splat(const Literal& val) { +template<Type::BasicType Ty, int Lanes> +static Literal splat(const Literal& val) { assert(val.type == Ty); LaneArray<Lanes> lanes; lanes.fill(val); diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index a810f6f98..be017140d 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -243,9 +243,9 @@ struct TypeStore { // If a Type is constructed from a list of types, the list of types becomes // implicitly converted to a TypeInfo before canonicalizing its id. This is // also the case if a list of just one type is provided, even though such a - // list of types will be canonicalized to the BasicID of the single type. As - // such, the following entries are solely placeholders to enable the lookup - // of lists of just one type to the BasicID of the single type. + // list of types will be canonicalized to the BasicType of the single type. + // As such, the following entries are solely placeholders to enable the + // lookup of lists of just one type to the BasicType of the single type. {TypeInfo(Tuple()), Type::none}, {TypeInfo({Type::unreachable}), Type::unreachable}, {TypeInfo({Type::i32}), Type::i32}, |