diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-11-02 01:39:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-11-02 01:39:10 +0000 |
| commit | 454b5c9bcef9e406e17f533e45b7dd1b3f0392bf (patch) | |
| tree | e8a2471b0f2b97609f9237ebcbffa5f88feb1514 | |
| parent | 93cdd149f7f5787b80ff24fe133048aba357d0ad (diff) | |
| download | bcm5719-llvm-454b5c9bcef9e406e17f533e45b7dd1b3f0392bf.tar.gz bcm5719-llvm-454b5c9bcef9e406e17f533e45b7dd1b3f0392bf.zip | |
generalize this api
llvm-svn: 31365
| -rw-r--r-- | llvm/include/llvm/Target/TargetLowering.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h index f6eb5a24e52..7d1f3e00b8f 100644 --- a/llvm/include/llvm/Target/TargetLowering.h +++ b/llvm/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; |

