Skip to content

Commit cd36069

Browse files
committed
dense math enablement
1 parent 2639dea commit cd36069

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

llvm/include/llvm/IR/IntrinsicsPowerPC.td

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,16 @@ let TargetPrefix = "ppc" in {
16441644
def int_ppc_mma_xxsetaccz :
16451645
DefaultAttrsIntrinsic<[llvm_v512i1_ty], [], [IntrNoMem]>;
16461646

1647+
def int_ppc_mma_dmsetdmrz :
1648+
DefaultAttrsIntrinsic<[llvm_v1024i1_ty], [], [IntrNoMem]>;
1649+
1650+
def int_ppc_mma_dmmr :
1651+
DefaultAttrsIntrinsic<[llvm_v1024i1_ty], [llvm_v1024i1_ty], [IntrNoMem]>;
1652+
1653+
def int_ppc_mma_dmxor :
1654+
DefaultAttrsIntrinsic<[llvm_v1024i1_ty], [llvm_v1024i1_ty,
1655+
llvm_v1024i1_ty], [IntrNoMem]>;
1656+
16471657
// MMA Reduced-Precision: Outer Product Intrinsic Definitions.
16481658
defm int_ppc_mma_xvi4ger8 :
16491659
PowerPC_MMA_ACC_PP_Intrinsic<[llvm_v16i8_ty, llvm_v16i8_ty]>;

llvm/lib/Target/PowerPC/PPCInstrFutureMMA.td

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,15 @@ let Predicates = [IsISAFuture] in {
105105
"dmxxinstfdmr256 $AT, $XBp, $P", []>;
106106

107107
def DMMR : XForm_ATB3<31, 6, 177, (outs dmr:$AT), (ins dmr:$AB),
108-
"dmmr $AT, $AB", []>;
108+
"dmmr $AT, $AB",
109+
[(set v1024i1:$AT, (int_ppc_mma_dmmr v1024i1:$AB))]>;
109110

110111
def DMXOR : XForm_ATB3<31, 7, 177, (outs dmr:$AT), (ins dmr:$ATi, dmr:$AB),
111-
"dmxor $AT, $AB", []>,
112+
"dmxor $AT, $AB",
113+
[(set v1024i1:$AT, (int_ppc_mma_dmxor v1024i1:$ATi, v1024i1:$AB))]>,
112114
RegConstraint<"$ATi = $AT">, NoEncode<"$ATi">;
113115

114116
def DMSETDMRZ : XForm_AT3<31, 2, 177, (outs dmr:$AT), (ins),
115-
"dmsetdmrz $AT", NoItinerary, []>;
117+
"dmsetdmrz $AT", NoItinerary,
118+
[(set v1024i1:$AT, (int_ppc_mma_dmsetdmrz))]>;
116119
}

0 commit comments

Comments
 (0)