Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ checksums = [{
'f72d100a46a2dd9f4c870cef156604777f1bdb1841df039d14bf37b19814b9da',
'aomp-extras-rocm-6.4.1.tar.gz':
'cf20b02b1f99f506c198866ef03f2265dc355627760f82cda3878d5bc6486afc',
'ROCm-LLVM-6.4.1_llvm-project-19.0.0_fix-offload-build.patch':
'ROCm-LLVM-19.0.0_fix-ConstantFoldFP128-conversion-issue.patch':
'76fc2b0209c9e6a2d13f138b40acdab41313e979104bb66e4b1ac1aa7b4b5d03',
'ROCm-LLVM-19.0.0_fix-offload-build.patch':
'2ce1454aa3d2f50795bbc331c239f44be07f8ec836978cad130406af4340e30d',
}]

Expand All @@ -75,6 +77,7 @@ components = [
# rename the extracted directory to the one that the LLVM easyblock expects
'extract_cmd': 'tar xfz %%s && mv %%(name)s-rocm-%s %%(name)s-%%(version)s.src' % _rocm_version,
}],
'patches': ['ROCm-LLVM-19.0.0_fix-ConstantFoldFP128-conversion-issue.patch'],
'start_dir': f'llvm-project-{_llvm_version}-rocm-{_rocm_version}.src',
'bootstrap': True,
'build_lld': True,
Expand Down Expand Up @@ -107,7 +110,8 @@ components = [
'extract_cmd': 'tar xfz %%s && mv llvm-project-rocm-%s %%(name)s-%%(version)s.src' % _rocm_version,
}],
'patches': [
'ROCm-LLVM-6.4.1_llvm-project-19.0.0_fix-offload-build.patch',
'ROCm-LLVM-19.0.0_fix-offload-build.patch',
'ROCm-LLVM-19.0.0_fix-ConstantFoldFP128-conversion-issue.patch',
],
'start_dir': f'llvm-project-openmp-{_llvm_version}-rocm-{_rocm_version}.src',
'bootstrap': True,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From 6ee49080e4bb43efe7ede10bed15935853bbd434 Mon Sep 17 00:00:00 2001
From: Chen Zheng <czhengsz@cn.ibm.com>
Date: Tue, 30 Jul 2024 09:02:07 +0800
Subject: [PATCH] [NFC] fix build failure (#100993)

Fix the build failure caused by
https://github.com/llvm/llvm-project/pull/94944

Fixes https://github.com/llvm/llvm-project/issues/100296

(cherry picked from commit 40b4fd7a3e81d32b29364a1b15337bcf817659c0)
---
llvm/lib/Analysis/ConstantFolding.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index df75745645e04..ff30fece5fce9 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -1784,8 +1784,8 @@ Constant *ConstantFoldFP(double (*NativeFP)(double), const APFloat &V,
}

#if defined(HAS_IEE754_FLOAT128) && defined(HAS_LOGF128)
-Constant *ConstantFoldFP128(long double (*NativeFP)(long double),
- const APFloat &V, Type *Ty) {
+Constant *ConstantFoldFP128(float128 (*NativeFP)(float128), const APFloat &V,
+ Type *Ty) {
llvm_fenv_clearexcept();
float128 Result = NativeFP(V.convertToQuad());
if (llvm_fenv_testexcept()) {