summaryrefslogtreecommitdiff
path: root/mlir/lib/Target/LLVM/ModuleToObject.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@igalia.com>2023-08-08 13:56:32 +0100
committerAlex Bradbury <asb@igalia.com>2023-08-08 13:56:32 +0100
commitf7dbc8501f430d298bbc70c488fbe1615fa0f147 (patch)
tree240efc28cc1ffb428061f10f90d9e673405b649c /mlir/lib/Target/LLVM/ModuleToObject.cpp
parent5e673481584c3eacff0104bac352066e34402d91 (diff)
[LegalizeTypes][RISCV] Support libcalls for fpto{s,u}i of bfloat by extending to f32 first
As there is no direct bf16 libcall for these conversions, extend to f32 first. This patch includes a tiny refactoring to pull out equivalent logic in ExpandIntRes_XROUND_XRINT so it can be reused in ExpandIntRes_FP_TO_{S,U}INT. This patch also demonstrates incorrect codegen for RV32 without zfbfmin for the newly enabled tests. As it doesn't introduce that incorrect codegen (caused by the assumption that 'TypeSoftPromoteHalf' is only used for f16 types), a fix will be added in a follow-up (D157287). Differential Revision: https://reviews.llvm.org/D156990
Diffstat (limited to 'mlir/lib/Target/LLVM/ModuleToObject.cpp')
0 files changed, 0 insertions, 0 deletions