summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Be a little more permissive than C99: allow 'unsigned' to be used forTed Kremenek2010-01-292-5/+14
| | | | | | | the field width and precision of a format specifier instead of just 'int'. This matches GCC, and fixes <rdar://problem/6079850>. llvm-svn: 94856
* Modified encoding bits specification for VFP instructions. In particular, the DJohnny Chen2010-01-292-104/+120
| | | | | | | bit (Inst{22}) and the M bit (Inst{5}) should be left unspecified. For binary format instructions, Inst{6} and Inst{4} need to specified for proper decodings. llvm-svn: 94855
* Print a comment next to "materializable" global values, to distinguishDan Gohman2010-01-291-0/+9
| | | | | | them from values that are not actually defined in the module. llvm-svn: 94854
* PPC is not ready for sibcall optimization.Evan Cheng2010-01-291-0/+3
| | | | llvm-svn: 94853
* Fix spacing.Ted Kremenek2010-01-291-1/+1
| | | | llvm-svn: 94852
* Per a suggestion from Cristian Draghici, add a method to FormatSpecifier ↵Ted Kremenek2010-01-292-9/+93
| | | | | | that returns the expected type of the matching data argument. It isn't complete, but should handle several of the important cases. llvm-svn: 94851
* Preserve load alignment in instcombine transformations. I've been unable toBob Wilson2010-01-291-0/+3
| | | | | | | | | | create a testcase where this matters. The select+load transformation only occurs when isSafeToLoadUnconditionally is true, and in those situations, instcombine also changes the underlying objects to be aligned. This seems like a good idea regardless, and I've verified that it doesn't pessimize the subsequent realignment. llvm-svn: 94850
* Use appropriate context for typedefs. Devang Patel2010-01-291-7/+5
| | | | llvm-svn: 94849
* Minor code cleanup.Dan Gohman2010-01-291-1/+1
| | | | llvm-svn: 94848
* Skip whitespace when looking for a potential intended match.Dan Gohman2010-01-291-0/+5
| | | | | | | | | | | | | | | Before: <stdin>:94:1: note: possible intended match here movsd 4096(%rsi), %xmm0 ^ After: <stdin>:94:2: note: possible intended match here movsd 4096(%rsi), %xmm0 ^ llvm-svn: 94847
* Fix the position of the caret in the FileCheck error message.Dan Gohman2010-01-291-1/+4
| | | | | | | | | | | | | | | | Before: test/CodeGen/X86/lsr-reuse.ll:52:34: error: expected string not found in input ; CHECK: movsd -2048(%rsi), %xmm0 ^ After: test/CodeGen/X86/lsr-reuse.ll:52:10: error: expected string not found in input ; CHECK: movsd -2048(%rsi), %xmm0 ^ llvm-svn: 94846
* Make sure the size is doubled (not 4x).Junjie Gu2010-01-291-1/+1
| | | | llvm-svn: 94845
* Removed symbols from .exports that are not yet inSean Callanan2010-01-291-30/+0
| | | | | | the library. llvm-svn: 94844
* Add assertion to humor the paranoid.Dale Johannesen2010-01-291-0/+1
| | | | llvm-svn: 94843
* We were not writing bitcode for function-local metadata whose operands have ↵Victor Hernandez2010-01-291-2/+2
| | | | | | been erased (making it not have any more function-local operands) llvm-svn: 94842
* Revert my last couple of patches. They appear to have broken bison.Eric Christopher2010-01-294-85/+15
| | | | llvm-svn: 94841
* Rename two IRReader.h functions to indicate that they return a ModuleJeffrey Yasskin2010-01-291-7/+7
| | | | | | | that loads its contents lazily from bitcode. I think these are the only remaining mis-named functions. llvm-svn: 94840
* Driver: Don't honor -std-default for C++, this makes it hard to run the gdb testDaniel Dunbar2010-01-291-2/+8
| | | | | | | | | suite with clang++ enabled. The right fix here is PR6175, although we would still have to find a different work around for the gdb test suite. llvm-svn: 94838
* Switch Sema over to using the new implementation of format stringTed Kremenek2010-01-295-283/+65
| | | | | | | | | checking. It passes all existing tests, and the diagnostics have been refined to provide better range information (we now highlight individual format specifiers) and more precise wording in the diagnostics. llvm-svn: 94837
* Use uint64_t instead of unsigned for offsets and sizes.Bob Wilson2010-01-291-3/+3
| | | | llvm-svn: 94835
* Enhancements to the alternate (WIP) format string checking:Ted Kremenek2010-01-292-2/+22
| | | | | | | | | | - Add ConversionSpecifier::consumesDataArgument() as a helper method to determine if a conversion specifier requires a matching argument. - Add support for glibc-specific '%m' conversion - Add an extra callback to HandleNull() for locations within the format specifier that have a null character llvm-svn: 94834
* Add svn:ignore properties.Dan Gohman2010-01-290-0/+0
| | | | llvm-svn: 94833
* PR5909 had a test case for binding of const, non-volatile referencesDouglas Gregor2010-01-291-0/+12
| | | | | | to bitfields. Add it here. llvm-svn: 94832
* Fix reference-binding when we have a reference to const volatile type;Douglas Gregor2010-01-294-7/+15
| | | | | | | previously, we were allowing this to bind to a temporary. Now, we don't; add test-cases and improve diagnostics. llvm-svn: 94831
* Fix subtle bug in Preprocessor::AdvanceToTokenCharacter(): use '+=' instead ↵Ted Kremenek2010-01-291-1/+1
| | | | | | of '='. llvm-svn: 94830
* Improve isSafeToLoadUnconditionally to recognize that GEPs with constantBob Wilson2010-01-296-22/+83
| | | | | | | indices are safe if the result is known to be within the bounds of the underlying object. llvm-svn: 94829
* Fix reference binding of const lvalue references to bit-fields, whichDouglas Gregor2010-01-294-3/+217
| | | | | | | | | | | | | | | | | requires a temporary. Previously, we were building an initialization sequence that bound to the bit-field as if it were a real lvalue. Note that we previously (and still) diagnose binding of non-const references to bit-fields, as we should. There's no real way to test that this code is correct, since reference binding does not *currently* have any representation in the AST. This fix should make it easier for that to happen, so I've verified this fix with... Added InitializationSequence::dump(), to print an initialization sequence for debugging purposes. llvm-svn: 94826
* Belatedly document r85295 and r85330.Jeffrey Yasskin2010-01-292-4/+37
| | | | llvm-svn: 94825
* And yet another call.Anders Carlsson2010-01-291-2/+8
| | | | llvm-svn: 94824
* Another PerformCopyInitialization call bites the dust.Anders Carlsson2010-01-291-4/+12
| | | | llvm-svn: 94823
* Add size and location info in DW_TAG_class_type descriptor.Devang Patel2010-01-291-1/+1
| | | | llvm-svn: 94822
* New test case.Devang Patel2010-01-291-0/+21
| | | | llvm-svn: 94821
* Before inserting llvm.dbg.declare intrinsic at the end of a basic block, ↵Devang Patel2010-01-291-2/+7
| | | | | | | | check whether the basic block has a terminator or not. This API is used by clang and the test case is test/CodeGen/debug-info-crash.c in clang module. llvm-svn: 94820
* Get rid of another old PerformCopyInitialization call.Anders Carlsson2010-01-291-4/+12
| | | | llvm-svn: 94819
* Maintain a map of regions (lexical scopes) and use it to find context for a ↵Devang Patel2010-01-292-11/+10
| | | | | | global variable. llvm-svn: 94817
* Add comment to test linking it back to the original Bugzilla PR.Ted Kremenek2010-01-291-0/+1
| | | | llvm-svn: 94816
* When naming a function template via a qualified-id (or any other wayDouglas Gregor2010-01-292-1/+16
| | | | | | | | that ADL is suppressed), we need to build an UnresolvedLookupExpr. Fixes PR6063, which was hitting Boost headers pretty hard. llvm-svn: 94814
* cindex/Python: Update to support _getInstantiationLocation's new offset value.Daniel Dunbar2010-01-291-4/+10
| | | | llvm-svn: 94813
* Driver/Darwin: Fix a crash when diagnosing conflicting deployment targets.Daniel Dunbar2010-01-291-4/+6
| | | | llvm-svn: 94812
* Name mangling for cast expressions, from Matthias Schiffer! Fixes PR5876.Douglas Gregor2010-01-292-0/+62
| | | | llvm-svn: 94811
* Fix typo found by clang++. Yay for -Wuninitialized.Benjamin Kramer2010-01-291-1/+1
| | | | llvm-svn: 94810
* Fix MSVC build.Benjamin Kramer2010-01-291-0/+1
| | | | llvm-svn: 94809
* Convert some users of ftostr to raw_ostream.Benjamin Kramer2010-01-292-9/+11
| | | | llvm-svn: 94808
* Use llvm::format instead of ftostr (which just calls sprintf).Benjamin Kramer2010-01-291-2/+1
| | | | llvm-svn: 94807
* Bring driver link order in CMake into alignment with the order in the Makefile.Chandler Carruth2010-01-291-2/+2
| | | | | | | This includes the fix in r94797 to reflect the new dependency of Sema on Analysis. llvm-svn: 94806
* Change the SREM case to match the logic in the IR version ComputeMaskedBits.Duncan Sands2010-01-291-8/+17
| | | | llvm-svn: 94805
* Catch more trivial tail call opportunities: no inputs and output types match.Evan Cheng2010-01-292-14/+42
| | | | llvm-svn: 94804
* Add getters.Anders Carlsson2010-01-291-0/+8
| | | | llvm-svn: 94803
* Having RHSKnownZero and RHSKnownOne be alternative names for KnownZero and ↵Duncan Sands2010-01-291-75/+69
| | | | | | | | | | | KnownOne (via APInt &RHSKnownZero = KnownZero, etc) seems dangerous and confusing to me: it is easy not to notice this, and then wonder why KnownZero/RHSKnownZero changed underneath you when you modified RHSKnownZero/KnownZero etc. So get rid of this. No intended functionality change (tested with "make check" + llvm-gcc bootstrap). llvm-svn: 94802
* It looks like the changes to the SRem logic of SimplifyDemandedUseBitsDuncan Sands2010-01-291-8/+17
| | | | | | (fix for PR6165) are needed here too. llvm-svn: 94801
OpenPOWER on IntegriCloud