summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* While extracting lexical scopes from machine instruction stream, work on one ↵Devang Patel2011-07-261-9/+9
| | | | | | machine basic block at a time. llvm-svn: 136106
* ARM fix for LDREX source register encoding.Jim Grosbach2011-07-261-2/+2
| | | | | | rdar://9842203 llvm-svn: 136102
* SCEV: Added a data structure for storing not-taken info per loopAndrew Trick2011-07-261-127/+212
| | | | | | | exit. Added an interfaces for querying either the loop's exact/max backedge taken count or a specific loop exit's not-taken count. llvm-svn: 136100
* ARM assembly parsing and encoding for SWP[B] instructions.Jim Grosbach2011-07-262-6/+6
| | | | llvm-svn: 136098
* ARM SWP instructions store, too, not just load.Jim Grosbach2011-07-261-5/+3
| | | | llvm-svn: 136096
* Clean up the ARM asm parser a bit.Jim Grosbach2011-07-263-93/+95
| | | | | | | No intendeded functional change. Just cleaning up a bit to make things more self-consistent in layout and style. llvm-svn: 136095
* ARM fix asm parsing range check for [0,31] immediates.Jim Grosbach2011-07-261-1/+3
| | | | llvm-svn: 136091
* ARM parsing and encoding for SVC instruction.Jim Grosbach2011-07-263-4/+25
| | | | llvm-svn: 136090
* Teach the Triple class about kfreebsd (FreeBSD kernel withDuncan Sands2011-07-261-0/+3
| | | | | | a GNU userspace). llvm-svn: 136085
* Add LLVMAddAlwaysInlinerPass to the C API.Rafael Espindola2011-07-261-0/+4
| | | | llvm-svn: 136083
* LLVM 3.0 is here, remove old do nothing method.Rafael Espindola2011-07-261-5/+0
| | | | llvm-svn: 136082
* SrcDef is only written and never read. Remove it.Duncan Sands2011-07-261-8/+7
| | | | llvm-svn: 136080
* Add helper function for getting true/false constants in a uniformDuncan Sands2011-07-261-34/+48
| | | | | | | way for i1 and vector of i1 types. Use these to make some code more self-documenting. llvm-svn: 136079
* The compact unwinding offsets are divided by 8 on 64-bit machines.Bill Wendling2011-07-261-2/+4
| | | | llvm-svn: 136065
* Add 256-bit isel for movsldup/movshdupBruno Cardoso Lopes2011-07-261-21/+28
| | | | llvm-svn: 136051
* More movsldup/movshdup cleanup. Rewrite the mask matching function and addBruno Cardoso Lopes2011-07-262-37/+44
| | | | | | support for 256-bit versions (but no instruction selection yet, coming next). llvm-svn: 136050
* More cleanup, subtarget info isn't used here.Bruno Cardoso Lopes2011-07-261-8/+5
| | | | llvm-svn: 136049
* Add 128-bit AVX versions of movshdup/mosldupBruno Cardoso Lopes2011-07-261-0/+11
| | | | llvm-svn: 136048
* Cleanup movsldup/movshdup matching.Bruno Cardoso Lopes2011-07-262-62/+27
| | | | | | 27 insertions(+), 62 deletions(-) llvm-svn: 136047
* Revert to RA_Assign when a virtreg separates into components.Jakob Stoklund Olesen2011-07-261-1/+3
| | | | | | | | | | | | | When dead code elimination deletes a PHI value, the virtual register may split into multiple connected components. In that case, revert each component to the RS_Assign stage. The new components are guaranteed to be smaller (the original value numbers are distributed among the components), so this will always be making progress. The components are now allowed to evict other live ranges or be split again. llvm-svn: 136034
* Rename createCodeEmitter to createMCCodeEmitter; createObjectStreamer to ↵Evan Cheng2011-07-265-36/+36
| | | | | | createMCObjectStreamer. llvm-svn: 136031
* Remove a file from CMakeLists.txt that Evan removed in r136027.Chandler Carruth2011-07-261-1/+0
| | | | llvm-svn: 136030
* Rename TargetAsmParser to MCTargetAsmParser and TargetAsmLexer to ↵Evan Cheng2011-07-2626-74/+73
| | | | | | MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser. llvm-svn: 136027
* Clean up a pile of hacks in our CMake build relating to TableGen.Chandler Carruth2011-07-2639-13/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first problem to fix is to stop creating synthetic *Table_gen targets next to all of the LLVM libraries. These had no real effect as CMake specifies that add_custom_command(OUTPUT ...) directives (what the 'tablegen(...)' stuff expands to) are implicitly added as dependencies to all the rules in that CMakeLists.txt. These synthetic rules started to cause problems as we started more and more heavily using tablegen files from *subdirectories* of the one where they were generated. Within those directories, the set of tablegen outputs was still available and so these synthetic rules added them as dependencies of those subdirectories. However, they were no longer properly associated with the custom command to generate them. Most of the time this "just worked" because something would get to the parent directory first, and run tablegen there. Once run, the files existed and the build proceeded happily. However, as more and more subdirectories have started using this, the probability of this failing to happen has increased. Recently with the MC refactorings, it became quite common for me when touching a large enough number of targets. To add insult to injury, several of the backends *tried* to fix this by adding explicit dependencies back to the parent directory's tablegen rules, but those dependencies didn't work as expected -- they weren't forming a linear chain, they were adding another thread in the race. This patch removes these synthetic rules completely, and adds a much simpler function to declare explicitly that a collection of tablegen'ed files are referenced by other libraries. From that, we can add explicit dependencies from the smaller libraries (such as every architectures Desc library) on this and correctly form a linear sequence. All of the backends are updated to use it, sometimes replacing the existing attempt at adding a dependency, sometimes adding a previously missing dependency edge. Please let me know if this causes any problems, but it fixes a rather persistent and problematic source of build flakiness on our end. llvm-svn: 136023
* TargetAsmBackend has been renamed to MCAsmBackend.Evan Cheng2011-07-251-1/+1
| | | | llvm-svn: 136012
* Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng2011-07-2529-109/+97
| | | | | | createMCAsmBackend. llvm-svn: 136010
* Initial implementation of 'fence' instruction, the new C++0x-style ↵Eli Friedman2011-07-2512-1/+186
| | | | | | | | replacement for llvm.memory.barrier. This is just a LangRef entry and reading/writing/memory representation; optimizer+codegen support coming soon. llvm-svn: 136009
* Finish adding support for lifetime intrinsics to SROA. Fixes PR10121!Nick Lewycky2011-07-251-1/+110
| | | | llvm-svn: 136008
* ARM assembly parsing and encoding for SSAT16 instruction.Jim Grosbach2011-07-255-6/+32
| | | | llvm-svn: 136006
* Codegen allonesvector better while using AVX: vpcmpeqd + vinsertf128Bruno Cardoso Lopes2011-07-254-13/+58
| | | | | | This also fixes PR10452 llvm-svn: 136004
* Add remaining 256-bit vector bitcasts. This also fixes PR10451Bruno Cardoso Lopes2011-07-251-4/+18
| | | | llvm-svn: 136003
* - Handle special scalar_to_vector case: splats. Using a native 128-bitBruno Cardoso Lopes2011-07-254-1/+65
| | | | | | | | | | shuffle before inserting on a 256-bit vector. - Add AVX versions of movd/movq instructions - Introduce a few COPY patterns to match insert_subvector instructions. This turns a trivial insert_subvector instruction into a register copy, coalescing the xmm into a ymm and avoid emiting on more instruction. llvm-svn: 136002
* Reintroduce r135730, this is indeed the right approach, there is noBruno Cardoso Lopes2011-07-251-0/+18
| | | | | | native 256-bit vector instruction to do scalar_to_vector. llvm-svn: 136001
* Add a note about efficient codegen for binary log.Benjamin Kramer2011-07-251-0/+48
| | | | llvm-svn: 135996
* BranchProbability::print returns void now.Jakub Staszak2011-07-251-2/+1
| | | | llvm-svn: 135994
* Make sure this DAGCombine actually returns an UNDEF of the correct type; ↵Eli Friedman2011-07-251-1/+1
| | | | | | PR10476. llvm-svn: 135993
* Add BlockFrequency class.Jakub Staszak2011-07-252-0/+121
| | | | llvm-svn: 135992
* ARM assembly parsing and encoding for SSAT instruction.Jim Grosbach2011-07-256-63/+122
| | | | | | | | | | | | Fix the Rn register encoding for both SSAT and USAT. Update the parsing of the shift operand to correctly handle the allowed shift types and immediate ranges and issue meaningful diagnostics when an illegal value or shift type is specified. Add aliases to parse an ommitted shift operand (default value of 'lsl #0'). Add tests for diagnostics and proper encoding. llvm-svn: 135990
* Add clarifying comments for the new arguments to UnrollLoop.Andrew Trick2011-07-251-0/+12
| | | | llvm-svn: 135988
* Refactoring fail.Evan Cheng2011-07-255-49/+47
| | | | llvm-svn: 135986
* Move CBackend and CppBackend MC initialization to TargetInfo.Evan Cheng2011-07-254-4/+4
| | | | llvm-svn: 135982
* Get rid of an incorrect optimization for shuffles with PALIGNR and simplify ↵Eli Friedman2011-07-251-15/+5
| | | | | | | | isPALIGNRMask. Addresses PR10466, although the crash from that PR only triggers in cases where DAGCombine misses optimizing a shuffle. llvm-svn: 135980
* Fix more MC layering violations.Evan Cheng2011-07-251-2/+9
| | | | llvm-svn: 135979
* More MC layering violations.Evan Cheng2011-07-254-62/+59
| | | | llvm-svn: 135978
* Add a missing enumerator to this switch. Currently its in theChandler Carruth2011-07-251-0/+1
| | | | | | | | | | | | | | assert-path code, as previously we would have fallen off the end of the function, but please review and let me know if this should go somewhere else. This fixes a Clang warning: lib/MC/MCMachOStreamer.cpp:201:11: error: enumeration value 'MCSA_IndirectSymbol' not handled in switch [-Werror,-Wswitch-enum] switch (Attribute) { ^ 1 error generated. llvm-svn: 135976
* Add LLVMAddTargetLibraryInfo to the C API.Rafael Espindola2011-07-251-0/+6
| | | | llvm-svn: 135975
* Separate MCInstPrinter registration from AsmPrinter registration.Evan Cheng2011-07-2514-67/+81
| | | | llvm-svn: 135974
* Add missing space (this line is no longer pushing the 80-column limit).Nick Lewycky2011-07-251-1/+1
| | | | llvm-svn: 135973
* Simply ARM so_reg MIOperandInfo definitions.Jim Grosbach2011-07-251-4/+4
| | | | | | | | The shift immediate encoding, printing, etc. is handled directly by the enclosing operand definition, so it should be a vanilla immediate, not a nested complex operand (shift_imm). llvm-svn: 135968
* Add LLVMAddLowerExpectIntrinsicPass to the C API.Rafael Espindola2011-07-251-0/+4
| | | | llvm-svn: 135966
OpenPOWER on IntegriCloud