diff options
author | Kelvin Li <kli@ca.ibm.com> | 2023-07-26 16:05:56 -0400 |
---|---|---|
committer | Kelvin Li <kli@ca.ibm.com> | 2023-08-04 17:11:30 -0400 |
commit | 00769d69fbaa39ecdcbbaf826a35ad999bdc951e (patch) | |
tree | 7339a4ea24c0993d7bcb3e226e5b8f6b36e4b80e /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | e21b1dd9cc5316c00216ba54f899f67fe473ab33 (diff) | |
download | llvm-00769d69fbaa39ecdcbbaf826a35ad999bdc951e.zip llvm-00769d69fbaa39ecdcbbaf826a35ad999bdc951e.tar.gz llvm-00769d69fbaa39ecdcbbaf826a35ad999bdc951e.tar.bz2 |
[flang] Add -fppc-native-vector-element-order option to control the element order in PowerPC vector types
This patch also adds a LIT test for the vec_cvf intrinsic that
can be affected by the option.
Co-authored-by: Mark Danial <Mark.Danial@ibm.com>
Co-authored-by: Daniel Chen <cdchen@ca.ibm.com>
Differential Revision: https://reviews.llvm.org/D155852
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 90b93b2..13a4a2f 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -954,6 +954,11 @@ bool CompilerInvocation::createFromArgs( res.loweringOpts.setPolymorphicTypeImpl(true); } + // -fno-ppc-native-vector-element-order + if (args.hasArg(clang::driver::options::OPT_fno_ppc_native_vec_elem_order)) { + res.loweringOpts.setNoPPCNativeVecElemOrder(true); + } + success &= parseFrontendArgs(res.getFrontendOpts(), args, diags); parseTargetArgs(res.getTargetOpts(), args); parsePreprocessorArgs(res.getPreprocessorOpts(), args); |