From bc9ae377d9880a0257b9a5aaeac9b1691cc47398 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 26 Jan 2006 20:27:33 +0000 Subject: [PATCH] Add a method for inline asm support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25656 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLowering.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index e93bc2331d8..b2524d5b710 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -390,6 +390,17 @@ public: virtual bool isMaskedValueZeroForTargetNode(const SDOperand &Op, uint64_t Mask) const; + //===--------------------------------------------------------------------===// + // Inline Asm Support hooks + // + + /// getRegForInlineAsmConstraint - Given a constraint letter or register + /// name (e.g. "r" or "edx"), return a list of registers that can be used to + /// satisfy the constraint. If the constraint isn't supported, or isn't a + /// register constraint, return an empty list. + virtual std::vector + getRegForInlineAsmConstraint(const std::string &Constraint) const; + //===--------------------------------------------------------------------===// // Scheduler hooks //