@@ -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
@@ -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
@@ -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
@@ -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
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff f1226eea52e21b6325cf24cf0d7ccd6a517baee5
4fdcf97e7fc1f60ab851045a16c827ecfe2e5d31 --
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
@@ -1279,6 +1281,213 @@ void
TargetLibraryInfoImpl::addVectorizableFunctionsFromVecLib(
}
break;
}
+ case AMDLIBM: {
+#define FIXED(NL) ElementCount::getFixed(NL)
+const VecDesc VecFuncs[] = {
phoebewang wrote:
Move them to `VecFuncs.def`?
htt
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/