Skip to content

Commit 65d069b

Browse files
Added Op template arg to pass bit operator
1 parent 3bfd7fc commit 65d069b

File tree

2 files changed

+95
-351
lines changed

2 files changed

+95
-351
lines changed

clang/lib/DPCT/RulesAsm/AsmMigration.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,12 +1642,13 @@ class SYCLGen : public SYCLGenBase {
16421642

16431643
MulType = ABType;
16441644
OS() << MapNames::getDpctNamespace() << "experimental::matrix::mma";
1645-
if (!MatrixOp.empty()) {
1646-
OS() << "_" << MatrixOp;
1647-
}
16481645
OS() << "<";
16491646
OS() << M << ", " << N << ", " << K << ", ";
1650-
OS() << MulType << ">(";
1647+
OS() << MulType;
1648+
if (!MatrixOp.empty()) {
1649+
OS() << ", sycl::bit_" << MatrixOp << "<>";
1650+
}
1651+
OS() << ">(";
16511652

16521653
// Add D matrix address values to store the MAD result
16531654
for (unsigned Inst = 0; Inst != DMatVE->getNumElements(); ++Inst) {

0 commit comments

Comments
 (0)