[llvm] [LLVM][VecLib] Refactor LIBMVEC integration to be target neutral. (PR #138262)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Fri May 2 06:21:02 PDT 2025
================
@@ -29,7 +29,7 @@ static cl::opt<TargetLibraryInfoImpl::VectorLibrary> ClVectorLibrary(
"Accelerate framework"),
clEnumValN(TargetLibraryInfoImpl::DarwinLibSystemM,
"Darwin_libsystem_m", "Darwin libsystem_m"),
- clEnumValN(TargetLibraryInfoImpl::LIBMVEC_X86, "LIBMVEC-X86",
+ clEnumValN(TargetLibraryInfoImpl::LIBMVEC, "LIBMVEC",
----------------
MacDue wrote:
Hmm. There actually seems to be a bug in clang's checks as it's checking for "LIBMVEC-X86" before this remapping, it should actually output `err_drv_unsupported_opt_for_target` for LIBMVEC on AArch64. I think once you rename all uses of `LIBMVEC-X86` to `LIBMVEC` in clang that error will start working.
https://github.com/llvm/llvm-project/pull/138262
More information about the llvm-commits
mailing list