[PATCH] D103228: [PoC][RISCV] Using pragma to register vector intrinsic

Kito Cheng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 8 08:00:57 PDT 2021


kito-cheng planned changes to this revision.
kito-cheng added a comment.

Update:

Send RFC[1] to cfe-dev list, and got useful feedback from OpenCL:

- OpenCL's way is the fastest way to declare builtin, since it defer until symbol look-up, however that require re-implement vector intrinsic with their new intrinsic infrastructure.
- OpenCL folks agree we (RISC-V) need some way to enable that like pragma, OpenCL are default enabled all built-in function, but RVV intrinsic are only need to import until `riscv_vector.h` included.

So my next step is investigate the OpenCL's intrinsic infrastructure to get the best performance to declare bunch of intrinsic function, it might take several weeks.
and #pragma is still required.

[1] https://lists.llvm.org/pipermail/cfe-dev/2021-June/068340.html


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103228/new/

https://reviews.llvm.org/D103228



More information about the cfe-commits mailing list