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/PowerPC/PPCISelLowering.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/PowerPC/PPCISelLowering.h')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.h b/llvm/lib/Target/PowerPC/PPCISelLowering.h index ac090acdf88..497b62ebfca 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.h +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.h @@ -519,6 +519,12 @@ namespace llvm { std::vector<SDValue> &Ops, SelectionDAG &DAG) const override; + unsigned getInlineAsmMemConstraint( + const std::string &ConstraintCode) const override { + // FIXME: Map different constraints differently. + return InlineAsm::Constraint_m; + } + /// isLegalAddressingMode - Return true if the addressing mode represented /// by AM is legal for this target, for a load/store of the specified type. bool isLegalAddressingMode(const AddrMode &AM, Type *Ty) const override; |

