aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-02 01:39:10 +0000
committerChris Lattner <sabre@nondot.org>2006-11-02 01:39:10 +0000
commita74b4a3ddc0aadbcf6bf35754cf1c6d4b2d96e67 (patch)
tree33a95c1c7d299c1f9324558d62fdc3fcbd41f313
parente6ae14e1f413987f3de31a7cad1b20a7893f8cae (diff)
generalize this api
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31365 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetLowering.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index f6eb5a24e5..7d1f3e00b8 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -687,8 +687,14 @@ public:
/// getRegForInlineAsmConstraint - Given a physical register constraint (e.g.
/// {edx}), return the register number and the register class for the
- /// register. This should only be used for C_Register constraints. On error,
- /// this returns a register number of 0.
+ /// register.
+ ///
+ /// Given a register class constraint, like 'r', if this corresponds directly
+ /// to an LLVM register class, return a register of 0 and the register class
+ /// pointer.
+ ///
+ /// This should only be used for C_Register constraints. On error,
+ /// this returns a register number of 0 and a null register class pointer..
virtual std::pair<unsigned, const TargetRegisterClass*>
getRegForInlineAsmConstraint(const std::string &Constraint,
MVT::ValueType VT) const;