diff options
author | Thomas Lively <tlively123@gmail.com> | 2024-11-26 22:41:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-27 06:41:11 +0000 |
commit | b1c5a007f3986c11916e8ac4a84c41c01d5e04bb (patch) | |
tree | eb0cdb602a9104ee044df2edbc8fcb01e5d14531 /src/wasm/wasm-binary.cpp | |
parent | f8e1622bf0835dec2bb97bcb73281d34dbde4e2d (diff) | |
download | binaryen-b1c5a007f3986c11916e8ac4a84c41c01d5e04bb.tar.gz binaryen-b1c5a007f3986c11916e8ac4a84c41c01d5e04bb.tar.bz2 binaryen-b1c5a007f3986c11916e8ac4a84c41c01d5e04bb.zip |
[NFC] Rename {F32,F64}NearestInt to {F32,F64}Nearest (#7089)
Rename the opcode values in wasm-binary.h to better match the names of
the corresponding instructions. This also makes these names match the
scheme used by the rest of the basic unary operations, allowing for more
macro use in the binary reader.
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 7ebb401c1..82ac422ea 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -3097,11 +3097,7 @@ Result<> WasmBinaryReader::readInst() { UNARY_FLOAT(Abs); UNARY_FLOAT(Ceil); UNARY_FLOAT(Floor); - // UNARY_FLOAT(NearestInt); - case BinaryConsts::F32NearestInt: - return builder.makeUnary(NearestFloat32); - case BinaryConsts::F64NearestInt: - return builder.makeUnary(NearestFloat64); + UNARY_FLOAT(Nearest); UNARY_FLOAT(Sqrt); case BinaryConsts::F32UConvertI32: |