[PATCH] D112020: [RISCV] Use clang_builtin_alias for all RISCV vector intrinsics.
Hsiangkai Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 20 01:28:07 PDT 2021
HsiangKai added a comment.
In D112020#3074557 <https://reviews.llvm.org/D112020#3074557>, @HsiangKai wrote:
> After preprocessing, macro definitions will disappear, but function declarations will not. This is the benefit of using macro.
>
> After applying D112102 <https://reviews.llvm.org/D112102>, we could still use
>
> #define vadd_vv_i8m1(op0, op1, op2) \
> __builtin_rvv_vadd_vv((vint8m1_t)(op0), (vint8m1_t)(op1), (size_t)(op2))
Sorry for the disturbing. After removing type string in the builtin definitions, we need a function declaration in the header. Macro doesn't work.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112020/new/
https://reviews.llvm.org/D112020
More information about the cfe-commits
mailing list