[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 20 01:27:14 PST 2025
================
@@ -255,4 +255,9 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) {
}
setLibcallName(RTLIB::MULO_I128, nullptr);
}
+
+ if (TT.isSystemZ()) {
+ setLibcallName(RTLIB::FPROUND_F32_F16, "__truncsfhf2");
+ setLibcallName(RTLIB::FPEXT_F16_F32, "__extendhfsf2");
+ }
----------------
nikic wrote:
Since https://github.com/llvm/llvm-project/commit/cc539138acf742f53ef455147182a8de11980a02 these are the defaults, so you don't need to reset them at all.
https://github.com/llvm/llvm-project/pull/109164
More information about the cfe-commits
mailing list