aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* trailing whitespaceJim Grosbach2010-09-301-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115136 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove misplaced ';'. Make buildbots happy, hopefully.Jim Grosbach2010-09-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115135 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly produce R_X86_64_32 or R_X86_64_32S.Rafael Espindola2010-09-307-20/+73
| | | | | | | | | | | | | With this patch in movq $foo, foo(%rip) foo: .long foo We produce a R_X86_64_32S for the first relocation and R_X86_64_32 for the second one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115134 91177308-0d34-0410-b5e6-96231b3b80d8
* Tiny patch for proof-of-concept cleanup of ARMAsmPrinter::EmitStartOfAsmFile()Jason W Kim2010-09-305-1/+17
| | | | | | | | | Small test for sanity check of resulting ARM .s file. Tested against -r115129. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115133 91177308-0d34-0410-b5e6-96231b3b80d8
* Have ELFAsmParser.cpp use the already parsed "Size" (entry size) when Jan Wen Voung2010-09-302-1/+71
| | | | | | | constructing a section. Test for a few cases also included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115132 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible for the MCObjectWriter to decide if a given fixup is fullyRafael Espindola2010-09-309-137/+274
| | | | | | | | | | | resolved or not. Different object files have different restrictions and different native assemblers have different idiosyncrasies we want to emulate for now. Move the existing MachO logic to the new place and implement an ELF one that gets fixups to globals right. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115131 91177308-0d34-0410-b5e6-96231b3b80d8
* Go ahead and jump!Jim Grosbach2010-09-303-40/+7
| | | | | | | | | Now that the MC lowering handles the expansion of the pseudos, kill the horrible blobs of text. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115130 91177308-0d34-0410-b5e6-96231b3b80d8
* I added a new file ARMAsmBackend which stubs out in similar ways toJason W Kim2010-09-304-0/+153
| | | | | | | | | | | | the eqv X86 class. For now, I split the ELFARMAsmBackend from the DarwinARMAsmBackend (also mimicking X86) Tested against -r115126 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115129 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that the pseudos that needed this are all custom lowered, we can go backJim Grosbach2010-09-302-9/+1
| | | | | | to an empty PrintSpecial() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115128 91177308-0d34-0410-b5e6-96231b3b80d8
* Nuke it from orbit. It's the only way to be sure.Jim Grosbach2010-09-303-766/+22
| | | | | | | (Kill the dead non-MC asm printer for the ARM target.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115127 91177308-0d34-0410-b5e6-96231b3b80d8
* Let a target specify whether it wants an assembly printer to be the MC versionJim Grosbach2010-09-302-1/+9
| | | | | | | | | or not. TableGen needs to generate the printInstruction() function as taking an MCInstr* or a MachineInstr*, depending. Default to the old non-MC version so that everything not yet using MC continues to just work without fidding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115126 91177308-0d34-0410-b5e6-96231b3b80d8
* fix incorrect link!Chris Lattner2010-09-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115124 91177308-0d34-0410-b5e6-96231b3b80d8
* Test commit - Deleted some whitespace at the end of a line.Jan Wen Voung2010-09-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115122 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM instruction itinerary fixes:Evan Cheng2010-09-307-315/+475
| | | | | | | | | 1. Cortex-a9 8-bit and 16-bit loads / stores AGU cycles are 1 cycle longer than 32-bit ones. 2. Cortex-a9 is out-of-order so model all read cycles as cycle 1. 3. Lots of other random fixes for A8 and A9. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115121 91177308-0d34-0410-b5e6-96231b3b80d8
* Add constant folding for strspn and strcspn to SimplifyLibCalls.Benjamin Kramer2010-09-303-15/+105
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115116 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r114320(move file = copy + delete on Win32). r115040 is a better ↵Francois Pichet2010-09-301-11/+4
| | | | | | solution for the Win32 ACCESS_DENIED lit error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115114 91177308-0d34-0410-b5e6-96231b3b80d8
* add a bunch of entries for external projects.Chris Lattner2010-09-301-1/+120
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115112 91177308-0d34-0410-b5e6-96231b3b80d8
* Add strpbrk folding to SimplifyLibCalls.Benjamin Kramer2010-09-292-7/+67
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115111 91177308-0d34-0410-b5e6-96231b3b80d8
* Silence compiler warning.Nick Lewycky2010-09-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115107 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r115099 (adding early jump threading). It's not clear if the ↵Owen Anderson2010-09-291-1/+0
| | | | | | benefits are worth the compile time cost. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115106 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor arm fast isel libcall handling so that pieces can be usedEric Christopher2010-09-291-63/+98
| | | | | | | for generic call handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115105 91177308-0d34-0410-b5e6-96231b3b80d8
* Let FE mark a variable as artificial variable.Devang Patel2010-09-293-4/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115102 91177308-0d34-0410-b5e6-96231b3b80d8
* Noticed by inspection when looking for other cmov bits.Eric Christopher2010-09-291-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115100 91177308-0d34-0410-b5e6-96231b3b80d8
* Early CFG simplification can fold conditionals down to selects, which is ↵Owen Anderson2010-09-291-0/+1
| | | | | | | | | | | often a good thing, but it can also hide jump threading opportunities by turning control flow into data flow. Run an early JumpThreading pass (adds approximately an additional 1% to optimization time on SPEC), allowing it to get a shot at these cases first. Fixes <rdar://problem/8447345>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115099 91177308-0d34-0410-b5e6-96231b3b80d8
* Model Cortex-a9 load to SUB, RSB, ADD, ADC, SBC, RSC, CMN, MVN, or CMPEvan Cheng2010-09-298-79/+159
| | | | | | | pipeline forwarding path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115098 91177308-0d34-0410-b5e6-96231b3b80d8
* Silence msvc warnings.Benjamin Kramer2010-09-291-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115097 91177308-0d34-0410-b5e6-96231b3b80d8
* trailing whitespaceJim Grosbach2010-09-291-54/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115096 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify the loop in StrChrOptimizer. FileCheckize test.Benjamin Kramer2010-09-292-25/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115095 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a convenience variable so I'm not chasing all over looking forEric Christopher2010-09-291-6/+6
| | | | | | | a context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115094 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach SimplifyLibCalls how to optimize strrchr.Benjamin Kramer2010-09-292-6/+67
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115091 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support to let FE encode method access specifier.Devang Patel2010-09-292-2/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115089 91177308-0d34-0410-b5e6-96231b3b80d8
* Generalize DISubprogram element to encode various flags instead of just one ↵Devang Patel2010-09-294-19/+24
| | | | | | | | | boolean for isArtificial. This is a backword compatible change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115084 91177308-0d34-0410-b5e6-96231b3b80d8
* UnreachableBlockElim could incorrectly return false when it had not modified ↵Owen Anderson2010-09-291-1/+4
| | | | | | the CFG, but HAD modified some PHI nodes. Fixes PR8174. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115083 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR8247: JumpThreading can cause a block to become unreachable while ↵Owen Anderson2010-09-292-4/+31
| | | | | | | | | | | still having predecessor, if it is part of a self-loop. Because of this, we cannot use the Simplify* APIs, as they can assert-fail on unreachable code. Since it's not easy to determine if a given threading will cause a block to become unreachable, simply defer simplifying simplification to later InstCombine and/or DCE passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115082 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert a bunch of uses of 'bytecode' into 'bitcode'. ThisDuncan Sands2010-09-2910-16/+16
| | | | | | | is not everything, but the remaining cases are less trivial. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115080 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove PointerTracking from cmakelists …Benjamin Kramer2010-09-291-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115076 91177308-0d34-0410-b5e6-96231b3b80d8
* GetSourceVersion: Strip off svninfo extra markers, which aren't really part ↵Daniel Dunbar2010-09-291-1/+1
| | | | | | of the version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115074 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove PointerTracking tests.Benjamin Kramer2010-09-292-89/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115072 91177308-0d34-0410-b5e6-96231b3b80d8
* Assign DW_ACCESS_public accessibility attribute to members by default.Devang Patel2010-09-291-1/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115067 91177308-0d34-0410-b5e6-96231b3b80d8
* Add specializations of addrmode2 that allow differentiating those formsJim Grosbach2010-09-292-11/+49
| | | | | | | | | | | which require the use of the shifter-operand. This will be used to split the ldr/str instructions such that those versions needing the shifter operand can get a different scheduling itenerary, as in some cases, the use of the shifter can cause different scheduling than the simpler forms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115066 91177308-0d34-0410-b5e6-96231b3b80d8
* Add parens to fix GCC warning:Nick Lewycky2010-09-291-2/+2
| | | | | | | lib/Target/X86/X86MCCodeEmitter.cpp: 190: error: suggest parentheses around '&&' within '||' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115064 91177308-0d34-0410-b5e6-96231b3b80d8
* remove PointerTracking from mainline, Edwin is going to move it out to ClamAVChris Lattner2010-09-293-450/+0
| | | | | | | for LLVM 2.9 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115062 91177308-0d34-0410-b5e6-96231b3b80d8
* implement rdar://8491845 - Gas supports commuted forms of non-commutable ↵Chris Lattner2010-09-292-2/+12
| | | | | | instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115061 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r114919, which caused some serious regressions on ARM.Owen Anderson2010-09-291-6/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115053 91177308-0d34-0410-b5e6-96231b3b80d8
* utils: Add GetRepositoryPath script, patch by Jonathan Mulder!Daniel Dunbar2010-09-292-10/+37
| | | | | | - Also, fix indention in GetSourceVersion while in the area. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115048 91177308-0d34-0410-b5e6-96231b3b80d8
* Increase ARM APCS preferred alignment for i64 and f64 from 32 bits to 64 bits.Bob Wilson2010-09-293-5/+5
| | | | | | | | LDM/STM instructions can run one cycle faster on some ARM processors if the memory address is 64-bit aligned. Radar 8489376. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115047 91177308-0d34-0410-b5e6-96231b3b80d8
* Undoing test commit blank space.Jason W Kim2010-09-291-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115045 91177308-0d34-0410-b5e6-96231b3b80d8
* Test commit -Jason W Kim2010-09-291-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115044 91177308-0d34-0410-b5e6-96231b3b80d8
* Add braces for legibility.Jim Grosbach2010-09-291-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115043 91177308-0d34-0410-b5e6-96231b3b80d8
* lit: Fix a subtle resource usage bug when executing tests using the internalDaniel Dunbar2010-09-291-4/+7
| | | | | | | | | | | | | shell runner. We would inadvertently end up holding on to handles to the temporary files longer than we should have been. On Win32, where open handles lock some file operations, this caused problems in tests which would try to move temporary files around (as Clang does by default now). Many thanks to Francois Pichet for the excellent detective work on this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115040 91177308-0d34-0410-b5e6-96231b3b80d8