[all-commits] [llvm/llvm-project] 022b3c: [Clang][RISCV] Recognize unsupport target feature ...
Piyou Chen via All-commits
all-commits at lists.llvm.org
Mon Sep 9 00:08:01 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 022b3c27e27832f27c61683095899227c26e0cca
https://github.com/llvm/llvm-project/commit/022b3c27e27832f27c61683095899227c26e0cca
Author: Piyou Chen <piyou.chen at sifive.com>
Date: 2024-09-09 (Mon, 09 Sep 2024)
Changed paths:
M clang/lib/Basic/Targets/RISCV.cpp
M clang/lib/Basic/Targets/RISCV.h
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/test/Sema/attr-target-riscv.c
Log Message:
-----------
[Clang][RISCV] Recognize unsupport target feature by supporting isValidFeatureName (#106495)
This patch makes unsupported target attributes emit a warning and ignore
the target attribute during semantic checks. The changes include:
1. Adding the RISCVTargetInfo::isValidFeatureName function.
2. Rejecting non-full-arch strings in the handleFullArchString function.
3. Adding test cases to demonstrate the warning behavior.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list