summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the operand iterator into MachineInstrBundle.h where it belongs.Jakob Stoklund Olesen2012-02-293-71/+113
| | | | | | | | | Extract a base class and provide four specific sub-classes for iterating over const/non-const bundles/instructions. This eliminates the mystery bool constructor argument. llvm-svn: 151684
* Support/PathV2: Fix make_absolute() to match is_absolute() and not expect toDaniel Dunbar2012-02-291-2/+6
| | | | | | | | | | find root names on Unix. - This fixes make_absolute to not basically always call current_path() on Unix systems. - I think the API probably needs cleanup in this area, but I'll let Michael handle that. llvm-svn: 151681
* Fix some stray semi-colons.Daniel Dunbar2012-02-291-3/+3
| | | | llvm-svn: 151680
* Fix PR12080 by ensuring that MaterializeModule actually reads all the bitcodeDerek Schuff2012-02-292-4/+12
| | | | | | in the streaming case. llvm-svn: 151676
* [PathV2] Fix bug in relative_path.Michael J. Spencer2012-02-291-1/+1
| | | | llvm-svn: 151675
* ARM implement TargetInstrInfo::getNoopForMachoTarget()Jim Grosbach2012-02-289-1/+66
| | | | | | | | | | | | | | Without this hook, functions w/ a completely empty body (including no epilogue) will cause an MCEmitter assertion failure. For example, define internal fastcc void @empty_function() { unreachable } rdar://10947471 llvm-svn: 151673
* Instructions inside a bundle have the same number as the bundle itself.Jakob Stoklund Olesen2012-02-281-2/+6
| | | | | | | | | | SlotIndexes are not assigned to instructions inside bundles, but it is still valid to look up the index of those instructions. The reverse getInstructionFromIndex() will return the first instruction in the bundle. llvm-svn: 151672
* In the ObjectFile interface, replace isInternal(), isAbsolute(), isGlobal(), ↵David Meyer2012-02-289-152/+74
| | | | | | and isWeak(), with a bitset of flags. llvm-svn: 151670
* Enable -Wcovered-switch-default again, but add -Werror to the checks to makeRafael Espindola2012-02-2811-18/+36
| | | | | | sure we don't use it with compilers that don't support it. llvm-svn: 151665
* Kill off LiveRangeEdit::getNewVRegs and LiveRangeEdit::getUselessVRegs. TheseLang Hames2012-02-284-31/+10
| | | | | | | | methods are no longer needed now that LinearScan has gone away. (Contains tweaks trivialSpillEverywhere to enable the removal of getNewVRegs). llvm-svn: 151658
* On ELF, create relocations to the abbreviation and line sections when producingRafael Espindola2012-02-285-12/+106
| | | | | | | | | | debug info for assembly files. We were already doing the right thing when producing debug info for C/C++. ELF linkers don't know dwarf, so they depend on these relocations to produce valid dwarf output. llvm-svn: 151655
* Temporarily revert r151609, which enabled a new warning for LLVM andChandler Carruth2012-02-289-30/+12
| | | | | | | | Clang builds. The detection logic for compilers that support the warning isn't working. Rafael is going to investigate it, but didn't want people to have to wade through build spam until then. llvm-svn: 151649
* ARM vbit/vbif/vbsl assembly optional size suffix.Jim Grosbach2012-02-281-0/+14
| | | | | | | | These instructions accept but do not require a size suffix. rdar://10947225 llvm-svn: 151646
* Re-commit r151623 with fix. Only issue special no-return calls if it's a ↵Evan Cheng2012-02-2835-79/+217
| | | | | | direct call. llvm-svn: 151645
* Fix off-by one in comment.Benjamin Kramer2012-02-281-1/+1
| | | | llvm-svn: 151644
* Properly MCize the section switch, removing a FIXME.Roman Divacky2012-02-281-2/+4
| | | | llvm-svn: 151639
* LegalizeIntegerTypes: Reenable the large shift with small amount optimization.Benjamin Kramer2012-02-283-30/+77
| | | | | | | | | | | | | To avoid problems with zero shifts when getting the bits that move between words we use a trick: first shift the by amount-1, then do another shift by one. When amount is 0 (and size 32) we first shift by 31, then by one, instead of by 32. Also fix a latent bug that emitted the low and high words in the wrong order when shifting right. Fixes PR12113. llvm-svn: 151637
* Revert r151623 "Some ARM implementaions, e.g. A-series, does return stack ↵Daniel Dunbar2012-02-2836-247/+79
| | | | | | prediction. ...", it is breaking the Clang build during the Compiler-RT part. llvm-svn: 151630
* Remove stray semi-colon.Daniel Dunbar2012-02-281-1/+1
| | | | llvm-svn: 151629
* Code cleanup following CR by Duncan.Nadav Rotem2012-02-281-5/+3
| | | | llvm-svn: 151627
* Fix a bug in the code that builds SDNodes from vector GEPs.Nadav Rotem2012-02-282-17/+32
| | | | | | | | | | | When the GEP index is a vector of pointers, the code that calculated the size of the element started from the vector type, and not the contained pointer type. As a result, instead of looking at the data element pointed by the vector, this code used the size of the vector. This works for 32bit members (on 32bit systems), but not for other types. Added code to peel the vector type and added a test. llvm-svn: 151626
* remove blanks, and some code formatJia Liu2012-02-2834-156/+156
| | | | llvm-svn: 151625
* Some ARM implementaions, e.g. A-series, does return stack prediction. That is,Evan Cheng2012-02-2836-79/+247
| | | | | | | | | | | | | | | | | the processor keeps a return addresses stack (RAS) which stores the address and the instruction execution state of the instruction after a function-call type branch instruction. Calling a "noreturn" function with normal call instructions (e.g. bl) can corrupt RAS and causes 100% return misprediction so LLVM should use a unconditional branch instead. i.e. mov lr, pc b _foo The "mov lr, pc" is issued in order to get proper backtrace. rdar://8979299 llvm-svn: 151623
* Convert generated intrinsic attributes to use an array lookup as Chris ↵Craig Topper2012-02-281-18/+26
| | | | | | suggested in PR11951. llvm-svn: 151622
* Reverted r152620 - DSE: Shorten memset when a later store overwrites the ↵Pete Cooper2012-02-282-137/+2
| | | | | | start of it. There were all sorts of buildbot issues llvm-svn: 151621
* DSE: Shorten memset when a later store overwrites the start of itPete Cooper2012-02-282-2/+137
| | | | llvm-svn: 151620
* Oops...Don't commit the other stuff..Bill Wendling2012-02-281-44/+29
| | | | llvm-svn: 151618
* Modify comment to reflect the importance of this code.Bill Wendling2012-02-281-29/+44
| | | | llvm-svn: 151617
* Add comments.Akira Hatanaka2012-02-281-0/+4
| | | | llvm-svn: 151615
* Do not reserve $gp as a dedicated global base register if the target ABI is ↵Akira Hatanaka2012-02-281-1/+2
| | | | | | not O32. llvm-svn: 151614
* Strip extraneous information, if present, from the linker version string onCharles Davis2012-02-282-2/+2
| | | | | | Mac OS X. Patch by Fabian Groffen, with a slight tweak by me. llvm-svn: 151612
* Add support for floating point base register + offset register addressing modeAkira Hatanaka2012-02-288-4/+217
| | | | | | load and store instructions. llvm-svn: 151611
* Handle regmasks in MachineCSE.Jakob Stoklund Olesen2012-02-282-0/+37
| | | | | | | | Don't attempt to extend physreg live ranges across calls. <rdar://problem/10942095> llvm-svn: 151610
* Enable -Wcovered-switch-default as it matches the switch style used in llvm.Rafael Espindola2012-02-289-12/+30
| | | | llvm-svn: 151609
* Handle regmasks in the machine code verifier.Jakob Stoklund Olesen2012-02-281-0/+15
| | | | llvm-svn: 151607
* Enable ARM base pointer when calling functions with large arguments.Jakob Stoklund Olesen2012-02-284-5/+73
| | | | | | | | | | | | | | | | | | When an outgoing call takes more than 2k of arguments on the stack, we don't allocate that call frame in the prolog, but adjust the stack pointer immediately before the call instead. This causes problems with the emergency spill slot because PEI can't track stack pointer adjustments on the second pass, and if the outgoing arguments are too big, SP can't be used to reach the emergency spill slot at all. Work around these problems by ensuring there is a base or frame pointer that can be used to access the emergency spill slot. <rdar://problem/10917166> llvm-svn: 151604
* [Object] Add {begin,end}_dynamic_symbols stubs and implementation for ELF.Michael J. Spencer2012-02-2811-23/+168
| | | | | | | | Add -D option to llvm-nm to dump dynamic symbols. Patch by David Meyer. llvm-svn: 151600
* Fix 80-column violation.Chad Rosier2012-02-281-2/+2
| | | | llvm-svn: 151599
* Allow llvm-stress to optionally generate the other floating-point types ↵Hal Finkel2012-02-271-14/+40
| | | | | | (half, ppcf128, mmx, etc.) llvm-svn: 151596
* Add back removed code. It still causes LLVM to miscompile. But not having it ↵Bill Wendling2012-02-272-3/+30
| | | | | | breaks other things. llvm-svn: 151594
* This patch adds instruction latencies for the SSE instructionsPreston Gurd2012-02-273-728/+1697
| | | | | | to the instruction scheduler for the Intel Atom. llvm-svn: 151590
* test commit.Preston Gurd2012-02-271-1/+1
| | | | llvm-svn: 151588
* Duncan pointed out that if the alignment isn't explicitly specified, it ↵Eli Friedman2012-02-272-5/+5
| | | | | | defaults to the ABI alignment. Given that, make this code a bit more aggressive in such cases. llvm-svn: 151584
* Delete incorrect reference to inexistent Hexagon architecture manuals.Evandro Menezes2012-02-271-3/+0
| | | | llvm-svn: 151582
* Don't use #if 0. Just remove until I can address this.Bill Wendling2012-02-271-35/+0
| | | | llvm-svn: 151580
* XFAIL test until <rdar://problem/10913281> is fixed.Bill Wendling2012-02-271-0/+3
| | | | llvm-svn: 151578
* The code that cleans up multiple, isomorphic types has a subtle error thatBill Wendling2012-02-271-3/+7
| | | | | | | manifests itself when building LLVM with LTO. <rdar://problem/10913281> llvm-svn: 151576
* Remove duplicate copy of Object/ELF.h that somehow managed to get in.Michael J. Spencer2012-02-271-1487/+0
| | | | | | Patch by David Meyer. llvm-svn: 151575
* Fix for PR12090: clear def maps of aliases when visiting a copy. e.g.Evan Cheng2012-02-271-0/+5
| | | | | | | | | %S5<def> = COPY %S0<kill> First clear def map of Q1, etc. No small test case available. llvm-svn: 151574
* ARM BL/BLX instruction fixups should use relocations.Jim Grosbach2012-02-2711-20/+57
| | | | | | | | | | | | | We on the linker to resolve calls to the appropriate BL/BLX instruction to make interworking function correctly. It uses the symbol in the relocation to do that, so we need to be careful about being too clever. To enable this for ARM mode, split the BL/BLX fixup kind off from the unconditional-branch fixups. rdar://10927209 llvm-svn: 151571
OpenPOWER on IntegriCloud