[llvm] [AArch64] Added feature dependencies for SME2p1 to TargetParser (PR #81860)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 04:23:00 PST 2024


Lukacma wrote:

Yes it could be like that. I was just wondering if there is not a better way than creating dummy programs and seeing if they compile. We have a test in aarch64-implied-sme-features.c which tests this nicely like this : 

`// RUN: %clang -target aarch64-linux-gnu -march=armv8-a+sme %s -### 2>&1 | FileCheck %s --check-prefix=SME-IMPLY
// SME-IMPLY: "-target-feature" "+bf16"{{.*}} "-target-feature" "+sme"`

Unfortunately this doesn't work with -cc1 and I was wondering if there is not a way to do something similiar for -cc1 that I am missing. If not I will create the dummy test.

https://github.com/llvm/llvm-project/pull/81860


More information about the llvm-commits mailing list