summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a failing ELF Thumb test. I _think_ this is right, but it's not totally ↵Owen Anderson2011-09-121-1/+1
| | | | | | clear to me what this test is doing. Could someone on an ELF platform check? llvm-svn: 139549
* Thread safety: small formatting changeCaitlin Sadowski2011-09-121-1/+2
| | | | llvm-svn: 139548
* [libclang] For getDeclFromExpr in CIndex.cpp, associate the decl ofArgyrios Kyrtzidis2011-09-128-23/+28
| | | | | | | a DeclRefExpr, MemberExpr, etc. with a CastExpr if it is ImplicitCast, since the implicit cast is the one that is invisible in source code. llvm-svn: 139547
* Introduce a bit of a hack.Bill Wendling2011-09-121-15/+44
| | | | | | | | | | | | | | | | | | Splitting a landing pad takes considerable care because of PHIs and other nasties. The problem is that the jump table needs to jump to the landing pad block. However, the landing pad block can be jumped to only by an invoke instruction. So we clone the landingpad instruction into its own basic block, have the invoke jump to there. The landingpad instruction's basic block's successor is now the target for the jump table. But because of PHI nodes, we need to create another basic block for the jump table to jump to. This is definitely a hack, because the values for the PHI nodes may not be defined on the edge from the jump table. But that's okay, because the jump table is simply a construct to mimic what is happening in the CFG. So the values are mysteriously there, even though there is no value for the PHI from the jump table's edge (hence calling this a hack). llvm-svn: 139545
* gold plugin: don't report error on non-bitcode (e.g. ELF) files.Ivan Krasin2011-09-121-9/+25
| | | | llvm-svn: 139544
* [analyzer] CmpRuns.cmpScanBuildResults() should be easy to call from other ↵Anna Zaks2011-09-121-18/+32
| | | | | | modules. llvm-svn: 139543
* Thumb2 POP's don't allow the PC as an operand, and PUSH's don't allow the SP ↵Owen Anderson2011-09-122-7/+93
| | | | | | either. llvm-svn: 139542
* Revert the wrong part of r139528, and fix testcases.Bruno Cardoso Lopes2011-09-123-8/+8
| | | | llvm-svn: 139541
* Rename CmpRuns into CmpRuns.py so that it could be used as a module.Anna Zaks2011-09-121-0/+0
| | | | llvm-svn: 139540
* Introduce a cc1-level option to provide the path to the module cache,Douglas Gregor2011-09-1214-25/+58
| | | | | | | | where the compiler will look for module files. Eliminates the egregious hack where we looked into the header search paths for modules. llvm-svn: 139538
* Fix encoding of PC-relative LDRSHW with an immediate offset.Owen Anderson2011-09-122-11/+21
| | | | llvm-svn: 139537
* Conditionalize indvars tests that rely on SCEV expansion of geps,Andrew Trick2011-09-125-25/+26
| | | | | | | which is relevant with canonical IVs. Anything else being checked by these tests is already covered by early CSE. llvm-svn: 139535
* Fix indentations, add some comments.Johnny Chen2011-09-121-5/+5
| | | | llvm-svn: 139534
* Change a bunch of isVolatile() checks to check for atomic load/store as well.Eli Friedman2011-09-125-19/+19
| | | | | | | | No tests; these changes aren't really interesting in the sense that the logic is the same for volatile and atomic. I believe this completes all of the changes necessary for the optimizer to handle loads and stores correctly. I'm going to try and come up with some additional testing, though. llvm-svn: 139533
* There's no need to add additional predicate operands when converting a tB to ↵Owen Anderson2011-09-121-2/+0
| | | | | | a tBfar now. Fixes nightly test failures on armv6 Thumb. <rdar://problem/10110404> llvm-svn: 139531
* Fix typo.Eric Christopher2011-09-121-1/+1
| | | | llvm-svn: 139530
* Added GDB/LLDB commands for the "target stop-hook add" command.Greg Clayton2011-09-121-0/+37
| | | | llvm-svn: 139529
* Not sure how CMPPS and CMPPD had already ever worked, I guess it didn't.Bruno Cardoso Lopes2011-09-123-9/+55
| | | | | | | | | | | | However with this fix it does now. Basically the operand order for the x86 target specific node is not the same as the instruction, but since the intrinsic need that specific order at the instruction definition, just change the order during legalization. Also, there were some wrong invertions of condition codes, such as GE => LE, GT => LT, fix that too. Fix PR10907. llvm-svn: 139528
* Organize a bit the operand names for CMPPS and CMPPDBruno Cardoso Lopes2011-09-121-18/+18
| | | | llvm-svn: 139527
* Realign BLEND patterns to match the general style for patterns in .td file.Bruno Cardoso Lopes2011-09-121-45/+42
| | | | llvm-svn: 139526
* Fix 80-columnsBruno Cardoso Lopes2011-09-121-12/+16
| | | | llvm-svn: 139525
* Fix a bug in OptionGroupWatchpoint.cpp where the '-w' option arg parsing ↵Johnny Chen2011-09-122-1/+18
| | | | | | | | | | | result was not checked to effect an early error return. Plus add logic to 'frame variable' command object to check that when watchpoint option is on, only one variable with exact name (no regex) is specified as the sole command arg. llvm-svn: 139524
* Kill off an irrelevant FIXMEDouglas Gregor2011-09-121-4/+1
| | | | llvm-svn: 139523
* Port more encoding tests to decoding tests, and correct an improper Thumb2 ↵Owen Anderson2011-09-123-0/+545
| | | | | | pre-indexed load decoding this uncovered. llvm-svn: 139522
* By popular demand, enumerate all builtin types!Devang Patel2011-09-121-2/+14
| | | | llvm-svn: 139521
* Refactor CheckAdditionOperands() to use early return for pointer addition.Richard Trieu2011-09-121-21/+22
| | | | llvm-svn: 139520
* Diagnose attempt to mark function-local declarations as __module_private__.Douglas Gregor2011-09-123-7/+51
| | | | llvm-svn: 139519
* Removing indvars tests that directly test canonical IVs and nothing else.Andrew Trick2011-09-126-137/+0
| | | | llvm-svn: 139518
* Rename -disable-iv-rewrite to -enable-iv-rewrite=false in preparation for ↵Andrew Trick2011-09-1211-52/+30
| | | | | | default change. llvm-svn: 139517
* [analyzer] Simplify the test, use generic/more descriptive names.Anna Zaks2011-09-121-8/+8
| | | | llvm-svn: 139516
* Add asserts to keep front-ends honest while encoding debug info into LLVM IR ↵Devang Patel2011-09-121-0/+9
| | | | | | using DIBuilder. llvm-svn: 139515
* Add an assert so that new builtins do not sneak without proper debug info.Devang Patel2011-09-121-0/+2
| | | | llvm-svn: 139514
* Update test to fix windows buildbot.Devang Patel2011-09-121-1/+4
| | | | llvm-svn: 139513
* [libclang] In ASTUnit::Parse copy the CompilerInvocation object instead ofArgyrios Kyrtzidis2011-09-125-17/+27
| | | | | | | | | | | | modifying directly for the preamble. This avoids an awful, hard to find, bug where "PreprocessorOpts.DisablePCHValidation = true" would be persistent for subsequent reparses of the translation unit which would result in defines, present in command-line but not in the PCH, being ignored. Fixes rdar://9615399. llvm-svn: 139512
* [libclang] Make c-index-test check CINDEXTEST_REMAP_AFTER_TRIAL environment ↵Argyrios Kyrtzidis2011-09-121-1/+10
| | | | | | | | | variable, which when set it determines the trial number after which the remapping of files should take effect. llvm-svn: 139511
* Fix two comments from warn to emit error to match the actual diagnostic used.Richard Trieu2011-09-121-2/+2
| | | | llvm-svn: 139510
* [analyzer] Fix a failure encountered while analyzing bind (radar://10105448).Anna Zaks2011-09-122-1/+12
| | | | llvm-svn: 139509
* Doxygen comments.Anna Zaks2011-09-121-2/+2
| | | | llvm-svn: 139508
* [analyzer] Fix a new failure encountered while building Adium exposed as a ↵Anna Zaks2011-09-122-2/+27
| | | | | | result of r138196(radar://10087620). ObjectiveC property of type int has a value of type ObjCPropRef, which is a Loc. llvm-svn: 139507
* [analyzer] Test for -analyze-function on ObjectiveC to accompany r139439.Anna Zaks2011-09-121-0/+56
| | | | llvm-svn: 139506
* Fix mistake in test runline.Eli Friedman2011-09-121-1/+1
| | | | llvm-svn: 139505
* Test case for r139453, WidenIV::GetExtendedOperandRecurrence.Andrew Trick2011-09-121-0/+30
| | | | llvm-svn: 139504
* Add DW_ATE_UTF, which clang started using in my previous commit!Devang Patel2011-09-122-0/+2
| | | | llvm-svn: 139503
* Fix debug info encodings for char16_t and char32_t.Devang Patel2011-09-122-2/+7
| | | | llvm-svn: 139502
* Remove the -compact-regions flag.Jakob Stoklund Olesen2011-09-121-11/+5
| | | | | | | It has been enabled by default for a while, it was only there to allow performance comparisons. llvm-svn: 139501
* Add an interface for SplitKit complement spill modes.Jakob Stoklund Olesen2011-09-123-5/+49
| | | | | | | | | | | | | | | | | | | | | | | | | SplitKit always computes a complement live range to cover the places where the original live range was live, but no explicit region has been allocated. Currently, the complement live range is created to be as small as possible - it never overlaps any of the regions. This minimizes register pressure, but if the complement is going to be spilled anyway, that is not very important. The spiller will eliminate redundant spills, and hoist others by making the spill slot live range overlap some of the regions created by splitting. Stack slots are cheap. This patch adds the interface to enable spill modes in SplitKit. In spill mode, SplitKit will assume that the complement is going to spill, so it will allow it to overlap regions in order to avoid back-copies. By doing some of the spiller's work early, the complement live range becomes simpler. In some cases, it can become much simpler because no extra PHI-defs are required. This will speed up both splitting and spilling. This is only the interface to enable spill modes, no implementation yet. llvm-svn: 139500
* Allow __module_private__ on fieldsDouglas Gregor2011-09-122-0/+16
| | | | llvm-svn: 139499
* Update comments to reflect some (not so) recent changes.Jakob Stoklund Olesen2011-09-121-4/+5
| | | | llvm-svn: 139498
* Remove the restriction on module-private friends. Since the friendDouglas Gregor2011-09-123-11/+2
| | | | | | | declaration may be the first declaration, we want the ability to that declaration to be marked module-private. llvm-svn: 139497
* Only predefine the __EXCEPTIONS macro if C++ exceptions are turned on.Douglas Gregor2011-09-123-3/+20
| | | | | | | Only predefine the OBJC_ZEROCOST_EXCEPTIONS macro if Objective-C exceptions are turned on. Fixes PR10910. llvm-svn: 139496
OpenPOWER on IntegriCloud