llvm.org GIT mirror llvm / 0555122
Match TargetInstrInfo changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32107 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
301301 unsigned FlatOpNo = I->getFlattenedOperandNumber(SrcOp);
302302 // Build the string for the operand.
303303 std::string OpConstraint =
304 "((" + utostr(FlatOpNo) + " << 16) | (1 << TargetInstrInfo::TIED_TO))";
304 "((" + utostr(FlatOpNo) + " << 16) | (1 << TOI::TIED_TO))";
305305
306306
307307 if (!I->OperandList[DestOp.first].Constraints[DestOp.second].empty())
421421 if (!OperandList[1].Constraints[0].empty())
422422 throw R->getName() + ": cannot use isTwoAddress property: instruction "
423423 "already has constraint set!";
424 OperandList[1].Constraints[0] =
425 "((0 << 16) | (1 << TargetInstrInfo::TIED_TO))";
424 OperandList[1].Constraints[0] = "((0 << 16) | (1 << TOI::TIED_TO))";
426425 }
427426
428427 // Any operands with unset constraints get 0 as their constraint.