From bf5b80f5f9a858a9550158a75d46bc0122739cd3 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Mon, 16 Mar 2015 13:13:41 +0000 Subject: 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 --- llvm/lib/Target/Mips/MipsISelLowering.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/Target/Mips/MipsISelLowering.h') 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 &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; -- cgit v1.2.3