From 7f739d5bdd9905128ea16e6c065fb84921084b37 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Tue, 28 Nov 2006 19:56:02 +0000 Subject: update comments llvm-svn: 31975 --- llvm/lib/Target/CBackend/Writer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/CBackend/Writer.cpp') 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(CI.getOperand(0)); std::vector Constraints = as->ParseConstraints(); -- cgit v1.2.3