[clang] [flang] [llvm] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
rohitaggarwal007 wrote: @kiranktp @paulwalker-arm Can you please merge this PR in main on my behalf? I don't have the write permission. Thank you https://github.com/llvm/llvm-project/pull/140544 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [flang] [llvm] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
@@ -389,7 +389,7 @@ ENUM_CODEGENOPT(Inlining, InliningMethod, 2, NormalInlining) VALUE_CODEGENOPT(InlineMaxStackSize, 32, UINT_MAX) // Vector functions library to use. -ENUM_CODEGENOPT(VecLib, llvm::driver::VectorLibrary, 3, llvm::driver::VectorLibrary::NoLibrary) +ENUM_CODEG

[clang] [flang] [llvm] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 updated https://github.com/llvm/llvm-project/pull/140544 >From 4769d05876f3d7f4a335c10e51fb20e3c923e270 Mon Sep 17 00:00:00 2001 From: Rohit Aggarwal Date: Mon, 19 May 2025 19:25:52 +0530 Subject: [PATCH 1/5] [Clang][Flang][Driver] Fix target parsing for -fv

[clang] [flang] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
@@ -389,7 +389,7 @@ ENUM_CODEGENOPT(Inlining, InliningMethod, 2, NormalInlining) VALUE_CODEGENOPT(InlineMaxStackSize, 32, UINT_MAX) // Vector functions library to use. -ENUM_CODEGENOPT(VecLib, llvm::driver::VectorLibrary, 3, llvm::driver::VectorLibrary::NoLibrary) +ENUM_CODEG

[clang] [flang] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
@@ -5844,7 +5844,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Triple.getArch() != llvm::Triple::x86_64) D.Diag(diag::err_drv_unsupported_opt_for_target) << Name << Triple.getArchName(); -} else if (Name == "libmvec") { +

[clang] [flang] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
rohitaggarwal007 wrote: > @rohitaggarwal007 please can you edit the summary to briefly describe the fix Done, Update the summary. https://github.com/llvm/llvm-project/pull/140544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [flang] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 edited https://github.com/llvm/llvm-project/pull/140544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Clang][Driver][fveclib] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-20 Thread Rohit Aggarwal via cfe-commits
rohitaggarwal007 wrote: @tarunprabhu @florianhumblot @alexey-bataev @RKSimon @phoebewang Please review the pull request. Thanks https://github.com/llvm/llvm-project/pull/140544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [flang] [Clang][Flang][Driver] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-19 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 updated https://github.com/llvm/llvm-project/pull/140544 >From 4769d05876f3d7f4a335c10e51fb20e3c923e270 Mon Sep 17 00:00:00 2001 From: Rohit Aggarwal Date: Mon, 19 May 2025 19:25:52 +0530 Subject: [PATCH 1/2] [Clang][Flang][Driver] Fix target parsing for -fv

[clang] [Clang][Flang][Driver] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-19 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 created https://github.com/llvm/llvm-project/pull/140544 Handle some cases for target parsing for -fveclib=AMDLIBM option >From 4769d05876f3d7f4a335c10e51fb20e3c923e270 Mon Sep 17 00:00:00 2001 From: Rohit Aggarwal Date: Mon, 19 May 2025 19:25:52 +0530 Subje

[clang] [Clang][Flang][Driver] Fix target parsing for -fveclib=AMDLIBM option (PR #140544)

2025-05-19 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 updated https://github.com/llvm/llvm-project/pull/140544 >From 4769d05876f3d7f4a335c10e51fb20e3c923e270 Mon Sep 17 00:00:00 2001 From: Rohit Aggarwal Date: Mon, 19 May 2025 19:25:52 +0530 Subject: [PATCH] [Clang][Flang][Driver] Fix target parsing for -fvecli

[llvm] [clang] Adding support of AMDLIBM vector library (PR #78560)

2024-01-30 Thread Rohit Aggarwal via cfe-commits
@@ -129,7 +129,8 @@ class TargetLibraryInfoImpl { MASSV,// IBM MASS vector library. SVML, // Intel short vector math library. SLEEFGNUABI, // SLEEF - SIMD Library for Evaluating Elementary Functions. -ArmPL// Arm Performance Libra

[llvm] [clang] Adding support of AMDLIBM vector library (PR #78560)

2024-01-30 Thread Rohit Aggarwal via cfe-commits
@@ -1279,6 +1281,213 @@ void TargetLibraryInfoImpl::addVectorizableFunctionsFromVecLib( } break; } + case AMDLIBM: { +#define FIXED(NL) ElementCount::getFixed(NL) +const VecDesc VecFuncs[] = { rohitaggarwal007 wrote: done https://github.com/ll

[llvm] [clang] Adding support of AMDLIBM vector library (PR #78560)

2024-01-30 Thread Rohit Aggarwal via cfe-commits
@@ -0,0 +1,332 @@ +; RUN: opt -vector-library=AMDLIBM -passes=inject-tli-mappings,loop-vectorize -S < %s | FileCheck %s + +; Test to verify that when math headers are built with +; __FINITE_MATH_ONLY__ enabled, causing use of ___finite +; function versions, vectorization can map

[llvm] [clang] Adding support of AMDLIBM vector library (PR #78560)

2024-01-30 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 updated https://github.com/llvm/llvm-project/pull/78560 >From d2e001b9f6b174b6313f99c4a094ab3714548806 Mon Sep 17 00:00:00 2001 From: Rohit Aggarwal Date: Thu, 18 Jan 2024 14:03:50 +0530 Subject: [PATCH 1/2] Adding support of AMDLIBM vector library --- clan

[clang] [llvm] Adding support of AMDLIBM vector library (PR #78560)

2024-01-19 Thread Rohit Aggarwal via cfe-commits
@@ -3190,10 +3190,10 @@ def fno_experimental_isel : Flag<["-"], "fno-experimental-isel">, Group, - Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,none">, + Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM,none">, -

[llvm] [clang] Adding support of AMDLIBM vector library (PR #78560)

2024-01-18 Thread Rohit Aggarwal via cfe-commits
rohitaggarwal007 wrote: @florianhumblot @alexey-bataev @RKSimon @phoebewang Please review the pull request. https://github.com/llvm/llvm-project/pull/78560 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] [llvm] Adding support of AMDLIBM vector library (PR #78560)

2024-01-18 Thread Rohit Aggarwal via cfe-commits
https://github.com/rohitaggarwal007 created https://github.com/llvm/llvm-project/pull/78560 Hi, AMD has it's own implementation of vector calls. This patch include the changes to enable the use of AMD's math library using -fveclib=AMDLIBM. >From d2e001b9f6b174b6313f99c4a094ab3714548806 Mon