summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsISelLowering.h
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2015-03-16 13:13:41 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2015-03-16 13:13:41 +0000
commitbf5b80f5f9a858a9550158a75d46bc0122739cd3 (patch)
tree5d635510c6f94741e149e209a41ea74ced76adbe /llvm/lib/Target/Mips/MipsISelLowering.h
parentace93f3a9093683fed8e63c8f65e01027ef27f13 (diff)
downloadbcm5719-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/Mips/MipsISelLowering.h')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.h b/llvm/lib/Target/Mips/MipsISelLowering.h
index 9f86a43ae25..748b1ad45bf 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.h
+++ b/llvm/lib/Target/Mips/MipsISelLowering.h
@@ -503,6 +503,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;
+ }
+
bool isLegalAddressingMode(const AddrMode &AM, Type *Ty) const override;
bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override;
OpenPOWER on IntegriCloud