diff options
author | Paul Walker <paul.walker@arm.com> | 2025-05-06 11:57:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 11:57:04 +0100 |
commit | cb9683fad12101417a46b35452cb23dfb7c6c367 (patch) | |
tree | 1f81516c27033ba633349d86a72e05d9d69c592e /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | dad316275689c8ff9b3051c98a842d0bb1226368 (diff) | |
download | llvm-cb9683fad12101417a46b35452cb23dfb7c6c367.zip llvm-cb9683fad12101417a46b35452cb23dfb7c6c367.tar.gz llvm-cb9683fad12101417a46b35452cb23dfb7c6c367.tar.bz2 |
[Clang][Flang][Driver] Fix target parsing for -fveclib=libmvec option. (#138288)
There are various places where the -fveclib option is parsed to
determine whether its value is correct for the target. Unfortunately
these places assume case-insensitivity and subsequently use "LIBMVEC"
where the driver mandates "libmvec", thus rendering the diagnosistic
useless.
This PR corrects the naming along with similar incorrect uses within the
test files.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index d6ba644..28f2f69 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -195,7 +195,7 @@ static bool parseVectorLibArg(Fortran::frontend::CodeGenOptions &opts, std::optional<VectorLibrary> val = llvm::StringSwitch<std::optional<VectorLibrary>>(arg->getValue()) .Case("Accelerate", VectorLibrary::Accelerate) - .Case("LIBMVEC", VectorLibrary::LIBMVEC) + .Case("libmvec", VectorLibrary::LIBMVEC) .Case("MASSV", VectorLibrary::MASSV) .Case("SVML", VectorLibrary::SVML) .Case("SLEEF", VectorLibrary::SLEEF) |