aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>2023-06-08 14:55:03 +0000
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>2023-06-26 17:42:00 +0000
commit73eecc9ca4db5730a77e7f4144d93696c9a1c5a3 (patch)
tree74ba97ecb13904b7102e9fb92755518481169dc3 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentd49caf4afc1bc460600b316f9736e01ceeebded5 (diff)
downloadllvm-73eecc9ca4db5730a77e7f4144d93696c9a1c5a3.zip
llvm-73eecc9ca4db5730a77e7f4144d93696c9a1c5a3.tar.gz
llvm-73eecc9ca4db5730a77e7f4144d93696c9a1c5a3.tar.bz2
[mlir] Convert 8-bit float types to i8
Whereas LLVM currently doesn't have any types for 8-bit floats, and whereas existing 8-bit float APIs (for instance, the AMDGCN intrinsics) take such floats as (packed) bytes, translate the MLIR 8-bit float types to i8 during LLVM lowering. In order to not special-case arith.constant for bitcasting constants to their integer form, amend the MLIR to LLVM translator to turn 8-bit float constants into i8 constants with the same value (by use of APFloat's bitcast method). This change can be reverted once LLVM has 8-bit float types. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D153160
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions