summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add TargetLowering::isLegalICmpImmediate. It tells LSR what immediate can be ↵Evan Cheng2009-11-113-0/+26
| | | | | | folded into target icmp instructions. llvm-svn: 86858
* Do jump table adjustment before constant island allocationJim Grosbach2009-11-111-4/+7
| | | | llvm-svn: 86857
* Fix indentation level.Dan Gohman2009-11-111-8/+8
| | | | llvm-svn: 86856
* Whitespace cleanups.Dan Gohman2009-11-111-93/+92
| | | | llvm-svn: 86855
* Prefix MBB numbers with "BB#" in debug output to make it clear whatDan Gohman2009-11-111-3/+3
| | | | | | the numbers mean. llvm-svn: 86854
* Minor code simplification.Dan Gohman2009-11-111-9/+8
| | | | llvm-svn: 86853
* Fix a copy+pasto in a comment.Dan Gohman2009-11-111-1/+1
| | | | llvm-svn: 86852
* Set isBarrier = 1 on return instructions, as they are control barriers.Dan Gohman2009-11-115-4/+5
| | | | llvm-svn: 86851
* Use a tab in INT3's asm string, for consistency.Dan Gohman2009-11-111-1/+1
| | | | llvm-svn: 86850
* Value initialize non-class array members in ctor'sFariborz Jahanian2009-11-112-1/+36
| | | | | | initializer list. Fixes PR5463. llvm-svn: 86849
* another const prop failure.Chris Lattner2009-11-111-0/+9
| | | | llvm-svn: 86848
* add a noteChris Lattner2009-11-111-0/+28
| | | | llvm-svn: 86847
* Reject duplicate case values in a switch, PR5450.Chris Lattner2009-11-111-1/+5
| | | | llvm-svn: 86846
* Split buffer overflow test case into two test cases, removing out logic that ↵Ted Kremenek2009-11-111-4/+9
| | | | | | was commented out. llvm-svn: 86845
* Instantiation of template template parameters for nested templates, e.g.,Douglas Gregor2009-11-112-0/+48
| | | | | | | | | template<typename T> struct X { template<template<T Value> class Y> struct Inner; }; llvm-svn: 86844
* Fix speculative parsing of dependent template names inDouglas Gregor2009-11-114-44/+43
| | | | | | | | | | | | | | | | | | | | | | nested-name-specifiers so that they don't gobble the template name (or operator-function-id) unless there is also a template-argument-list. For example, given T::template apply we would previously consume both "template" and "apply" as part of parsing the nested-name-specifier, then error when we see that there is no "<" starting a template argument list. Now, we parse such constructs tentatively, and back off if the "<" is not present. This allows us to parse dependent template names as one would use them for, e.g., template template parameters: template<typename T, template<class> class X = T::template apply> struct MetaSomething; Also, test default arguments for template template parameters. llvm-svn: 86841
* Don't trivially delete unused calls to llvm.invariant.start. This allowsDuncan Sands2009-11-113-0/+41
| | | | | | | | | | | | | llvm.invariant.start to be used without necessarily being paired with a call to llvm.invariant.end. If you run the entire optimization pipeline then such calls are in fact deleted (adce does it), but that's actually a good thing since we probably do want them to be zapped late in the game. There should really be an integration test that checks that the llvm.invariant.start call lasts long enough that all passes that do interesting things with it get to do their stuff before it is deleted. But since no passes do anything interesting with it yet this will have to wait for later. llvm-svn: 86840
* Add undefined array subscript checker.Zhongxing Xu2009-11-117-1/+69
| | | | llvm-svn: 86837
* Remove the old out-of-bound checking code.Zhongxing Xu2009-11-111-42/+0
| | | | llvm-svn: 86836
* Reimplement out-of-bound array access checker with the new checker interface.Zhongxing Xu2009-11-117-4/+94
| | | | | | Now only one test case is XFAIL'ed. llvm-svn: 86834
* ReturnPointerRangeChecker: use StripCasts() instead of checking for zero indexZhongxing Xu2009-11-111-12/+15
| | | | | | | | explicitly. Fix 80-col violations. llvm-svn: 86833
* Simplify.Daniel Dunbar2009-11-111-13/+6
| | | | llvm-svn: 86830
* Fix unsafe use of StringRef I introduced.Daniel Dunbar2009-11-111-2/+3
| | | | llvm-svn: 86829
* Add PreprocessorOutputOptions to CompilerInvocation, and move initialization toDaniel Dunbar2009-11-116-35/+60
| | | | | | clang-cc/Options.cpp llvm-svn: 86828
* Add PreprocessorOutputOptions, for things like -dM, -C, -CC which control -EDaniel Dunbar2009-11-114-39/+82
| | | | | | mode. llvm-svn: 86827
* Simplifiy target feature handling by coalescing all the logic intoDaniel Dunbar2009-11-115-69/+56
| | | | | | InitializeCompileOptions. llvm-svn: 86826
* Minor formatting tweaks.Daniel Dunbar2009-11-111-10/+8
| | | | llvm-svn: 86825
* clang-cc: Refactor some -fixit-at handling.Daniel Dunbar2009-11-111-32/+24
| | | | llvm-svn: 86824
* Allow TextDiagnosticPrinter to have optional ownership of its output stream.Daniel Dunbar2009-11-113-17/+22
| | | | llvm-svn: 86823
* Update CMake.Daniel Dunbar2009-11-111-1/+0
| | | | llvm-svn: 86822
* clang-cc: Move InitializeAnalyzerOptions into Options.cppDaniel Dunbar2009-11-113-100/+112
| | | | llvm-svn: 86821
* clang-cc: Start coalescing "frontend" options.Daniel Dunbar2009-11-111-22/+14
| | | | llvm-svn: 86820
* clang-cc: Move InitializeDiagnosticOptions to Options.cppDaniel Dunbar2009-11-113-61/+68
| | | | llvm-svn: 86819
* clang-cc: Move HeaderSearchOptions to Options.cppDaniel Dunbar2009-11-113-161/+176
| | | | llvm-svn: 86818
* Turn LoggingDiagnosticClient into a more general ChainedDiagnosticClient andDaniel Dunbar2009-11-112-42/+60
| | | | | | move to libFrontend. llvm-svn: 86817
* clang-cc: Move InitializeLangOptions to Options.cpp.Daniel Dunbar2009-11-113-477/+487
| | | | | | | Also, inline InitializeLanguageStandard into InitializeLangOptions; this code needs to be refactored but the current division doesn't make any sense. llvm-svn: 86816
* Inline some trivial functions.Daniel Dunbar2009-11-111-11/+2
| | | | llvm-svn: 86815
* Add nounwind.Evan Cheng2009-11-114-4/+4
| | | | llvm-svn: 86814
* CastToStructChecker: use 'isStructureType()' instead of 'isRecordType()' to ↵Ted Kremenek2009-11-112-3/+24
| | | | | | determine if a pointer is casted to a struct pointer. This fixes an observed false positive when a value is casted to a union. llvm-svn: 86813
* Fix display of "ANALYZE" statements in AnalysisConsumer by correctly ↵Ted Kremenek2009-11-113-153/+147
| | | | | | resetting the flag indicating that the current Decl* has not yet been displayed. Also move this out of AnalysisManager, since AnalysisManager should not handle text output to the user. llvm-svn: 86812
* clang-cc: Move InitializePreprocessorOptions to Options.cppDaniel Dunbar2009-11-114-79/+94
| | | | llvm-svn: 86811
* remove the now dead condprop pass, PR3906.Chris Lattner2009-11-116-306/+0
| | | | llvm-svn: 86810
* Remove public headers for UndefinedArgChecker, AttrNonNullChecker, and ↵Ted Kremenek2009-11-118-111/+60
| | | | | | BadCallChecker, making their implementations completely private. llvm-svn: 86809
* clang-cc: Simplify this code, now that predefines handling is uniform in theDaniel Dunbar2009-11-111-22/+10
| | | | | | PCH/-E and PCH/not--E cases. llvm-svn: 86808
* Fix JITTest.ModuleDeletion in -Asserts mode (which turns off JITEmitDebugInfoJeffrey Yasskin2009-11-111-1/+7
| | | | | | by default). llvm-svn: 86807
* Redo how PCH handles its implicit include. Instead of treating this specially inDaniel Dunbar2009-11-114-16/+40
| | | | | | | | | | | | | | | the front-end (as far as the preprocessor goes), follow the usual logic of inserting the (original include path) name into the predefines buffer. This pushes the responsibility for handling this to PCH instead of the front-end. In PCH this requires being a little more clever when we diff the predefines buffers. Neither of these solutions are particularly great, I think what we eventually should do is something like gcc where we insert a special marker to indicate the PCH file, but then run the preprocessor as usual. This would be clearer and would allow us to drop the overly clever predefines handling. llvm-svn: 86806
* More StringRef simplification to PCHValidator::ReadPredefinesBuffer.Daniel Dunbar2009-11-112-33/+30
| | | | llvm-svn: 86805
* remove condprop testcases.Chris Lattner2009-11-1110-2588/+0
| | | | llvm-svn: 86804
* Add StringRef::split(StringRef), to complement StringRef::split(char).Daniel Dunbar2009-11-111-0/+17
| | | | llvm-svn: 86803
* Remove dead code.Rafael Espindola2009-11-111-5/+0
| | | | llvm-svn: 86802
OpenPOWER on IntegriCloud