aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
diff options
context:
space:
mode:
authorPaul Walker <paul.walker@arm.com>2025-10-08 10:58:17 +0100
committerGitHub <noreply@github.com>2025-10-08 10:58:17 +0100
commitff9cdbdb1af25d77014707754e8d4ec72f4b75dd (patch)
treedc9a05faa3f8c3c8fa19a5e9e493dab2afda5ed8 /llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
parentad00610831164b22e936aba010a96d46beb497d8 (diff)
downloadllvm-ff9cdbdb1af25d77014707754e8d4ec72f4b75dd.zip
llvm-ff9cdbdb1af25d77014707754e8d4ec72f4b75dd.tar.gz
llvm-ff9cdbdb1af25d77014707754e8d4ec72f4b75dd.tar.bz2
[Clang][Sema] Extend test coverage for SVE/SME builtin usage. (#156908)
Adds SEMA tests to verify correct SVE/SME builtin usage based on the calling function's type (i.e. normal, streaming or streaming compatible). For invalid uses the tests verify the expected diagnostic is emitted. This exposed an issue whereby some builtins are incorrectly callable by streaming compatible functions, which this PR fixes. The tests are autogenerated based on the builtin definitions (e.g. arm_sve.td). This is achieved by extending SVEEmitter, which can now emit a JSON file containing builtin usage information that can be fed to aarch64_builtins_test_generator.py that is also part of this PR. Everything currently in `clang/test/Sema/AArch64` is the result of: ``` clang/utils/aarch64_builtins_test_generator.py --gen-streaming-guard-tests <LLVM_BUILD_DIR>/tools/clang/include/clang/Basic/arm_sve_builtins.json --out-dir clang/test/Sema/AArch64/ clang/utils/aarch64_builtins_test_generator.py --gen-streaming-guard-tests <LLVM_BUILD_DIR>/tools/clang/include/clang/Basic/arm_sme_builtins.json --out-dir clang/test/Sema/AArch64/ ```
Diffstat (limited to 'llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp')
0 files changed, 0 insertions, 0 deletions