summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-24 01:10:46 +0000
committerChris Lattner <sabre@nondot.org>2006-02-24 01:10:46 +0000
commit2a9e1e3e748135c21c28d700b97acd83343c597e (patch)
tree1bfaad5a96ff4f3edd8d2bd7af1db81ea0b029e2 /llvm/lib/Target/TargetLowering.cpp
parentdb3689ed091e4e8e0ab23a93fdccac07db48cceb (diff)
downloadbcm5719-llvm-2a9e1e3e748135c21c28d700b97acd83343c597e.tar.gz
bcm5719-llvm-2a9e1e3e748135c21c28d700b97acd83343c597e.zip
Recognize memory operand codes
llvm-svn: 26345
Diffstat (limited to 'llvm/lib/Target/TargetLowering.cpp')
-rw-r--r--llvm/lib/Target/TargetLowering.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp
index c875a85c805..01887e516c1 100644
--- a/llvm/lib/Target/TargetLowering.cpp
+++ b/llvm/lib/Target/TargetLowering.cpp
@@ -718,6 +718,10 @@ TargetLowering::getConstraintType(char ConstraintLetter) const {
switch (ConstraintLetter) {
default: return C_Unknown;
case 'r': return C_RegisterClass;
+ case 'm': // memory
+ case 'o': // offsetable
+ case 'V': // not offsetable
+ return C_Memory;
case 'i': // Simple Integer or Relocatable Constant
case 'n': // Simple Integer
case 's': // Relocatable Constant
@@ -728,7 +732,8 @@ TargetLowering::getConstraintType(char ConstraintLetter) const {
case 'M':
case 'N':
case 'O':
- case 'P': return C_Other;
+ case 'P':
+ return C_Other;
}
}
OpenPOWER on IntegriCloud