File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -527,17 +527,13 @@ class RISCVVPseudo {
527527 Instruction BaseInstr = !cast<Instruction>(PseudoToVInst<NAME>.VInst);
528528 // SEW = 0 is used to denote that the Pseudo is not SEW specific (or unknown).
529529 bits<8> SEW = 0;
530- bit IsNeeded = !cond(
531- !ne(!find(NAME, "PseudoVMCLR"), -1): 0,
532- !ne(!find(NAME, "PseudoVMSET"), -1): 0,
533- true: 1
534- );
530+ bit NeedBeInPseudoTable = 1;
535531}
536532
537533// The actual table.
538534def RISCVVPseudosTable : GenericTable {
539535 let FilterClass = "RISCVVPseudo";
540- let FilterClassField = "IsNeeded ";
536+ let FilterClassField = "NeedBeInPseudoTable ";
541537 let CppTypeName = "PseudoInfo";
542538 let Fields = [ "Pseudo", "BaseInstr" ];
543539 let PrimaryKey = [ "Pseudo" ];
@@ -1004,6 +1000,8 @@ class VPseudoNullaryPseudoM<string BaseInst> :
10041000 // BaseInstr is not used in RISCVExpandPseudoInsts pass.
10051001 // Just fill a corresponding real v-inst to pass tablegen check.
10061002 let BaseInstr = !cast<Instruction>(BaseInst);
1003+ // We exclude them from RISCVVPseudoTable.
1004+ let NeedBeInPseudoTable = 0;
10071005}
10081006
10091007class VPseudoUnaryNoMask<DAGOperand RetClass,
You can’t perform that action at this time.
0 commit comments