summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Hoist the insertVector helper to be a static helper.Chandler Carruth2012-12-171-49/+62
| | | | | | | | | | | | | | | This will allow its use inside of memcpy rewriting as well. This routine is more complex than extractVector, and some of its uses are not 100% where I want them to be so there is still some work to do here. While this can technically change the output in some cases, it shouldn't be a change that matters -- IE, it can leave some dead code lying around that prior versions did not, etc. Yet another step in the refactorings leading up to the solution to the last component of PR14478. llvm-svn: 170328
* Add instruction encodings for ZEXT and SEXT.Richard Osborne2012-12-172-8/+14
| | | | | | Previously these were marked with the wrong format. llvm-svn: 170327
* tsan: correct llvm libc++ nameDmitry Vyukov2012-12-171-1/+1
| | | | llvm-svn: 170326
* Lift the extractVector helper all the way out to a static helper function.Chandler Carruth2012-12-171-30/+32
| | | | | | | | | | | | | | | | | The method helpers all implicitly act upon the alloca, and what we really want is a fully generic helper. Doing memcpy rewrites is more special than all other rewrites because we are at times rewriting instructions which touch pointers *other* than the alloca. As a consequence all of the helpers needed by memcpy rewriting of sub-vector copies will need to be generalized fully. Note that all of these helpers ({insert,extract}{Integer,Vector}) are woefully uncommented. I'm going to go back through and document them once I get the factoring correct. No functionality changed. llvm-svn: 170325
* Factor the vector load rewriting into a more generic form.Chandler Carruth2012-12-171-16/+27
| | | | | | | | | This makes it suitable for use in rewriting memcpy in the presence of subvector memcpy intrinsics. No functionality changed. llvm-svn: 170324
* Add instruction encodings / disassembly support for 2r instructions.Richard Osborne2012-12-174-70/+222
| | | | llvm-svn: 170323
* Add instruction encodings / disassembly support for 0r instructions.Richard Osborne2012-12-173-9/+32
| | | | llvm-svn: 170322
* Simplify assertion in XCoreInstPrinter.Richard Osborne2012-12-171-2/+3
| | | | llvm-svn: 170321
* Update comments to match recommended doxygen style.Richard Osborne2012-12-174-16/+17
| | | | llvm-svn: 170320
* Remove unnecessary include.Richard Osborne2012-12-171-1/+0
| | | | llvm-svn: 170319
* Fix typo that results in new landing pads not getting a name, fixing PR14617.Duncan Sands2012-12-171-1/+1
| | | | | | Patch by Chris Toshok. llvm-svn: 170318
* Fix comment typo.Duncan Sands2012-12-171-1/+1
| | | | llvm-svn: 170317
* Fix several formatting problems.Daniel Jasper2012-12-174-17/+43
| | | | | | | | | More specifically: - Improve formatting of static initializers. - Fix formatting of lines comments in enums. - Fix formmating of trailing line comments. llvm-svn: 170316
* [asan] asan_alocator2: implement quarantine and ReallocateKostya Serebryany2012-12-171-12/+121
| | | | llvm-svn: 170315
* tsan: add __has_feature(thread_sanitizer)Dmitry Vyukov2012-12-173-0/+26
| | | | llvm-svn: 170314
* [asan] implement AsanChunkFifoList via IntrusiveList<AsanChunk>Kostya Serebryany2012-12-172-35/+8
| | | | llvm-svn: 170313
* <rdar://problem/12890901>Han Ming Ong2012-12-171-22/+41
| | | | | | Capturing thread name during profiling. llvm-svn: 170312
* tsan: update docsDmitry Vyukov2012-12-171-18/+20
| | | | llvm-svn: 170311
* [asan] asan_alocator2: implement free() stacks and actually make malloc/free ↵Kostya Serebryany2012-12-171-14/+29
| | | | | | stacks work llvm-svn: 170310
* Clean up a small (messy) section of Clang's release notes for 3.2.Chandler Carruth2012-12-171-12/+8
| | | | llvm-svn: 170309
* Remove EFLAGS from the BLSI/BLSMSK/BLSR patterns. The nodes created by DAG ↵Craig Topper2012-12-171-11/+11
| | | | | | combine don't contain an EFLAGS def. llvm-svn: 170308
* Simplify BMI ANDN matching to use patterns instead of a DAG combine. Also ↵Craig Topper2012-12-174-13/+16
| | | | | | add ANDN to isDefConvertible. llvm-svn: 170305
* Add rest of BMI/BMI2 instructions to the folding tables as well as popcnt ↵Craig Topper2012-12-172-1/+102
| | | | | | and lzcnt. llvm-svn: 170304
* Remove store forms of DEC/INC from isDefConvertible. Since they are stores ↵Craig Topper2012-12-171-6/+2
| | | | | | they don't have a register def. llvm-svn: 170303
* This patch fixes PR13624, which notes a 64-bit PowerPC ELF ABIBill Schmidt2012-12-172-0/+130
| | | | | | | | | | incompatibility with how complex values are returned. It is sufficient to flag all complex types as direct rather than indirect. A new test case is provided that checks correct IR generation for the various supported flavors of _Complex. llvm-svn: 170302
* Fix the first part of PR14478: memset now works.Chandler Carruth2012-12-172-34/+103
| | | | | | | | | | | | | | | | | | | PR14478 highlights a serious problem in SROA that simply wasn't being exercised due to a lack of vector input code mixed with C-library function calls. Part of SROA was written carefully to handle subvector accesses via memset and memcpy, but the rewriter never grew support for this. Fixing it required refactoring the subvector access code in other parts of SROA so it could be shared, and then fixing the splat formation logic and using subvector insertion (this patch). The PR isn't quite fixed yet, as memcpy is still broken in the same way. I'm starting on that series of patches now. Hopefully this will be enough to bring the bullet benchmark back to life with the bb-vectorizer enabled, but that may require fixing memcpy as well. llvm-svn: 170301
* Extract the logic for inserting a subvector into a vector alloca.Chandler Carruth2012-12-171-38/+50
| | | | | | | No functionality changed. Another step of refactoring toward solving PR14487. llvm-svn: 170300
* Lift the integer splat computation into a helper function.Chandler Carruth2012-12-171-11/+28
| | | | | | | | No functionality changed. Refactoring leading up to the fix for PR14478 which requires some significant changes to the memset and memcpy rewriting. llvm-svn: 170299
* Add debug prints for when optimizeLoadInstr folds a load.Craig Topper2012-12-171-0/+6
| | | | llvm-svn: 170298
* IdentifierResolver: Remove an unnecessary include and an unused parameter.Nico Weber2012-12-173-6/+3
| | | | llvm-svn: 170297
* Documentation: add a missing wordDmitri Gribenko2012-12-161-1/+1
| | | | llvm-svn: 170296
* Add tests for disassembly of 1r XCore instructions.Richard Osborne2012-12-162-0/+45
| | | | llvm-svn: 170295
* Clang ReleaseNotes: add information about documentation comments supportDmitri Gribenko2012-12-161-0/+33
| | | | llvm-svn: 170294
* Add instruction encodings and disassembly for 1r instructions.Richard Osborne2012-12-167-42/+113
| | | | llvm-svn: 170293
* Add XCore disassembler.Richard Osborne2012-12-167-2/+113
| | | | | | | | Currently there is no instruction encoding info and XCoreDisassembler::getInstruction() always returns Fail. I intend to add instruction encodings and tests in follow on commits. llvm-svn: 170292
* Remove invalid instruction encodings.Richard Osborne2012-12-161-18/+0
| | | | llvm-svn: 170291
* Mark anything deriving from PseudoInstXCore as a pseudo instruction.Richard Osborne2012-12-161-1/+3
| | | | llvm-svn: 170290
* Set instruction size correctly in XCoreInstrFormats.tdRichard Osborne2012-12-161-20/+21
| | | | llvm-svn: 170289
* Change XCoreAsmPrinter to lower MachineInstrs to MCInsts before emission.Richard Osborne2012-12-1614-27/+401
| | | | | | | This change adds XCoreMCInstLower to do the lowering to MCInst and XCoreInstPrinter to print the MCInsts. llvm-svn: 170288
* Replace ${:comment} with the comment symbol.Richard Osborne2012-12-161-6/+6
| | | | llvm-svn: 170286
* Declare class DwarfDebug before use instead of relying on a forward declarationDmitri Gribenko2012-12-161-0/+1
| | | | | | | | from some other unrelated header. Patch by Kai. llvm-svn: 170284
* Documentation: AutomaticReferenceCounting.rst: use CSS section numbering.Dmitri Gribenko2012-12-161-5/+52
| | | | | | This enables us to use the same document structure as in other files. llvm-svn: 170283
* Don't use SourceLineCache in getColumnNumber if LastLineNoResult is past the ↵Craig Topper2012-12-161-1/+2
| | | | | | end of the cache. Fixes PR14570. llvm-svn: 170281
* MCPureStreamer.cpp: Try to fix build, pruning EmitDebugLabel().NAKAMURA Takumi2012-12-161-1/+0
| | | | llvm-svn: 170280
* This patch is needed to make c++ exceptions work for mips16.Reed Kotler2012-12-1617-4/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mips16 is really a processor decoding mode (ala thumb 1) and in the same program, mips16 and mips32 functions can exist and can call each other. If a jal type instruction encounters an address with the lower bit set, then the processor switches to mips16 mode (if it is not already in it). If the lower bit is not set, then it switches to mips32 mode. The linker knows which functions are mips16 and which are mips32. When relocation is performed on code labels, this lower order bit is set if the code label is a mips16 code label. In general this works just fine, however when creating exception handling tables and dwarf, there are cases where you don't want this lower order bit added in. This has been traditionally distinguished in gas assembly source by using a different syntax for the label. lab1: ; this will cause the lower order bit to be added lab2=. ; this will not cause the lower order bit to be added In some cases, it does not matter because in dwarf and debug tables the difference of two labels is used and in that case the lower order bits subtract each other out. To fix this, I have added to mcstreamer the notion of a debuglabel. The default is for label and debug label to be the same. So calling EmitLabel and EmitDebugLabel produce the same result. For various reasons, there is only one set of labels that needs to be modified for the mips exceptions to work. These are the "$eh_func_beginXXX" labels. Mips overrides the debug label suffix from ":" to "=." . This initial patch fixes exceptions. More changes most likely will be needed to DwarfCFException to make all of this work for actual debugging. These changes will be to emit debug labels in some places where a simple label is emitted now. Some historical discussion on this from gcc can be found at: http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00623.html http://gcc.gnu.org/ml/gcc-patches/2008-11/msg01273.html llvm-svn: 170279
* docs: Fix completely broken adornment structure.Sean Silva2012-12-161-68/+60
| | | | | | | | | | | | The adornment: === Foo === is for titles, not sections. llvm-svn: 170278
* Documentation: random cleanups. Use monospaced font where appropriate,Dmitri Gribenko2012-12-158-205/+202
| | | | | | highlight console output with "code-block:: console", etc. llvm-svn: 170276
* Documentation: convert InternalsManual.html to reSTDmitri Gribenko2012-12-155-2038/+1823
| | | | | | Patch by Anastasi Voitova with with small fixes by me. llvm-svn: 170275
* [sanitizer] fix a bug that has crept into the sanitizer allocator and caused ↵Kostya Serebryany2012-12-152-4/+7
| | | | | | SEGV on allocations between 1Mb and 2Mb, improve the test llvm-svn: 170274
* X86: Add a couple of target-specific dag combines that turn VSELECTS into ↵Benjamin Kramer2012-12-155-18/+428
| | | | | | | | | | | psubus if possible. We match the pattern "x >= y ? x-y : 0" into "subus x, y" and two special cases if y is a constant. DAGCombiner canonicalizes those so we first have to undo the canonicalization for those cases. The pattern occurs in gzip when the loop vectorizer is enabled. Part of PR14613. llvm-svn: 170273
OpenPOWER on IntegriCloud