Add a method for inline asm support.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2006 20:27:33 +0000 (20:27 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Jan 2006 20:27:33 +0000 (20:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25656 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index e93bc2331d81ee8075fd257e852ae3febfb0f0fe..b2524d5b7103eb1c0b4be41835702d63d87727f5 100644 (file)
@@ -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<unsigned> 
+  getRegForInlineAsmConstraint(const std::string &Constraint) const;
+  
   //===--------------------------------------------------------------------===//
   // Scheduler hooks
   //