summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make the DenseMap bucket type configurable and use a smaller bucket for ↵Benjamin Kramer2014-12-064-108/+133
| | | | | | | | | | | | | | DenseSet. DenseSet used to be implemented as DenseMap<Key, char>, which usually doubled the memory footprint of the map. Now we use a compressed set so the second element uses no memory at all. This required some surgery on DenseMap as all accesses to the bucket now have to go through methods; this should have no impact on the behavior of DenseMap though. The new default bucket type for DenseMap is a slightly extended std::pair as we expose it through DenseMap's iterator and don't want to break any existing users. llvm-svn: 223588
* Reapply "LLVMContext: Store APInt/APFloat directly into the ConstantInt/FP ↵Benjamin Kramer2014-12-063-50/+32
| | | | | | | | DenseMaps." This reapplies r223478 with a fix for 32 bit targets. llvm-svn: 223586
* ConstantFold: Don't optimize comparisons with weak linkage objectsDavid Majnemer2014-12-062-1/+9
| | | | | | | | | | | | Consider: void f() {} void __attribute__((weak)) g() {} bool b = &f != &g; It's possble for g to resolve to f if --defsym=g=f is passed on to the linker. llvm-svn: 223585
* I didn't intend to commit this change.David Majnemer2014-12-061-1/+1
| | | | llvm-svn: 223584
* InstSimplify: Optimize away useless unsigned comparisonsDavid Majnemer2014-12-063-1/+98
| | | | | | Code like X < Y && Y == 0 should always be folded away to false. llvm-svn: 223583
* Reformat.NAKAMURA Takumi2014-12-062-29/+21
| | | | llvm-svn: 223580
* R600/SI: Restore PrivateGlobalPrefix to the default ELF value of ".L"Tom Stellard2014-12-062-2/+5
| | | | | | This was changed in r223323. llvm-svn: 223579
* Rename a couple of preprocessor symbols to be more descriptive. NFC.Paul Robinson2014-12-063-11/+11
| | | | | | Review feedback from recent changes to GetSVN.cmake. llvm-svn: 223578
* [modules] If we import a module, and we've seen a module map that describes theRichard Smith2014-12-0610-4/+60
| | | | | | | | | module, use the path from the module map file in preference to the path from the .pcm file when resolving relative paths in the .pcm file. This allows diagnostics (and .d output) to give relative paths if the module was found via a relative path. llvm-svn: 223577
* Avoid angle brackets in comment. [-Wdocumentation-html]NAKAMURA Takumi2014-12-061-1/+1
| | | | llvm-svn: 223576
* Fixed an unfortunate reversed conditional thatSean Callanan2014-12-061-1/+1
| | | | | | resulted in hard-to-track-down crashes. Sigh. llvm-svn: 223575
* IR: Disallow function-local metadata attachmentsDuncan P. N. Exon Smith2014-12-066-7/+17
| | | | | | | | Metadata attachments to instructions cannot be function-local. This is part of PR21532. llvm-svn: 223574
* LLVMInstrumentation requires MC since r223532.NAKAMURA Takumi2014-12-061-1/+1
| | | | llvm-svn: 223573
* Fix typoMatt Arsenault2014-12-061-4/+5
| | | | llvm-svn: 223572
* Add a proper triple to switch-jump-table.llHans Wennborg2014-12-061-1/+1
| | | | llvm-svn: 223571
* llvm/test/CodeGen/X86/switch-jump-table.ll: Add explicit triple. Local ↵NAKAMURA Takumi2014-12-061-1/+1
| | | | | | labels have a prefix "." for targeting i686-cygming. llvm-svn: 223570
* Improvements to FastDemangler to correct parsing of <local-name> encodings ↵Kate Stone2014-12-061-0/+4
| | | | | | for string literal and parameter/entity cases. Patch courtesy of slydiman. llvm-svn: 223569
* Reverting r223548 which broke running in the shell on OS X.Jim Ingham2014-12-065-50/+31
| | | | llvm-svn: 223568
* [X86] Refactor PMOV[SZ]Xrm to add missing AVX2 patterns.Ahmed Bougacha2014-12-066-533/+614
| | | | | | | | Most patterns will go away once the extload legalization changes land. Differential Revision: http://reviews.llvm.org/D6125 llvm-svn: 223567
* SelectionDAG switch lowering: Replace unreachable default with most popular ↵Hans Wennborg2014-12-064-23/+98
| | | | | | | | | | | | | | | | | | case. This can significantly reduce the size of the switch, allowing for more efficient lowering. I also worked with the idea of exploiting unreachable defaults by omitting the range check for jump tables, but always ended up with a non-neglible binary size increase. It might be worth looking into some more. SimplifyCFG currently does this transformation, but I'm working towards changing that so we can optimize harder based on unreachable defaults. Differential Revision: http://reviews.llvm.org/D6510 llvm-svn: 223566
* Add the ability to set breakpoints with conditions, commands, etc,Jim Ingham2014-12-0628-114/+504
| | | | | | | | | | | | | | in the "dummy-target". The dummy target breakpoints prime all future targets. Breakpoints set before any target is created (e.g. breakpoints in ~/.lldbinit) automatically get set in the dummy target. You can also list, add & delete breakpoints from the dummy target using the "-D" flag, which is supported by most of the breakpoint commands. This removes a long-standing wart in lldb... <rdar://problem/10881487> llvm-svn: 223565
* IR: Disallow complicated function-local metadataDuncan P. N. Exon Smith2014-12-066-66/+81
| | | | | | | | | | Disallow complex types of function-local metadata. The only valid function-local metadata is an `MDNode` whose sole argument is a non-metadata function-local value. Part of PR21532. llvm-svn: 223564
* No memcpy for copy ctor with -fsanitize-address-field-padding=1Kostya Serebryany2014-12-062-2/+4
| | | | | | | | | | | | | | | | | | | Summary: When -fsanitize-address-field-padding=1 is present don't emit memcpy for copy constructor. Thanks Nico for the extra test case. Test Plan: regression tests Reviewers: thakis, rsmith Reviewed By: rsmith Subscribers: rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D6515 llvm-svn: 223563
* Fix for xunit output to work around issue in Jenkins when tests are at the ↵Chris Matthews2014-12-061-1/+1
| | | | | | root level llvm-svn: 223562
* PR21217: Slightly more eagerly load -fmodule-map-file= files and provideRichard Smith2014-12-065-18/+12
| | | | | | diagnostics if they don't exist. Based on a patch by John Thompson! llvm-svn: 223561
* Now that we get types from modules, we occasionallySean Callanan2014-12-063-16/+37
| | | | | | | | | | encounter clang::ExternalASTSources that are not instances of ClangExternalASTSourceCommon. We used to blithely assume that all are, and so we could use static_cast<>. That's no longer the case, so we have to have these AST sources register themselves. llvm-svn: 223560
* Fix a type (MAX_PATH instead of PATH_MAX) and remove an unused variable.Jim Ingham2014-12-061-2/+1
| | | | llvm-svn: 223559
* Add new-lines after module compiler errors soSean Callanan2014-12-061-0/+1
| | | | | | they are readable. llvm-svn: 223557
* Utils: Style cleanups, NFCDuncan P. N. Exon Smith2014-12-061-7/+7
| | | | llvm-svn: 223556
* Utils: Avoid RAUW on metadata in CloneFunction()Duncan P. N. Exon Smith2014-12-061-4/+4
| | | | llvm-svn: 223555
* Canonicalize multiplies by looking at whether the operands have any ↵Nick Lewycky2014-12-061-5/+26
| | | | | | constants themselves. Patch by Tim Murray! llvm-svn: 223554
* [TEST-COMMIT] As per Developer Policy, Added a blank line.Neeraj Badlani2014-12-061-0/+1
| | | | llvm-svn: 223553
* AArch64: use explicit MVT::i64 when creating EXTRACT_SUBVECTOR nodes.Tim Northover2014-12-061-10/+12
| | | | | | | | | All our patterns use MVT::i64, but the ISelLowering nodes were inconsistent in their choice. No functional change. llvm-svn: 223551
* Add an initial description of the rules for constructing new SB API classes.Jim Ingham2014-12-063-1/+71
| | | | llvm-svn: 223550
* Fix corner cases in lit xunit for paths with dotsChris Matthews2014-12-061-2/+9
| | | | llvm-svn: 223549
* Fix some posix assumptions related to running shell commands.Zachary Turner2014-12-065-30/+50
| | | | | | | | Differential Revision: http://reviews.llvm.org/D6553 Reviewed By: Greg Clayton llvm-svn: 223548
* Additional safety for the root cause of regression in r223443; make the moduleRichard Smith2014-12-061-0/+1
| | | | | | map path more canonical before hashing it. No functionality change. llvm-svn: 223547
* Revert "LLVMContext: Store APInt/APFloat directly into the ConstantInt/FP ↵Benjamin Kramer2014-12-063-26/+57
| | | | | | | | | DenseMaps." Somehow made DenseMap probe on forever on 32 bit machines. This reverts commit r223478. llvm-svn: 223546
* Add a list iterable helper and use it to make a BreakpointJim Ingham2014-12-052-0/+19
| | | | | | iterator in the BreakpointList class. llvm-svn: 223544
* First pass at a description of the lldb coding conventions.Jim Ingham2014-12-052-0/+136
| | | | llvm-svn: 223543
* [X86] Cleanup FCOPYSIGN lowering. NFC intended.Ahmed Bougacha2014-12-051-29/+15
| | | | llvm-svn: 223542
* Fix some uninitialized variables in ClangExpressionParser.Zachary Turner2014-12-051-3/+4
| | | | | | Reviewed by: Sean Callanan llvm-svn: 223541
* XFAILing suppression tests on Android. The suppression files are not being ↵Kuba Brecka2014-12-053-0/+6
| | | | | | transfered to the device. llvm-svn: 223540
* [modules] Instead of storing absolute paths in a .pcm file, store the path toRichard Smith2014-12-057-155/+221
| | | | | | | | | | | | | | | the root of the module and use paths relative to that directory wherever possible. This is a step towards allowing explicit modules to be relocated without being rebuilt, which is important for some kinds of distributed builds, for good paths in diagnostics, and for appropriate .d output. This is a recommit of r223443, reverted in r223465; when joining together imported file paths, we now use the system's separator rather than always using '/'. This avoids path mismatches between the original module build and the module user on Windows (at least, in some cases). A more comprehensive fix will follow. llvm-svn: 223539
* ASTDumper: print whether a function is constexprHans Wennborg2014-12-052-5/+9
| | | | llvm-svn: 223538
* Specify the name of the generated header only once. NFC.Paul Robinson2014-12-051-4/+7
| | | | | | This will also simplify a private patch that we have. llvm-svn: 223537
* Add target triples to all dfsan tests.Peter Collingbourne2014-12-0511-0/+11
| | | | llvm-svn: 223536
* Recommit of r223513 and r223514.Kuba Brecka2014-12-051-0/+23
| | | | | | Reviewed at http://reviews.llvm.org/D6488 llvm-svn: 223533
* Recommit of r223513 and r223514.Kuba Brecka2014-12-052-34/+49
| | | | | | Reviewed at http://reviews.llvm.org/D6488 llvm-svn: 223532
* [mach-o] fix leak in atoms -> normalizedNick Kledzik2014-12-051-0/+17
| | | | llvm-svn: 223530
OpenPOWER on IntegriCloud