This patch implements the vec_gen[b|h|w|d|q]m function prototypes in altivec.h in order
to utilize the move to VSR with mask instructions introduced in Power10.
Depends on D82675.
Paths
| Differential D82725
[PowerPC] Implement Move to VSR Mask builtins in LLVM/Clang ClosedPublic Authored by amyk on Jun 28 2020, 12:32 PM.
Details
Summary This patch implements the vec_gen[b|h|w|d|q]m function prototypes in altivec.h in order Depends on D82675.
Diff Detail
Event TimelineHerald added subscribers: shchenz, hiraditya, nemanjai. · View Herald TranscriptJun 28 2020, 12:32 PM amyk retitled this revision from [PowerPC][Power10] Implement Move to VSR Mask builtins in LLVM/Clang to [PowerPC] Implement Move to VSR Mask builtins in LLVM/Clang.Jul 27 2020, 3:58 PM steven.zhang added inline comments.
This revision is now accepted and ready to land.Sep 17 2020, 4:27 PM This revision was landed with ongoing or failed builds.Sep 18 2020, 4:16 PM Closed by commit rG37e7673c21af: [PowerPC] Implement Move to VSR Mask builtins in LLVM/Clang (authored by amyk). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 283113 clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Headers/altivec.h
clang/test/CodeGen/builtins-ppc-p10vector.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/p10-vector-mask-ops.ll
|
Can we handle this inside the .td ? i.e. change the definition of the instr as:
And add the missing u8imm64 as what we did for u16imm64 ?