This patch adds the following built-ins:
builtin_vsx_build_pair
builtin_mma_build_acc
Paths
| Differential D107647
[PowerPC] MMA - Add __builtin_vsx_build_pair and __builtin_mma_build_acc builtins ClosedPublic Authored by saghir on Aug 6 2021, 7:44 AM.
Details
Summary This patch adds the following built-ins: builtin_vsx_build_pair
Diff Detail
Event TimelineHerald added subscribers: kbarton, hiraditya, nemanjai and 2 others. · View Herald TranscriptAug 6 2021, 7:44 AM Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 6 2021, 7:44 AM saghir retitled this revision from Remove depracated built-ins for MMA and replace with new built-ins to [PowerPC] MMA - Remove deprecated built-ins and add new built-ins.Aug 6 2021, 7:50 AM This revision is now accepted and ready to land.Aug 10 2021, 9:44 AM Comment Actions Actually we should not be removing the deprecated bultins. Just need to add the new ones. This revision now requires changes to proceed.Aug 10 2021, 11:35 AM Comment Actions
Yes, and also the semantics are different. saghir retitled this revision from [PowerPC] MMA - Remove deprecated built-ins and add new built-ins to [PowerPC] MMA - Add __builtin_vsx_build_pair and __builtin_mma_build_acc builtins.Aug 19 2021, 10:10 AM
Comment Actions There are some questions to answer here before proceeding:
I am requesting changes until these questions are adequately addressed.
This revision now requires changes to proceed.Sep 2 2021, 4:38 AM Comment Actions LGTM other than the code can be simplified as suggested.
This revision is now accepted and ready to land.Sep 23 2021, 6:39 AM This revision was landed with ongoing or failed builds.Sep 27 2021, 5:51 PM Closed by commit rG593b074a096c: [PowerPC] MMA - Add __builtin_vsx_build_pair and __builtin_mma_build_acc… (authored by saghir). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 368109 clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins-ppc-pair-mma.c
clang/test/Sema/ppc-pair-mma-types.c
clang/test/SemaCXX/ppc-pair-mma-types.cpp
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/mma-intrinsics.ll
llvm/test/CodeGen/PowerPC/paired-vector-intrinsics.ll
|
doesn't look like we need the interm var IsLE. Just use the call directly within the if stmt.