[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)
Tom Eccles via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 22 17:59:44 PDT 2024
================
@@ -203,6 +203,30 @@ void Flang::AddAArch64TargetArgs(const ArgList &Args,
}
}
+void Flang::AddPPCTargetArgs(const ArgList &Args,
+ ArgStringList &CmdArgs) const {
+ bool VecExtabi = false;
+ for (const Arg *A : Args.filtered(options::OPT_mabi_EQ)) {
----------------
tblah wrote:
Could the loop be simplified to something like this?
```
Arg *A = Args.getLastArg(options::OPT_mabi_EQ);
if (A) {
StringRef V = A->getValue();
if (V == "vec-default") {
[...]
}
```
https://github.com/llvm/llvm-project/pull/113215
More information about the cfe-commits
mailing list