[Mlir-commits] [mlir] [mlir] Add FP software implementation lowering pass: `arith-to-apfloat` (PR #166618)
Renato Golin
llvmlistbot at llvm.org
Mon Nov 10 02:31:03 PST 2025
rengolin wrote:
> > what if we add a proper soft-float implementation, what would be the runtime footprint, given it will be mostly unused?
>
> Haven't thought about it much, but if we would want this to work platform-independently (i.e., also on GPU, etc.), we could reimplement what APFloat is doing with `arith` dialect ops: a lot of bit-level manipulation (shifting, etc.).
That was just a side point about binary sizes and build complexity, which can quickly be fixed with some CMake magic.
https://github.com/llvm/llvm-project/pull/166618
More information about the Mlir-commits
mailing list