summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index e93bc2331d8..b2524d5b710 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/include/llvm/Target/TargetLowering.h
@@ -391,6 +391,17 @@ public:
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
//
OpenPOWER on IntegriCloud