Some ACLE builtins leave out the argument to specify the predicate
pattern, which is expected to be expanded to an SV_ALL pattern.
This patch adds the flag IsAppendSVALL to append SV_ALL as the final
operand.
Paths
| Differential D77597
[SveEmitter] Add IsAppendSVALL and builtins for svptrue and svcnt[bhwd] ClosedPublic Authored by sdesmalen on Apr 6 2020, 3:14 PM.
Details Summary Some ACLE builtins leave out the argument to specify the predicate This patch adds the flag IsAppendSVALL to append SV_ALL as the final
Diff Detail
Event Timelinesdesmalen edited parent revisions, added: D78239: [SveEmitter] Add builtins for FP conversions; removed: D77596: [SveEmitter] Add IsOverloadNone flag and builtins for svpfalse and svcnt[bhwd]_pat. Comment Actionsrebased patch.
sdesmalen added inline comments.
sdesmalen retitled this revision from [SveEmitter] Add ExpandOp1SVALL and builtin for svptrue to [SveEmitter] Add IsAppendSVALL and builtins for svptrue and svcnt[bhwd]. Comment Actions
sdesmalen marked 2 inline comments as done. Comment Actions
This revision is now accepted and ready to land.Apr 24 2020, 12:11 PM Closed by commit rG3817ca7dbf8d: [SveEmitter] Add IsAppendSVALL and builtins for svptrue and svcnt[bhwd] (authored by sdesmalen). · Explain WhyApr 26 2020, 4:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 260160 clang/include/clang/Basic/TargetBuiltins.h
clang/include/clang/Basic/arm_sve.td
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cntb.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cntd.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cnth.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cntw.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ptrue.c
|
The Ops.size() <= 1 seems to return the same result for all the intrinsics you're implementing now. Does it become relevant later?