[PATCH] D127910: [Clang][AArch64][SME] Add vector load/store (ld1/st1) intrinsics
Sander de Smalen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 10 08:01:47 PDT 2023
sdesmalen added inline comments.
================
Comment at: clang/lib/Basic/Targets/AArch64.cpp:726
- if (Feature == "+sme") {
- HasSME = true;
----------------
Why did you remove this?
================
Comment at: clang/test/CodeGen/aarch64-sme-intrinsics/acle_sme_ld1.c:16
+//
+__attribute__((arm_streaming)) void test_svld1_hor_za8(uint32_t slice_base, svbool_t pg, const void *ptr) {
+ svld1_hor_za8(0, slice_base, 0, pg, ptr);
----------------
Hi @bryanpkc, would you be happy to remove the dependence on the attributes patch for now, so that we can move forward to review/land this patch series?
I'm thinking of doing something like:
// RUN: %clang_cc1 -DDISABLE_SME_ATTRIBUTES ....
...
#ifdef DISABLE_SME_ATTRIBUTES
#define ARM_STREAMING_ATTR
#else
#define ARM_STREAMING_ATTR __attribute__((arm_streaming))
#endif
...
ARM_STREAMING_ATTR void test_svld1_hor_za16(uint32_t slice_base, svbool_t pg, const void *ptr) {
svld1_hor_za16(0, slice_base, 0, pg, ptr);
svld1_hor_za16(1, slice_base, 7, pg, ptr);
}
With that the tests all pass, and when the attribute patches have landed we can just remove the `-DDISABLE_SME_ATTRIBUTES` from the RUN lines.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127910/new/
https://reviews.llvm.org/D127910
More information about the cfe-commits
mailing list