summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* <rdar://problem/11562050> Greg Clayton2012-05-311-3/+3
| | | | | | | | "thread continue" uses zero based thread indexes, not the thread index ID. Also fixed "thread until" if it uses the -t option. llvm-svn: 157724
* Only visit default arguments for template declarations when visiting the ↵Richard Smith2012-05-302-3/+58
| | | | | | template declaration which introduced them. Patch by Yang Chen! llvm-svn: 157723
* Change wording of 'memcpy' type mismatch warning and remove fixit.Anna Zaks2012-05-304-55/+29
| | | | | | As per comments following r157659. llvm-svn: 157722
* [analyzer]Fix another occurrence of iterator invalidation (LocalTUDecls)Anna Zaks2012-05-301-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Follow up in r155693, r155680. Prevents a hard to reproduce crash with the following stack trace: 3 libsystem_c.dylib 0x00007ff55a835050 _sigtramp + 18446744029881443184 4 clang 0x0000000106218e97 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) + 519 5 clang 0x0000000105cf3002 clang::ParseAST(clang::Sema&, bool, bool) + 690 6 clang 0x00000001059a41d8 clang::ASTFrontendAction::ExecuteAction() + 312 7 clang 0x00000001059a3df7 clang::FrontendAction::Execute() + 231 8 clang 0x00000001059b0ecc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 860 9 clang 0x000000010595e451 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961 10 clang 0x0000000105947f29 cc1_main(char const**, char const**, char const*, void*) + 969 11 clang 0x0000000105958259 main + 473 12 clang 0x0000000105947b34 start + 52 llvm-svn: 157721
* Avoid depending on list orders and register numbering.Jakob Stoklund Olesen2012-05-301-6/+9
| | | | | | This code is covered by test/CodeGen/ARM/arm-modifier.ll. llvm-svn: 157720
* Add a test for '%@' suggestion for classes.Jordan Rose2012-05-301-0/+11
| | | | llvm-svn: 157718
* Extract some pointer hacking to a function.Jakob Stoklund Olesen2012-05-301-22/+22
| | | | | | Switch to MCSuperRegIterator while we're there. llvm-svn: 157717
* Suggest '%@' for Objective-C objects in ObjC format strings.Jordan Rose2012-05-303-1/+123
| | | | llvm-svn: 157716
* Prioritize smaller register classes for urgent evictions.Jakob Stoklund Olesen2012-05-302-1/+16
| | | | | | | | | | | | | | It helps compile exotic inline asm. In the test case, normal GR32 virtual registers use up eax-edx so the final GR32_ABCD live range has no registers left. Since all the live ranges were tiny, we had no way of prioritizing the smaller register class. This patch allows tiny unspillable live ranges to be evicted by tiny unspillable live ranges from a smaller register class. <rdar://problem/11542429> llvm-svn: 157715
* Disable -Wunique-enum for anonymous enums.David Blaikie2012-05-303-5/+7
| | | | | | | | | | | | | This is a large class of false positives where anonymous enums are used to declare constants (see Clang's Diagnostics.h for example). A small number of true positives could probably be found in this bucket by still warning if the anonymous enum is used in a declarator (enum { ... } x;) but so far we don't believe this to be a source of significant benefit so I haven't bothered to preserve those cases. General offline review/acknowledgment by rtrieu. llvm-svn: 157713
* <rdar://problem/11537498>Greg Clayton2012-05-301-2/+20
| | | | | | | | | | | | | | | | | Fixed an issue with the symbol table parsing of files that have STAB entries in them where there are two N_SO entries where the first has a directory, and the second contains a full path: [ 0] 00000002 64 (N_SO ) 00 0000 0000000000000000 '/Volumes/data/src/' [ 1] 0000001e 64 (N_SO ) 00 0000 0000000000000000 '/Volumes/data/src/Source/main.m' [ 2] 00000047 66 (N_OSO ) 09 0001 000000004fc642d2 '/tmp/main.o' [ 3] 00000001 2e (N_BNSYM ) 01 0000 0000000000003864 [ 4] 000000bd 24 (N_FUN ) 01 0000 0000000000003864 '_main' [ 5] 00000001 24 (N_FUN ) 00 0000 00000000000000ae [ 6] 00000001 4e (N_ENSYM ) 01 0000 00000000000000ae [ 7] 00000001 64 (N_SO ) 01 0000 0000000000000000 We now correctly combine entries 0 and 1 into a single entry. llvm-svn: 157712
* Print uint16_t numbers without a sign.Jakob Stoklund Olesen2012-05-301-1/+1
| | | | | | It seems I broke C++11. llvm-svn: 157711
* Add support for the mips inline asm 'm' output modifier.Eric Christopher2012-05-302-0/+11
| | | | | | Patch by Jack Carter. llvm-svn: 157709
* Switch the canonical FMA term operand order to match both the comment I ↵Owen Anderson2012-05-302-2/+2
| | | | | | wrote and the usual LLVM convention. llvm-svn: 157708
* Teach DAGCombine to canonicalize the position of a constant in the term ↵Owen Anderson2012-05-302-0/+13
| | | | | | operands of an FMA node. llvm-svn: 157707
* Remove extra space.Chad Rosier2012-05-301-1/+1
| | | | llvm-svn: 157706
* Reinstate -O3 for LTO.David Blaikie2012-05-301-3/+3
| | | | | | | | | | | | | | | | | This broke in r144788 when the CodeGenOpt option was moved from everywhere else (specifically, from addPassesToEmitFile) to createTargetMachine. Since LTOCodeGenerator wasn't passing the 4th argument, when the 4th parameter became the 3rd, it silently continued to compile (int->bool conversion) but meant something completely different. This change preserves the existing (accidental) and previous (default) semantics of the addPassesToEmitFile and restores the previous/intended CodeGenOpt argument by passing it appropriately to createTargetMachine. (discovered by pending changes to -Wconversion to catch constant->bool conversions) llvm-svn: 157705
* Make sure that we're dealing with a binary SCEVExpr when simplifying.Benjamin Kramer2012-05-301-1/+2
| | | | llvm-svn: 157704
* Fix some uses of getSubRegisters() to use getSubReg() instead.Jakob Stoklund Olesen2012-05-303-10/+13
| | | | | | | It is better to address sub-registers directly by name instead of relying on their position in the sub-register list. llvm-svn: 157703
* Remove some redundant tests.Jakob Stoklund Olesen2012-05-301-3/+1
| | | | | | | An empty list is not represented as a null pointer. Let TRI do its own shortcuts. llvm-svn: 157702
* Teach SCEV's icmp simplification logic that a-b == 0 is equivalent to a == b.Benjamin Kramer2012-05-303-2/+64
| | | | | | | | | | | | | | | This also required making recursive simplifications until nothing changes or a hard limit (currently 3) is hit. With the simplification in place indvars can canonicalize loops of the form for (unsigned i = 0; i < a-b; ++i) into for (unsigned i = 0; i != a-b; ++i) which used to fail because SCEV created a weird umax expr for the backedge taken count. llvm-svn: 157701
* TableGen: Remove extraneous '\' at EOL in generated tests.Jim Grosbach2012-05-301-1/+1
| | | | llvm-svn: 157700
* it's pointed out that R11 can be used for magic things, and doing things ↵Chris Lattner2012-05-303-18/+17
| | | | | | just for 64-bit registers is silly. Just optimize 3 more. llvm-svn: 157699
* Extend the (abi-irrelevant) return convention to be able to return more than ↵Chris Lattner2012-05-302-4/+24
| | | | | | | | | | | | two values in integer registers. This is already supported by the fastcc convention, but it doesn't hurt to support it in the standard conventions as well. In cases where we can cheat at the calling convention, this allows us to avoid returning things through memory in more cases. llvm-svn: 157698
* objective-c: revert r157407. It broke a projectFariborz Jahanian2012-05-302-8/+22
| | | | | | and reported as PR12959. // rdar://11499742 llvm-svn: 157697
* [arm-fast-isel] Add support for the llvm.frameaddress() intrinsic.Chad Rosier2012-05-302-0/+136
| | | | | | Patch by Jush Lu <jush.msn@gmail.com>. llvm-svn: 157696
* Add MCRegisterInfo::RegListIterator.Jakob Stoklund Olesen2012-05-302-6/+58
| | | | | | | | | | | Also add subclasses MCSubRegIterator, MCSuperRegIterator, and MCRegAliasIterator. These iterators provide an abstract interface to the MCRegisterInfo register lists so the internal representation can be changed without changing all clients. llvm-svn: 157695
* Adds a toString method to Replacement, which helps debugging.Manuel Klimek2012-05-302-0/+17
| | | | | | Adds missing header guards to Refactoring.h. llvm-svn: 157694
* Be more verbose when installing the signals.Alexander Potapenko2012-05-301-0/+3
| | | | llvm-svn: 157693
* Fix a bug in parsing boolean flags: we used to take the first char of the ↵Alexander Potapenko2012-05-301-2/+3
| | | | | | | | key=value string instead of the first character of the value. llvm-svn: 157692
* Be less verbose when parsing the default options.Alexander Potapenko2012-05-301-2/+4
| | | | llvm-svn: 157691
* www: Add GPGPU Code Generation Documentation.Tobias Grosser2012-05-302-0/+234
| | | | llvm-svn: 157690
* Add llvm.codegen intrinsic patch file to polly/utils.Tobias Grosser2012-05-301-0/+492
| | | | | | | | The "llvm.codegen" intrinsic patch is a patch to LLVM, which is used to generate code for embedded LLVM-IR strings. In Polly, we use it to generate ptx assembly text for GPGPU code generation. llvm-svn: 157689
* Mark insertq/extrq intrinsic readnone.Benjamin Kramer2012-05-301-4/+5
| | | | llvm-svn: 157688
* Fixed a memory leak in clang/Tooling.Alexander Kornienko2012-05-301-2/+1
| | | | llvm-svn: 157687
* supply a simple-minded testcase for r156813, to check whether the embedded ↵Gabor Greif2012-05-303-0/+11
| | | | | | montavista gcc toolchain is recognized llvm-svn: 157686
* Port support for SSE4a extrq/insertq to the old jit code emitter.Benjamin Kramer2012-05-301-1/+1
| | | | llvm-svn: 157685
* Remove little semicolon that caused a lot of warnings.Benjamin Kramer2012-05-301-1/+1
| | | | llvm-svn: 157684
* [asan] instrument cmpxchg and atomicrmwKostya Serebryany2012-05-302-8/+52
| | | | llvm-svn: 157683
* Clang docs update: list command-line flags that control the size of ↵Alexey Samsonov2012-05-301-0/+24
| | | | | | generated debug information. Reviewed by chandlerc@ and echristo@. llvm-svn: 157681
* SSE4A should not imply LZCNT and POPCNT. FMA4 should imply SSE4A. Add ↵Craig Topper2012-05-301-3/+5
| | | | | | missing break at the end of btver1 feature list. llvm-svn: 157680
* Mark the test as failing on both architectures, since LLDB won't handle the ↵Filipe Cabecinhas2012-05-301-2/+2
| | | | | | function to clang. llvm-svn: 157679
* Make the test suite work again on Mac OS X without the LLDB_BUILD_TYPE env varFilipe Cabecinhas2012-05-301-2/+2
| | | | llvm-svn: 157678
* Clean all files when executing 'make clean'Filipe Cabecinhas2012-05-301-0/+2
| | | | llvm-svn: 157677
* Update FIXME. ABM is already covered by LZCNT and POPCNT.Craig Topper2012-05-301-1/+1
| | | | llvm-svn: 157676
* Mark extrqi and insertqi immediate arguments as being ICE.Craig Topper2012-05-301-2/+2
| | | | llvm-svn: 157675
* Test commit - Fix typo in comment.Daniel Jasper2012-05-301-1/+1
| | | | llvm-svn: 157674
* SCEV: Handle a corner case reducing AddRecExpr * AddRecExprAndrew Trick2012-05-302-1/+49
| | | | | | | | | If integer overflow causes one of the terms to reach zero, that can force the entire expression to zero. Fixes PR12929: cast<Ty>() argument of incompatible type llvm-svn: 157673
* Reformat the loop that does AddRecExpr * AddRecExpr reduction.Andrew Trick2012-05-301-55/+56
| | | | | | No functionality. llvm-svn: 157672
* Clean renamed files on 'make clean'Filipe Cabecinhas2012-05-301-0/+3
| | | | llvm-svn: 157669
OpenPOWER on IntegriCloud