Skip to content

Commit 82d9f2c

Browse files
jgu222igcbot
authored andcommitted
Enforce HW conformity for BF mixed mode
Allow bf to be operands of some of insts in visa input. And let visa HWConformity to enforce conformance to HW restriction.
1 parent fe86232 commit 82d9f2c

File tree

5 files changed

+446
-125
lines changed

5 files changed

+446
-125
lines changed

visa/G4_Verifier.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ bool G4Verifier::verifyInst(G4_INST *inst)
104104
return verifyDefUseChain(inst);
105105
}
106106

107-
// feature verification
108-
verifyBFMixedMode(inst);
107+
if (passIndex == Optimizer::PI_HWConformityChk
108+
|| passIndex == Optimizer::PI_addSWSBInfo)
109+
{
110+
// feature verification. Do it twice for now.
111+
verifyBFMixedMode(inst);
112+
}
109113
}
110114
return true;
111115
}
@@ -1257,8 +1261,8 @@ void G4Verifier::verifyBFMixedMode(G4_INST* inst)
12571261
return false;
12581262
};
12591263

1260-
// Skip dpas as it has been verified separately
1261-
if (inst->isDpas())
1264+
// Skip dpas/send as it has been verified separately
1265+
if (inst->isDpas() || inst->isSend())
12621266
return;
12631267

12641268
// Skip if no BF usage

0 commit comments

Comments
 (0)