diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-24 01:10:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-24 01:10:46 +0000 |
commit | 2b7401e28e0c3c18ef027345560f9ce5abeef4d2 (patch) | |
tree | 8e047a06888a89cfd7100683e7a24a55f0f359ab /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 5ee3e141277599df41488b965327d5c62b904860 (diff) |
Recognize memory operand codes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index c875a85c80..01887e516c 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/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; } } |