projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4e2e18
)
Implement CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll
author
Chris Lattner
<sabre@nondot.org>
Sun, 25 Mar 2007 02:18:14 +0000
(
02:18
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 25 Mar 2007 02:18:14 +0000
(
02:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35324
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 7436c1747adf03d76253e3a59a49404b0948a6c0..7433a79f9f4b0fd75831e12771310a9e0e79ebcb 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/
lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@
-1852,7
+1852,10
@@
TargetLowering::getConstraintType(const std::string &Constraint) const {
return C_Other;
}
}
- // TODO: Handle registers.
+
+ if (Constraint.size() > 1 && Constraint[0] == '{' &&
+ Constraint[Constraint.size()-1] == '}')
+ return C_Register;
return C_Unknown;
}