summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Some cleanups. No functional changes.Owen Anderson2009-01-241-26/+34
| | | | llvm-svn: 62917
* Add simple make based harness for running ABI tests.Daniel Dunbar2009-01-242-0/+128
| | | | llvm-svn: 62916
* Start filling in x86_64 ABI implementation.Daniel Dunbar2009-01-241-13/+159
| | | | | | | - No functionality change, moved behind -use-x86_64-abi option until it becomes non-experimental. llvm-svn: 62915
* Updated checker build.Ted Kremenek2009-01-241-1/+1
| | | | llvm-svn: 62914
* Fix crash ElementRegion::getRValueType() when the RvalueType of the ↵Ted Kremenek2009-01-242-10/+19
| | | | | | ArrayRegion is a typedef and not (directly) a pointer. llvm-svn: 62909
* Improve the inlining cost function a bit.Dale Johannesen2009-01-241-3/+6
| | | | | | Little practical effect. llvm-svn: 62908
* Make InstCombineStoreToCast handle aggregates more aggressively,Chris Lattner2009-01-242-18/+65
| | | | | | | handling the case in Transforms/InstCombine/cast-store-gep.ll, which is a heavily reduced testcase from Clang on x86-64. llvm-svn: 62904
* More hacking on static analyzer diagnostics. When emitting summary ↵Ted Kremenek2009-01-247-164/+130
| | | | | | diagnostics the code paths for diagnostics involving paths or single locations are now unified. This patch also constifies many arguments/methods that are touched by this logic, leading to a nice overall code cleanup. llvm-svn: 62903
* Perform optional clang building.Mike Stump2009-01-242-0/+11
| | | | llvm-svn: 62895
* Some very early work for new objc's Fariborz Jahanian2009-01-231-11/+208
| | | | | | meta-data generation. llvm-svn: 62894
* Refactor code. No functionality change.Evan Cheng2009-01-231-20/+38
| | | | llvm-svn: 62893
* Introduce two DWARF attribute extentions DW_AT_APPLE_optimized, ↵Devang Patel2009-01-235-4/+23
| | | | | | | | | | | | DW_AT_APPLE_flags. DW_AT_APPLE_optimized flag is set when a compile_unit is optimized. The debugger takes advantage of this information some way. DW_AT_APPLE_flags encodes command line options when certain env. variable is set. This is used by build engineers to track various gcc command lines used by by a project, irrespective of whether the project used makefile, Xcode or something else. llvm-gcc patch is next. llvm-svn: 62888
* hopefully address PR3379 by making the P modifier work in x86 inline asm.Chris Lattner2009-01-231-0/+3
| | | | llvm-svn: 62887
* Fix a small regression in warning about template type parameter redeclarations.Douglas Gregor2009-01-231-1/+1
| | | | llvm-svn: 62886
* Output summary diagnostic for each bug report.Ted Kremenek2009-01-231-7/+12
| | | | llvm-svn: 62885
* More APSInt appeasementDouglas Gregor2009-01-232-13/+21
| | | | llvm-svn: 62884
* Fix test case. Use valid file name and directory in global variable's debug ↵Devang Patel2009-01-231-1/+1
| | | | | | info entry. llvm-svn: 62883
* Make sure that all NamedDecls have an identifier namespace.Douglas Gregor2009-01-232-9/+16
| | | | | | Make sure that we know a call is invalid if we dropped arguments. llvm-svn: 62882
* use CallSite::isCalle instead of slow getOperandNoGabor Greif2009-01-231-3/+3
| | | | llvm-svn: 62877
* Hopefully the last of the APSInt signedness issues with initializers. Fixes ↵Douglas Gregor2009-01-232-1/+3
| | | | | | PR clang/3378 llvm-svn: 62876
* Added clang option '--analyzer-display-progress' to indicate that the ↵Ted Kremenek2009-01-234-12/+27
| | | | | | analyzer should output 'ANALYZE:' messages to display its progress on a source file. llvm-svn: 62875
* Added virtual method DiagnosticClient::IncludeInDiagnosticCounts(). This is ↵Ted Kremenek2009-01-234-43/+59
| | | | | | | | used by Diagnostics to determine if a diagnostic sent to a given DiagnosticClient should be included in the count of diagnostics. The default implementation of this method returns 'true'. Implemented DiagCollector::IncludeInDiagnosticCounts() to return 'false' so that the batching of diagnostics for use with BugReporter doesn't mess up the count of real diagnostics. llvm-svn: 62873
* ccc: Finish definition of long argument translations.Daniel Dunbar2009-01-232-8/+42
| | | | | | | | - However, these last ones do not actually work; the issue is that they translate to batches of options and need to be reparsed. For now we just give an unsupported error on them. llvm-svn: 62872
* When using -analyzer-output-plist always output a plist file even if it ↵Ted Kremenek2009-01-235-17/+29
| | | | | | contains no error reports. llvm-svn: 62871
* ccc: Another batch of long argument translations.Daniel Dunbar2009-01-231-5/+69
| | | | | | - Again turned up a few which don't do anything sensible. llvm-svn: 62870
* Simplify the logic of getting hold of a PHI predecessor block.Gabor Greif2009-01-236-12/+14
| | | | | | | | | There is now a direct way from value-use-iterator to incoming block in PHINode's API. This way we avoid the iterator->index->iterator trip, and especially the costly getOperandNo() invocation. Additionally there is now an assertion that the iterator really refers to one of the PHI's Uses. llvm-svn: 62869
* Add support for deleting a module provider from a JIT in such a way that it ↵Nate Begeman2009-01-234-2/+48
| | | | | | does not cause the owned module to be fully materialized. llvm-svn: 62864
* Empty DIType represents void. In this case no need to construct any type DIE.Devang Patel2009-01-231-3/+1
| | | | llvm-svn: 62861
* Fold x-0 to x in unsafe-fp-math mode. This comes up in theDan Gohman2009-01-232-9/+19
| | | | | | | | | | | | | | testcase from PR3376, and in fact is sufficient to completely avoid the problem in that testcase. There's an underlying problem though; TLI.isOperationLegal considers Custom to be Legal, which might be ok in some cases, but that's what DAGCombiner is using in many places to test if something is legal when LegalOperations is true. When DAGCombiner is running after legalize, this isn't sufficient. I'll address this in a separate commit. llvm-svn: 62860
* Allow subtraction of function pointer types in C, as a GNU extension. Fixes ↵Douglas Gregor2009-01-232-0/+16
| | | | | | rdar://problem/6520707 llvm-svn: 62859
* Make sure all of the isUnsigned flags line up when comparing initializer ↵Douglas Gregor2009-01-232-3/+8
| | | | | | values, to really really fix PR clang/3377 llvm-svn: 62858
* Handle pointer arithmetic on function pointers.Daniel Dunbar2009-01-232-8/+46
| | | | | | - <rdar://problem/6518844> Clang-generated bitcode crashes LLVM while compiling function pointer addition expression llvm-svn: 62857
* This is a follow-up to r62675:Chris Lattner2009-01-235-16/+20
| | | | | | | | | | Refactor how the preprocessor changes a token from being an tok::identifier to a keyword (e.g. tok::kw_for). Instead of doing this in HandleIdentifier, hoist this common case out into the caller, so that every keyword doesn't have to go through HandleIdentifier. This drops time in HandleIdentifier from 1.25ms to .62ms, and speeds up clang -Eonly with PTH by about 1%. llvm-svn: 62855
* Preprocessor doesn't require and IdentifierInfoLookup object.Chris Lattner2009-01-231-1/+1
| | | | | | Patch by Axel Naumann! llvm-svn: 62854
* Checked in an oops!Fariborz Jahanian2009-01-231-1/+2
| | | | llvm-svn: 62853
* Another missing LLVM type for objc2's new abi defined.Fariborz Jahanian2009-01-231-3/+12
| | | | llvm-svn: 62852
* Properly manage the bit-widths of APInts/APSInts in array initialization.Douglas Gregor2009-01-233-8/+18
| | | | | | Fixes PR clang/3377 llvm-svn: 62851
* Handle any undeclared parameters in a K&R-style function with aDouglas Gregor2009-01-236-4/+30
| | | | | | | | | special action, inside function prototype scope. This avoids confusion when we try to inject these parameters into the scope of the function body before the function itself has been added to the surrounding scope. Fixes <rdar://problem/6097326>. llvm-svn: 62849
* Implement retrieval of the default value of element and field regions.Zhongxing Xu2009-01-232-0/+17
| | | | llvm-svn: 62847
* Now this comment should be resolved. See the comments for the KillSet.Zhongxing Xu2009-01-231-6/+0
| | | | llvm-svn: 62846
* Add a test case for init expr of array and struct type.Zhongxing Xu2009-01-231-0/+1
| | | | llvm-svn: 62845
* When getting the element region type, we should get the rvalue type of the superZhongxing Xu2009-01-231-2/+2
| | | | | | region. Otherwise we would get an extra level of pointer type. llvm-svn: 62844
* Patch to build llvm with srcdir != objdir fromDuncan Sands2009-01-232-6/+16
| | | | | | | | llvm-top. By Michael Schuerig, with some small tweaks to make the "don't configure if already configured" logic work. llvm-svn: 62842
* ccc: Implement long options which take joined & separate forms.Daniel Dunbar2009-01-231-8/+55
| | | | llvm-svn: 62841
* fix two more cases where we could let the NLPDI cache get unsorted.Chris Lattner2009-01-232-5/+114
| | | | | | With this, sqlite3 now passes. llvm-svn: 62839
* Unconditionally reset 'cache' to zero, even if we don't need to resort it.Chris Lattner2009-01-231-5/+4
| | | | | | | | | This avoids using a dangling pointer. Reset NumSortedEntries after restoring Cache to avoid extraneous sorts. This fixes the reduced sqlite3 testcase, but apparently not the whole app. llvm-svn: 62838
* Only check if coalescing is worthwhile when the result is targeting a more ↵Evan Cheng2009-01-231-1/+6
| | | | | | restrictive register class. llvm-svn: 62837
* Update test to reflect command line option name change.Evan Cheng2009-01-231-1/+1
| | | | llvm-svn: 62836
* Stage two of fixing pre-alloc-splitting's code size issues: filter out ↵Owen Anderson2009-01-231-9/+37
| | | | | | | | | | restores that are just going to be re-spilled again. This also helps performance. Pre-alloc-splitting now seems to be an overall win on SPEC. llvm-svn: 62834
* Cross register class coalescing. Not yet enabled.Evan Cheng2009-01-233-109/+129
| | | | llvm-svn: 62832
OpenPOWER on IntegriCloud