aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
diff options
context:
space:
mode:
authorHsiangkai Wang <kai.wang@sifive.com>2021-09-29 15:34:57 +0800
committerHsiangkai Wang <kai.wang@sifive.com>2021-10-12 10:47:55 +0800
commit97f0c63783f52389bd8842df205379ceade7a89d (patch)
tree5338fb7ffb330a8e1da837fc5f9b71959558f73b /llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
parent6641d29b70993bce6dbd7e0e0f1040753d38842f (diff)
downloadllvm-97f0c63783f52389bd8842df205379ceade7a89d.zip
llvm-97f0c63783f52389bd8842df205379ceade7a89d.tar.gz
llvm-97f0c63783f52389bd8842df205379ceade7a89d.tar.bz2
[RISCV] Define _m intrinsics as builtins, instead of macros.
In the original design, we levarage _mt intrinsics to define macros for _m intrinsics. Such as, ``` __builtin_rvv_vadd_vv_i8m1_mt((vbool8_t)(op0), (vint8m1_t)(op1), (vint8m1_t)(op2), (vint8m1_t)(op3), (size_t)(op4), (size_t)VE_TAIL_AGNOSTIC) ``` However, we could not define generic interface for mask intrinsics any more due to clang_builtin_alias only accepts clang builtins as its argument. In the example, ``` __rvv_overloaded __attribute__((clang_builtin_alias(__builtin_rvv_vadd_vv_i8m1_mt))) vint8m1_t vadd(vbool8_t op0, vint8m1_t op1, vint8m1_t op2, vint8m1_t op3, size_t op4, size_t op5); ``` op5 is the tail policy argument. When users want to use vadd generic interface for masked vector add, they need to specify tail policy in the previous design. In this patch, we define _m intrinsics as clang builtins to solve the problem. Differential Revision: https://reviews.llvm.org/D110684
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp')
0 files changed, 0 insertions, 0 deletions