summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PTX: Add new patterns for bitconvert and any_extendJustin Holewinski2011-09-292-218/+217
| | | | llvm-svn: 140753
* Basic/Diagnostics: Add an isDefaultMappingAsError method, and switch ↵Daniel Dunbar2011-09-294-9/+32
| | | | | | | | TextDiagnosticPrinter to use that instead of extracting the current mapping via getDiagnosticLevel, which fixes one class of corner cases w.r.t. printing the "-Werror" diagnostic option marker. - The TextDiagnosticPrinter code is still fragile as it is just "reverse engineering" what the diagnostic engine is doing. Not my current priority to fix though. llvm-svn: 140752
* llvm-size: Apply Chris's code review fixes.Michael J. Spencer2011-09-291-46/+59
| | | | | | | This doesn't use formated_raw_ostream because it doesn't support the functionality needed. llvm-svn: 140751
* Found a great optimization after speaking with Sean Callanan which cleansGreg Clayton2011-09-292-77/+40
| | | | | | | up the implementation details of the on disk hash, these changed implement the changes in the on disk table format. llvm-svn: 140750
* Fix 80-col viola.Daniel Dunbar2011-09-291-4/+4
| | | | llvm-svn: 140749
* Attempt to fix unit testsDouglas Gregor2011-09-291-0/+4
| | | | llvm-svn: 140748
* Basic/Diagnostic: Factor outDaniel Dunbar2011-09-293-14/+44
| | | | | | | | | DiagnosticsEngine::setDiagnosticGroup{ErrorAsFatal,WarningAsError} methods which more accurately model the correct API -- no internal change to the diagnostics engine yet though. - Also, stop honoring -Werror=everything (etc.) as a valid (but oddly behaved) option. llvm-svn: 140747
* Introduce an opt-in warning when a module is being implicitly builtDouglas Gregor2011-09-294-0/+10
| | | | | | from sources. llvm-svn: 140746
* Use the local we already set up.Eric Christopher2011-09-291-1/+1
| | | | llvm-svn: 140745
* Rewrite MachineInstr::addOperand() to avoid NumImplicitOps.Jakob Stoklund Olesen2011-09-291-81/+53
| | | | | | | | | | | | | | | | | | | | | | | The function needs to scan the implicit operands anyway, so no performance is won by caching the number of implicit operands added to an instruction. This also fixes a bug when adding operands after an implicit operand has been added manually. The NumImplicitOps count wasn't kept up to date. MachineInstr::addOperand() will now consistently place all explicit operands before all the implicit operands, regardless of the order they are added. It is possible to change an MI opcode and add additional explicit operands. They will be inserted before any existing implicit operands. The only exception is inline asm instructions where operands are never reordered. This is because of a hack that marks explicit clobber regs on inline asm as <implicit-def> to please the fast register allocator. This hack can go away when InstrEmitter and FastIsel can add exact <dead> flags to physreg defs. llvm-svn: 140744
* Introduce a pure virtual clone() method to DiagnosticConsumer, so thatDouglas Gregor2011-09-2918-28/+94
| | | | | | | | | we have the ability to create a new, distict diagnostic consumer when we go off and build a module. This avoids the currently horribleness where the same diagnostic consumer sees diagnostics for multiple translation units (and multiple SourceManagers!) causing all sorts of havok. llvm-svn: 140743
* Basic/Diagnostics: Split out the default warning "no-Werror" andDaniel Dunbar2011-09-2910-18/+40
| | | | | | | "show-in-system-header" bits, which is part of teasing them apart from the diagnostic mapping kind. llvm-svn: 140742
* tblgen/ClangDiagnostics: Add support for split default warning "no-werror" andDaniel Dunbar2011-09-291-1/+17
| | | | | | "show-in-system-header" bits, which I will be adding in Clang shortly. llvm-svn: 140741
* Change "Regions" to be "LexicalBlocks" since that's what theyEric Christopher2011-09-294-53/+54
| | | | | | correspond to. llvm-svn: 140740
* Rename EmitStopPoint in CGDebugInfo to EmitLocation. "stop points" don'tEric Christopher2011-09-295-8/+10
| | | | | | exist anymore. llvm-svn: 140739
* Reorder functions in the file.Eric Christopher2011-09-291-31/+30
| | | | llvm-svn: 140738
* Call UpdateLineDirectiveRegion every time we want to emit a stopEric Christopher2011-09-294-6/+8
| | | | | | | point in the code. Ensures that we don't miss any places and the check is reasonably cheap. llvm-svn: 140737
* Update comment.Eric Christopher2011-09-291-1/+2
| | | | llvm-svn: 140736
* Revert r140731, "Define classes for unary and binary FP instructions and use ↵Jakob Stoklund Olesen2011-09-282-63/+55
| | | | | | | | them to define" It broke the unit tests. Please reapply with tests fixed. llvm-svn: 140735
* Attempted locale refactoring. _LIBCPP_LOCALE__L_EXTENSIONS now should be ↵Howard Hinnant2011-09-284-89/+72
| | | | | | defined if one has all of the xxx_l() functions. I've defined this for apple, freebsd and win32. _LIBCPP_HAS_DEFAULTRUNELOCALE should be defined if there is a _DefaultRuneLocale. I've defined this for apple and freebsd. The block of code we're trying to migrate away from is now under #ifdef __linux__. I've tested only on OS X. I hope I haven't broken things too badly elsewhere. Please let me know. llvm-svn: 140734
* Tighten a ARM dag combine condition to avoid an identity transformation, whichEvan Cheng2011-09-282-1/+31
| | | | | | | | ends up introducing a cycle in the DAG. rdar://10196296 llvm-svn: 140733
* [driver] Add basic support for escaping XML characters in CC_LOG_DIAGNOSTICSChad Rosier2011-09-282-6/+31
| | | | | | | strings. rdar://9696709 llvm-svn: 140732
* Define classes for unary and binary FP instructions and use them to defineAkira Hatanaka2011-09-282-55/+63
| | | | | | multiclasses. llvm-svn: 140731
* Have the SjLjEHPrepare pass do some more heavy lifting.Bill Wendling2011-09-281-34/+55
| | | | | | | | Upon further review, most of the EH code should remain written at the IR level. The part which breaks SSA form is the dispatch table, so that part will be moved to the back-end. llvm-svn: 140730
* objc arc: Diagnose block pointer type mismatch whenFariborz Jahanian2011-09-284-16/+53
| | | | | | | | some arguments types are ns_consumed and some otherwise matching types are not. This is objc side of // rdar://10187884 llvm-svn: 140729
* Work on Windows port by Ruben Van BoxemHoward Hinnant2011-09-287-41/+107
| | | | llvm-svn: 140728
* Fix cast.Michael J. Spencer2011-09-281-1/+1
| | | | llvm-svn: 140726
* Check for empty predecessors for walking them.Ted Kremenek2011-09-281-1/+1
| | | | llvm-svn: 140725
* Attempt to enable locale simplification. On which platforms can we now ↵Howard Hinnant2011-09-281-45/+27
| | | | | | #define _LIBCPP_STABLE_APPLE_ABI? llvm-svn: 140724
* PR11033: Make sure we don't generate PCMPGTQ and PCMPEQQ if the target CPU ↵Eli Friedman2011-09-282-0/+42
| | | | | | does not support them. llvm-svn: 140723
* Add llvm-size.Michael J. Spencer2011-09-285-1/+323
| | | | llvm-svn: 140722
* Object: Add isSection{Data,BSS}.Michael J. Spencer2011-09-285-0/+72
| | | | llvm-svn: 140721
* NULL cannot be portably used as the last argument to a function with ↵Eli Friedman2011-09-281-3/+3
| | | | | | __attribute((sentinel)), even though it usually works. Use (void*)0 instead. PR11002. llvm-svn: 140720
* Perform the lowering only if there are invokes.Bill Wendling2011-09-281-9/+19
| | | | llvm-svn: 140719
* Ahem...actually *add* the ARMSjLjLowering pass to the pass manager.Bill Wendling2011-09-281-1/+1
| | | | llvm-svn: 140718
* objc++ arc: Diagnose block pointer type mismatch whenFariborz Jahanian2011-09-282-0/+37
| | | | | | | | some arguments types are ns_consumed and some otherwise matching types are not. This fixes the objc++ side only *auch*. // rdar://10187884 llvm-svn: 140717
* Fix typo. string-convervion -> string-conversionRichard Trieu2011-09-281-1/+1
| | | | llvm-svn: 140716
* Add a note on removing LLVMC.Eric Christopher2011-09-281-0/+2
| | | | llvm-svn: 140715
* Fix help string for "frame variable".Johnny Chen2011-09-281-1/+0
| | | | llvm-svn: 140714
* Tweak -Wobjc-missing-super-calls to not warning about missing [super ↵Ted Kremenek2011-09-282-4/+13
| | | | | | dealloc] when in GC-only mode, and to not warning about missing [super finalize] when not using GC. llvm-svn: 140713
* Introduce llvm-cov.Devang Patel2011-09-286-1/+609
| | | | | | | | | | | | | | | | | | | | | | | | | | Add llvm-cov skeleton. It has initial support to read coverage info generated by GCOVProfiling.cpp. Today, you can do prompt> clang a.c -ftest-coverage -fprofile-arcs -o a prompt> ./a prompt> llvm-cov -gcno a.gcno -gcda a.gcda a.c : #include "a.h" : : int main() { : int i = 0; : if (i) { 1: int j = 0; 1: j = 1; 1: } else { : int k = 1; : k = 2; : } 1: return 0; : } : : llvm-svn: 140712
* For __weak/__strong/etc. ownership attributes, don't macro expand them in ↵Argyrios Kyrtzidis2011-09-281-7/+11
| | | | | | diagnostics. llvm-svn: 140711
* Modify lldbutil.in_range(symbol, section) to deal with the symbol whoseJohnny Chen2011-09-282-5/+16
| | | | | | | end address is an LLDB_INVALID_ADDRESS. Modify the test case to dump all the symbols in all the sections. llvm-svn: 140710
* PTX: Fix alignment logicJustin Holewinski2011-09-281-1/+1
| | | | llvm-svn: 140709
* Fix a typo spotted by Jonathan Sauer.Chandler Carruth2011-09-281-1/+1
| | | | llvm-svn: 140708
* Introduce non-const Decl::getParentFunctionOrMethod.Argyrios Kyrtzidis2011-09-281-0/+4
| | | | llvm-svn: 140707
* [libclang] Introduce clang_Range_isNull.Argyrios Kyrtzidis2011-09-283-0/+11
| | | | llvm-svn: 140706
* Rename predicate In32BitMode to NotFP64bit and add definition of IsFP64bit.Akira Hatanaka2011-09-281-9/+10
| | | | llvm-svn: 140705
* Remove definitions of branch-on-FP-likely instructions. They are deprecated.Akira Hatanaka2011-09-281-4/+0
| | | | llvm-svn: 140704
* Mips64 predicate definitions. Patch by Liu.Akira Hatanaka2011-09-281-0/+7
| | | | llvm-svn: 140703
OpenPOWER on IntegriCloud