[LLVMbugs] [Bug 5618] New: Move C backend to Clang

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Nov 25 16:31:57 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5618

           Summary: Move C backend to Clang
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: code-cleanup
          Severity: enhancement
          Priority: P2
         Component: Backend: C
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: alp at nuanti.com
                CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org


The LLVM C backend should be moved to the clang module. Once moved, it can be
incrementally modified to build a live clang C/C++/ObjC AST. Building AST
directly instead of outputting strings of code should result in a net
simplification of CBackend.cpp, a lot of the current 3696 lines of which are
doing work that clang's pretty printer could do.

Once this AST exists, clang's existing code analysis features can be used to
detect high level C and C++ constructs and generate much cleaner source code.

Coupled with the new X86Disassembler, this will provide an elegant way to
disassemble machine code straight to readable and well-formatted C++.

I'd provide a patch, but all that really needs to be done to start with is an
svn mv.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list