This patch added support for the intrinsics llvm.ppc.dcbfps and llvm.ppc.dcbstps.
dcbfps and dcbstps are actually extended mnemonics of dcbf.
dcbfps RA,RB ---> dcbf RA,RB,4
dcbstps RA,RB ---> dcbf RA,RB,6
Paths
| Differential D91323
[PowerPC] Add support for intrinsics dcbfps and dcbstps in P10. ClosedPublic Authored by Esme on Nov 12 2020, 12:23 AM.
Details
Summary This patch added support for the intrinsics llvm.ppc.dcbfps and llvm.ppc.dcbstps. dcbfps RA,RB ---> dcbf RA,RB,4
Diff Detail
Event TimelineComment Actions This LGTM.
This revision is now accepted and ready to land.Nov 12 2020, 3:29 PM
Comment Actions According to ISA,
it is appropriate to set IntrReadMem, IntrArgMemOnly for these dcbf_ instructions. Comment Actions @steven.zhang I still have some doubts about the properties setting. According to the behavior described by ISA, it also includes the write operation?
I think it would be a safer way to only set IntrArgMemOnly. This revision was landed with ongoing or failed builds.Dec 6 2020, 9:20 PM Closed by commit rG28fdeea9522f: [PowerPC] Add support for intrinsics dcbfps and dcbstps in P10. (authored by Esme). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 307235 llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/dcbf-p10.ll
|
I didn't go into the detail of the definition of the intrinsic. But could you please double confirm if we need to set IntrWriteMem, IntrArgMemOnly as it seems that dbcf stuff is trying to write memory.