https://github.com/tblah updated https://github.com/llvm/llvm-project/pull/71734
>From ac9c18ef7d286147fd1ae4a49efe343644d2ccd1 Mon Sep 17 00:00:00 2001
From: Tom Eccles
Date: Tue, 7 Nov 2023 18:55:20 +
Subject: [PATCH 1/4] [flang] add fveclib flag
-fveclib= allows users to choose a vectori
@@ -0,0 +1,13 @@
+! test that -fveclib= is passed to the backend
+! -target aarch64 so that ArmPL is available
+! RUN: %flang -S -target aarch64-unknown-linux-gnu -mcpu=neoverse-v1 -Ofast
-fveclib=ArmPL -o - %s | FileCheck %s
+
tblah wrote:
-fveclib should work
@@ -111,7 +111,7 @@ int main(int argc, const char **argv) {
auto Files = llvm::makeIntrusiveRefCnt(FileSystemOptions(),
OFS);
- auto Driver = std::make_unique(
+ auto Driver = std::make_unique(
tblah wrote:
The file imports both the `clang` and `llvm` n
@@ -0,0 +1,13 @@
+! test that -fveclib= is passed to the backend
+! -target aarch64 so that ArmPL is available
+! RUN: %flang -S -target aarch64-unknown-linux-gnu -mcpu=neoverse-v1 -Ofast
-fveclib=ArmPL -o - %s | FileCheck %s
+
kiranchandramohan wrote:
Will this
@@ -851,11 +851,10 @@ getOutputStream(CompilerInstance &ci, llvm::StringRef
inFile,
/// \param [in] act Backend act to run (assembly vs machine-code generation)
/// \param [in] llvmModule LLVM module to lower to assembly/machine-code
/// \param [out] os Output stream to emit t
llvmbot wrote:
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clang-driver
Author: Tom Eccles (tblah)
Changes
-fveclib= allows users to choose a vectorized libm so that loops containing
math functions are vectorized.
This is implemented as much as possible in the same way as in clang. T
https://github.com/tblah created https://github.com/llvm/llvm-project/pull/71734
-fveclib= allows users to choose a vectorized libm so that loops containing
math functions are vectorized.
This is implemented as much as possible in the same way as in clang. The driver
test in veclib.f90 is copi