[PATCH] D153153: [AArch64][RFC][Draft] Implement __builtin_cpu_supports, compiler-rt tests.
Pavel Iliin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 16 09:42:55 PDT 2023
ilinpv created this revision.
ilinpv added reviewers: danielkiss, kristof.beyls, nemanjai, arsenm.
Herald added subscribers: Enna1, dberris.
Herald added a project: All.
ilinpv requested review of this revision.
Herald added subscribers: Sanitizers, cfe-commits, wdng.
Herald added projects: clang, Sanitizers.
The patch adds AArch64 target builtin
__builtin_cpu_supports("feature1+...+featureN")
which return true if all specified CPU features in argument are detected.
Also native run aarch64 tests for compiler-rt features detection mechanism
were added.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153153
Files:
clang/include/clang/Basic/BuiltinsAArch64.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/aarch64-cpu-supports-target.c
clang/test/CodeGen/aarch64-cpu-supports.c
clang/test/Sema/aarch64-cpu-supports.c
compiler-rt/test/builtins/Unit/aarch64_cpu_features_test.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153153.532200.patch
Type: text/x-patch
Size: 10878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230616/64e0b83a/attachment.bin>
More information about the cfe-commits
mailing list