summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.Evan Cheng2010-04-071-1/+1
| | | | llvm-svn: 100726
* minor tidying.Chris Lattner2010-04-072-5/+4
| | | | llvm-svn: 100725
* use assertions instead of unreachable for logic errors.Chris Lattner2010-04-071-28/+26
| | | | llvm-svn: 100724
* introduce a new recoverable error handling API to LLVMContextChris Lattner2010-04-073-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | and use it in one place in inline asm handling stuff. Before we'd generate this for an invalid modifier letter: $ clang asm.c -c -o t.o fatal error: error in backend: Invalid operand found in inline asm: 'abc incl ${0:Z}' INLINEASM <es:abc incl ${0:Z}>, 10, %EAX<def>, 2147483657, %EAX, 14, %EFLAGS<earlyclobber,def,dead>, <!-1> Now we generate this: $ clang asm.c -c -o t.o error: invalid operand in inline asm: 'incl ${0:Z}' asm.c:3:12: note: generated from here __asm__ ("incl %Z0" : "+r" (X)); ^ 1 error generated. This is much better but still admittedly not great ("why" is the operand invalid??), codegen should try harder with its diagnostics :) llvm-svn: 100723
* Fix some redundant errors by changing CXXScopeSpec::isSet calls intoJeffrey Yasskin2010-04-076-9/+12
| | | | | | isNotEmpty calls. llvm-svn: 100722
* Say bitcast instead of bitconvert.Dan Gohman2010-04-072-2/+2
| | | | llvm-svn: 100720
* Add svn:ignore.Dan Gohman2010-04-070-0/+0
| | | | llvm-svn: 100719
* update for api change.Chris Lattner2010-04-071-1/+1
| | | | llvm-svn: 100718
* rename llvm_install_error_handler -> install_fatal_error_handlerChris Lattner2010-04-072-25/+22
| | | | | | and friends. llvm-svn: 100717
* Implement checking for template literal operator functions. ThisAlexis Hunt2010-04-071-4/+21
| | | | | | | code won't actually get used yet because we don't handle non-type parameter packs, but when we do, this code should jump in and work. llvm-svn: 100716
* Update CMake build.Ted Kremenek2010-04-071-0/+1
| | | | llvm-svn: 100714
* Update cmake build.Benjamin Kramer2010-04-071-0/+1
| | | | llvm-svn: 100713
* Add support for stpncpy_chk.Eric Christopher2010-04-071-0/+1
| | | | llvm-svn: 100711
* Add support for stpncpy_chk.Eric Christopher2010-04-072-7/+7
| | | | llvm-svn: 100710
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-0752-143/+143
| | | | llvm-svn: 100709
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-0711-18/+18
| | | | llvm-svn: 100708
* Updated comment to reflect changes made in the most recent draft.Alexis Hunt2010-04-071-5/+3
| | | | llvm-svn: 100707
* add newlines at end of files.Chris Lattner2010-04-077-7/+7
| | | | llvm-svn: 100706
* add newlines at the end of files.Chris Lattner2010-04-0733-33/+33
| | | | llvm-svn: 100705
* Fixed 80-cols violationAlexis Hunt2010-04-071-1/+1
| | | | llvm-svn: 100704
* remove some unneeded errorhandling stuff.Chris Lattner2010-04-072-16/+20
| | | | llvm-svn: 100703
* minor tidying upChris Lattner2010-04-072-3/+2
| | | | llvm-svn: 100702
* tidy upChris Lattner2010-04-071-5/+5
| | | | llvm-svn: 100700
* Generalize IVUsers to track arbitrary expressions rather than expressionsDan Gohman2010-04-0710-279/+743
| | | | | | | | | | | | | | | explicitly split into stride-and-offset pairs. Also, add the ability to track multiple post-increment loops on the same expression. This refines the concept of "normalizing" SCEV expressions used for to post-increment uses, and introduces a dedicated utility routine for normalizing and denormalizing expressions. This fixes the expansion of expressions which are post-increment users of more than one loop at a time. More broadly, this takes LSR another step closer to being able to reason about more than one loop at a time. llvm-svn: 100699
* Missed this one line for the previous checkin to fix build warnings.Johnny Chen2010-04-071-1/+0
| | | | llvm-svn: 100697
* Fixed warnings pointed out by clang.Johnny Chen2010-04-071-7/+19
| | | | llvm-svn: 100696
* Fixed warnings pointed out by clang.Johnny Chen2010-04-071-2/+16
| | | | | | Next to work on is ARMDisassemblerCore.cpp. llvm-svn: 100695
* Fixed a bug where the disassembler would allow an immediateSean Callanan2010-04-073-1/+5
| | | | | | | | | argument that had to be between 0 and 7 to have any value, firing an assert later in the AsmPrinter. Now, the disassembler rejects instructions with out-of-range values for that immediate. llvm-svn: 100694
* Fixed 3 warnings pointed out by clang.Johnny Chen2010-04-071-3/+3
| | | | llvm-svn: 100693
* unXFAIL, arm disassembler was reenabled.Benjamin Kramer2010-04-073-3/+0
| | | | llvm-svn: 100692
* Fix typo and correct comment somewhat.Eric Christopher2010-04-071-1/+1
| | | | llvm-svn: 100691
* Re-enable ARM/Thumb disassembler and add a workaround for a memcpy() call inJohnny Chen2010-04-073-4/+25
| | | | | | ARMDecoderEmitter.cpp, with FIXME comment. llvm-svn: 100690
* add a new driver-level -ferror-limit=412 option, which causes clang to stopChris Lattner2010-04-073-0/+11
| | | | | | | | | | | | | | | | | emitting diagnostics after it has produced that many errors. Give this a default value of 20 which produces plenty of errors for people to fix before recompiling but not so many that their entire console scrolls away when the compiler gets confused. The experience looks like this: $ clang foo.c <tons of crap> foo.c:102:3: error: unknown type name 'somethingbad' somethingbad x; ^ fatal error: too many errors emitted, stopping now 36 warnings and 20 errors generated. llvm-svn: 100689
* Split big test into multiple directories to cater toDale Johannesen2010-04-0712-11/+363
| | | | | | those who don't build all targets. llvm-svn: 100688
* add clang -cc1 level support for "-ferror-limit 42"Chris Lattner2010-04-076-5/+19
| | | | llvm-svn: 100687
* Return early from Sema::MarkDeclarationReferenced when we know thereDouglas Gregor2010-04-072-2/+11
| | | | | | | | | isn't any extra work to perform. Also, don't check for unused parameters when the warnings will be suppressed anyway. Improves performance of -fsyntax-only on 403.gcc's combine.c by ~2.5%. <rdar://problem/7836787> llvm-svn: 100686
* Added an AsmLexer for the ARM target, which usesSean Callanan2010-04-072-0/+143
| | | | | | | a simple mapping of register names to IDs to identify register tokens. llvm-svn: 100685
* add capabilities to stop emitting errors after some limit.Chris Lattner2010-04-073-0/+17
| | | | | | Right now the limit is 0 (aka disabled) llvm-svn: 100684
* Test that DEBUG_VALUE comments come out on a variety of targets.Dale Johannesen2010-04-071-0/+45
| | | | llvm-svn: 100682
* Educate GetInstrSizeInBytes implementations thatDale Johannesen2010-04-074-0/+4
| | | | | | DBG_VALUE does not generate code. llvm-svn: 100681
* fix 80-col violationsGabor Greif2010-04-071-13/+17
| | | | llvm-svn: 100677
* Don't emit an 'unused expression' warning for '||' and '&&' expressions that ↵Ted Kremenek2010-04-072-12/+28
| | | | | | | | contain assignments or similar side-effects. llvm-svn: 100676
* Instead of counting totally diagnostics, split the count into a countChris Lattner2010-04-0714-24/+35
| | | | | | | | | | | | | | | of errors and warnings. This allows us to emit something like this: 2 warnings and 1 error generated. instead of: 3 diagnostics generated. This also stops counting 'notes' because they are just follow-on information about the previous diag, not a diagnostic in themselves. llvm-svn: 100675
* convert to -verify mode.Chris Lattner2010-04-071-2/+3
| | | | llvm-svn: 100674
* Remove late ARM codegen optimization pass committed by accident.Anton Korobeynikov2010-04-076-169/+5
| | | | | | It is not ready for public yet. llvm-svn: 100673
* Split A8/A9 itins - they already were too big.Anton Korobeynikov2010-04-073-603/+614
| | | | llvm-svn: 100672
* Add some crude itin approximation for VFP load / stores on A9Anton Korobeynikov2010-04-071-0/+54
| | | | llvm-svn: 100671
* Add some crude approximation for neon load/store instructionsAnton Korobeynikov2010-04-071-1/+55
| | | | llvm-svn: 100670
* Add some A8-based approximation for instructions with unknown cycle timesAnton Korobeynikov2010-04-071-0/+52
| | | | llvm-svn: 100669
* Move NEON-VFP domain fixer upper, so post-RA scheduler would benefit from it.Anton Korobeynikov2010-04-071-4/+6
| | | | llvm-svn: 100668
OpenPOWER on IntegriCloud