summaryrefslogtreecommitdiffstats
path: root/clang/Driver/Backend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-436/+0
| | | | | | Again, I tried to update cmake but it is untested. llvm-svn: 67605
* move debug info generation flag into CompileOptions.Chris Lattner2009-03-091-9/+5
| | | | llvm-svn: 66478
* capitalize for consistency, a crash in regalloc now looks like this:Chris Lattner2009-03-061-4/+4
| | | | | | | | | | | Stack dump: 0. Program arguments: clang pr3399.c -S -O3 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Linear Scan Register Allocator' on function '@foo' Abort llvm-svn: 66261
* rename PrettyStackTraceDecl -> PrettyStackTraceActionsDecl.Chris Lattner2009-03-051-11/+26
| | | | | | | | | | | | | | | | Introduce a new PrettyStackTraceDecl. Use it to add the top level LLVM IR generation stuff in Backend.cpp to stack traces. We now get crashes like: Stack dump: 0. Program arguments: clang t.c -emit-llvm 1. <eof> parser at end of file 2. t.c:1:5: LLVM IR generation of declaration 'a' Abort for IR generation crashes. llvm-svn: 66153
* Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*Daniel Dunbar2009-03-021-1/+1
| | | | | | driver taking lib/Driver. llvm-svn: 65811
* Add -emit-llvm-only option (generate LLVM IR & run passes, but discardDaniel Dunbar2009-02-261-0/+3
| | | | | | | output). - For timing IRgen phase. llvm-svn: 65580
* don't print codegen time unless -ftime-report was passed.Chris Lattner2009-02-181-1/+3
| | | | llvm-svn: 64928
* teach -ftime-report to time the code generator and -emit-llvm times.Chris Lattner2009-02-181-1/+31
| | | | llvm-svn: 64873
* move llvm backend specific #includes into Backend.cpp instead of Clang.cppChris Lattner2009-02-181-3/+4
| | | | llvm-svn: 64872
* Backend: Accept -mcpu and -mattr for use by TargetMachine.Daniel Dunbar2009-02-171-10/+18
| | | | llvm-svn: 64798
* for now, disable all debug info generation at -O1 and above. This mirrorsChris Lattner2009-02-121-0/+7
| | | | | | similar logic in llvm-gcc and will hopefully be fixed soon. llvm-svn: 64349
* Rename AddReadAttrs to FunctionAttrs. This is related to Duncan's patch r61525.Bill Wendling2008-12-311-1/+1
| | | | llvm-svn: 61534
* Remove the #include of ScheduleDAGSDNodes.h, which is no longer necessary.Dan Gohman2008-12-081-1/+0
| | | | llvm-svn: 60712
* Disable -loop-index-split for now.Devang Patel2008-11-261-1/+1
| | | | llvm-svn: 60089
* Use ScheduleDAGSDNodes.h instead of ScheduleDAG.h (stuff moved around).Ted Kremenek2008-11-201-1/+1
| | | | llvm-svn: 59684
* Obey the FIXMES!Daniel Dunbar2008-11-131-5/+1
| | | | | | | | - Resume running the always inliner pass always now that LLVM has been improved and functions with debug info can be inlined. - Remove unused header. llvm-svn: 59223
* [LLVM up] Update for raw_fd_ostream change. This fixes a FIXME thatDaniel Dunbar2008-11-131-2/+1
| | | | | | | | the Backend output should be done in binary mode. - I'd appreciate it if someone who has a Windows build could verify this. llvm-svn: 59221
* Move backend output out of destructor.Daniel Dunbar2008-11-111-3/+5
| | | | | | Don't free AST consumer when --disable-free is set. llvm-svn: 59030
* Workaround an LLVM bug where inlining functions with debug info breaksDaniel Dunbar2008-10-291-2/+8
| | | | | | | | code generation. - For now, disable running the always inliner pass (at -O0) if we are also generating debug information. llvm-svn: 58376
* Access pass manager consistently.Daniel Dunbar2008-10-281-1/+1
| | | | | | - No functionality change. llvm-svn: 58342
* Don't double free module when IRgen fails.Daniel Dunbar2008-10-271-2/+5
| | | | llvm-svn: 58266
* 2nd try to fix leakage of the module provider. note that moduleprovider ↵Nuno Lopes2008-10-241-4/+2
| | | | | | takes ownership of the module llvm-svn: 58128
* fix leaking of the module providerNuno Lopes2008-10-241-3/+5
| | | | llvm-svn: 58127
* Hook "fast" code generation to -O0.Daniel Dunbar2008-10-231-8/+5
| | | | llvm-svn: 58035
* Add -O[0-3s] support (following llvm-gcc).Daniel Dunbar2008-10-231-4/+93
| | | | | | - Passes match llvm-gcc but many of the switches aren't wired. llvm-svn: 58034
* Only create the target machine when emitting assembly.Daniel Dunbar2008-10-221-17/+17
| | | | llvm-svn: 57993
* [LLVM up] Get rid of std::ostream usage from Backend.cppDaniel Dunbar2008-10-221-18/+4
| | | | llvm-svn: 57990
* Update to use raw_ostream for PrintModulePass.Daniel Dunbar2008-10-221-6/+6
| | | | | | - Stop playing fast and loose with the std stream. llvm-svn: 57948
* [LLVM up] Add basic -S option to clang.Daniel Dunbar2008-10-211-0/+297
- Split backend related consumer out into Backend.cpp, replaces LLVMCodeGenWriter. - Structure follows llvm-gcc to some extent. - Still need to implement all the options which impact code generation and the optimization passes which llvm-gcc uses at various levels. llvm-svn: 57936
OpenPOWER on IntegriCloud