[PATCH] D100611: [RISCV] Add new attribute __clang_riscv_builtin_alias for intrinsics.
Fraser Cormack via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 20 05:29:07 PDT 2021
frasercrmck accepted this revision.
frasercrmck added a comment.
This revision is now accepted and ready to land.
LGTM. Anything else would be wondering if it can be merged/genericised with Arm somehow but that's not a blocker.
================
Comment at: clang/include/clang/Basic/AttrDocs.td:2141
+in RVV builtins, and still be recognized as clang builtins equivalent to the
+underlying name. For example, ``riscv_vector.h`` declares the function ``vget`` with
+``__attribute__((__clang_riscv_builtin_alias(__builtin_rvv_vget_i8mf8x2_i8mf8)))``.
----------------
HsiangKai wrote:
> frasercrmck wrote:
> > Is `vget` real? I can't see it in `riscv_vector.h`
> Yes, it is for Zvlsseg. I have not upstreamed it. I use `vadd` instead in the description.
Ah, great. I think `vadd`'s a good example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100611/new/
https://reviews.llvm.org/D100611
More information about the cfe-commits
mailing list