[Mlir-commits] [clang] [llvm] [mlir] [MLIR] Add f8E4M3 IEEE 754 type (PR #97118)
Alexander Pivovarov
llvmlistbot at llvm.org
Mon Jul 8 23:24:50 PDT 2024
================
@@ -460,10 +460,10 @@ class alignas(void *) Stmt {
unsigned : NumExprBits;
static_assert(
- llvm::APFloat::S_MaxSemantics < 16,
- "Too many Semantics enum values to fit in bitfield of size 4");
+ llvm::APFloat::S_MaxSemantics < 32,
+ "Too many Semantics enum values to fit in bitfield of size 5");
LLVM_PREFERRED_TYPE(llvm::APFloat::Semantics)
- unsigned Semantics : 4; // Provides semantics for APFloat construction
----------------
apivovarov wrote:
This code is from [PR-97179](https://github.com/llvm/llvm-project/pull/97179). Need to use one additional byte to store new item with id 16 (total 17 items)
https://github.com/llvm/llvm-project/pull/97118
More information about the Mlir-commits
mailing list