[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:08:51 PDT 2021


HsiangKai added a comment.

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))


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