diff options
| author | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:56:02 +0000 |
|---|---|---|
| committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:56:02 +0000 |
| commit | 7f739d5bdd9905128ea16e6c065fb84921084b37 (patch) | |
| tree | 2f930e8fa79f287dd657bb4ce4611ad714624483 /llvm/lib/Target/CBackend/Writer.cpp | |
| parent | 212f15fa8abdff142ada196d320f1d36a4b2d870 (diff) | |
| download | bcm5719-llvm-7f739d5bdd9905128ea16e6c065fb84921084b37.tar.gz bcm5719-llvm-7f739d5bdd9905128ea16e6c065fb84921084b37.zip | |
update comments
llvm-svn: 31975
Diffstat (limited to 'llvm/lib/Target/CBackend/Writer.cpp')
| -rw-r--r-- | llvm/lib/Target/CBackend/Writer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp index eac7526bce2..18c4d064e33 100644 --- a/llvm/lib/Target/CBackend/Writer.cpp +++ b/llvm/lib/Target/CBackend/Writer.cpp @@ -2258,9 +2258,9 @@ void CWriter::visitCallInst(CallInst &I) { //This converts the llvm constraint string to something gcc is expecting. -//This could be broken into a bunch of peices and spread accross the -//targets, but this information is only useful here. //TODO: work out platform independent constraints and factor those out +// of the per target tables +// handle multiple constraint codes std::string CWriter::InterpretASMConstraint(InlineAsm::ConstraintInfo& c) { assert(c.Codes.size() == 1 && "Too many asm constraint codes to handle"); @@ -2320,6 +2320,8 @@ static std::string gccifyAsm(std::string asmstr) { return asmstr; } +//TODO: assumptions about what consume arguments from the call are likely wrong +// handle communitivity void CWriter::visitInlineAsm(CallInst &CI) { InlineAsm* as = cast<InlineAsm>(CI.getOperand(0)); std::vector<InlineAsm::ConstraintInfo> Constraints = as->ParseConstraints(); |

