[TableGen] Set tied to operand custom flag if current operand has tied operand.

This commit is contained in:
yanming 2023-07-07 12:38:53 +08:00
parent f5df45650f
commit bd1c51d245
1 changed files with 6 additions and 0 deletions

View File

@ -409,6 +409,12 @@ static void ParseCustomConstraint(StringRef CStr, CGIOperandList &Ops,
"15] for custom constraint: '" +
CStr + "'");
int TiedFlatOp =
Ops[Op.first].Constraints[Op.second].getConstraint(MCOI::TIED_TO);
if (TiedFlatOp != -1)
Op = Ops.getSubOperandNumber(TiedFlatOp);
// Build the string for the operand
if (Ops[Op.first].Constraints[Op.second].isCustom())
PrintFatalError(Rec->getLoc(),