[Mlir-commits] [mlir] [TOSA] Usage of 32bit integer for 'index to float' in rfft2d (PR #75098)

Jakub Kuderski llvmlistbot at llvm.org
Tue Dec 12 07:45:58 PST 2023


kuhar wrote:

> If this is due to conversion targets not being able to handle 64bit integer arithmetic "easily" or at all (e.g. SPIRV) then I think that this might require more discussion. Not sure how we can handle or if we need a more immediate casting operator from index to floating point that can be lowered later on as per target needs.

FYI, I have patterns designed with this set of constraints in mind: https://github.com/llvm/llvm-project/blob/32532c2bbedc6e15eb3eae65cb6049e196cef9ad/mlir/lib/Dialect/Arith/Transforms/IntNarrowing.cpp#L396-L423

https://github.com/llvm/llvm-project/pull/75098


More information about the Mlir-commits mailing list