diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-03-16 13:13:41 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-03-16 13:13:41 +0000 |
commit | bf5b80f5f9a858a9550158a75d46bc0122739cd3 (patch) | |
tree | 5d635510c6f94741e149e209a41ea74ced76adbe /llvm/lib/Target/MSP430/MSP430ISelLowering.h | |
parent | ace93f3a9093683fed8e63c8f65e01027ef27f13 (diff) | |
download | bcm5719-llvm-bf5b80f5f9a858a9550158a75d46bc0122739cd3.tar.gz bcm5719-llvm-bf5b80f5f9a858a9550158a75d46bc0122739cd3.zip |
Make each target map all inline assembly memory constraints to InlineAsm::Constraint_m. NFC.
Summary:
This is instead of doing this in target independent code and is the last
non-functional change before targets begin to distinguish between
different memory constraints when selecting code for the ISD::INLINEASM
node.
Next, each target will individually move away from the idea that all
memory constraints behave like 'm'.
Subscribers: jholewinski, llvm-commits
Differential Revision: http://reviews.llvm.org/D8173
llvm-svn: 232373
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430ISelLowering.h')
-rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelLowering.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.h b/llvm/lib/Target/MSP430/MSP430ISelLowering.h index 9266c3b19df..68868b6470c 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelLowering.h +++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.h @@ -102,6 +102,12 @@ namespace llvm { const std::string &Constraint, MVT VT) const override; + unsigned getInlineAsmMemConstraint( + const std::string &ConstraintCode) const override { + // FIXME: Map different constraints differently. + return InlineAsm::Constraint_m; + } + /// isTruncateFree - Return true if it's free to truncate a value of type /// Ty1 to type Ty2. e.g. On msp430 it's free to truncate a i16 value in /// register R15W to i8 by referencing its sub-register R15B. |