Keep track of *which* input constraint matches an output

constraint.  Reject asms where an output has multiple
input constraints tied to it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2008-10-17 16:47:46 +00:00
parent 58f15c482a
commit 6bdcda3d3e
5 changed files with 25 additions and 14 deletions
+3 -3
View File
@@ -1962,9 +1962,9 @@ getRegForInlineAsmConstraint(const std::string &Constraint,
//===----------------------------------------------------------------------===//
// Constraint Selection.
/// isMatchingConstraint - Return true of this is an input operand that is a
/// matching constraint like "4".
bool TargetLowering::AsmOperandInfo::isMatchingConstraint() const {
/// isMatchingInputConstraint - Return true of this is an input operand that is
/// a matching constraint like "4".
bool TargetLowering::AsmOperandInfo::isMatchingInputConstraint() const {
assert(!ConstraintCode.empty() && "No known constraint!");
return isdigit(ConstraintCode[0]);
}