diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-26 20:27:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-26 20:27:33 +0000 |
commit | 4ca4fd48d299ff4eb14e4d1a91b182b3d902f0ac (patch) | |
tree | 629c2b3238a5562d9d8b29256726d2bc81ebb1a5 | |
parent | 0bbdc55333948ae65cbcd0ef8144820c92d012a2 (diff) | |
download | bcm5719-llvm-4ca4fd48d299ff4eb14e4d1a91b182b3d902f0ac.tar.gz bcm5719-llvm-4ca4fd48d299ff4eb14e4d1a91b182b3d902f0ac.zip |
Add a method for inline asm support.
llvm-svn: 25656
-rw-r--r-- | llvm/include/llvm/Target/TargetLowering.h | 11 |
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 // |