[PATCH] D136874: [clang][LTO] Passing vec-extabi to the Backend on AIX
Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 06:14:18 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfd448bbedce9: [clang][LTO] Passing vec-extabi to the Backend on AIX (authored by Qiongsi Wu <qiongsiwu at gmail.com>).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136874/new/
https://reviews.llvm.org/D136874
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/lto-aix.c
Index: clang/test/Driver/lto-aix.c
===================================================================
--- clang/test/Driver/lto-aix.c
+++ clang/test/Driver/lto-aix.c
@@ -27,6 +27,16 @@
// O2: "-bplugin_opt:-O2"
// O3: "-bplugin_opt:-O3"
//
+// vec-extabi option
+// RUN: %clang --target=powerpc-ibm-aix --sysroot %S/Inputs/aix_ppc_tree %s \
+// RUN: -fuse-ld=ld -flto -mabi=vec-extabi -### 2>&1 \
+// RUN: | FileCheck --check-prefix=VECEXTABI %s
+// RUN: %clang --target=powerpc-ibm-aix --sysroot %S/Inputs/aix_ppc_tree %s \
+// RUN: -fuse-ld=ld -flto -### 2>&1 | FileCheck --check-prefix=NOVECEXTABI %s
+//
+// VECEXTABI: "-bplugin_opt:-vec-extabi"
+// NOVECEXTABI-NOT: "-bplugin_opt:-vec-extabi"
+//
// Test debugging options
// RUN: %clang --target=powerpc-ibm-aix -### %s -flto -fuse-ld=ld -gdbx 2>&1 \
// RUN: | FileCheck -check-prefix=DBX %s
Index: clang/lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -599,6 +599,10 @@
options::OPT_gno_strict_dwarf, true))
CmdArgs.push_back(
Args.MakeArgString(Twine(PluginOptPrefix) + "-strict-dwarf=true"));
+
+ if (Args.getLastArg(options::OPT_mabi_EQ_vec_extabi))
+ CmdArgs.push_back(
+ Args.MakeArgString(Twine(PluginOptPrefix) + "-vec-extabi"));
}
bool UseSeparateSections =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136874.471518.patch
Type: text/x-patch
Size: 1476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221028/0fb84619/attachment.bin>
More information about the cfe-commits
mailing list