summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* [Sparc] Emit retl/ret instead of jmp instruction. It improves the ↵Venkatraman Govindaraju2014-01-1011-46/+52
| | | | | | readability of the assembly generated. llvm-svn: 198910
* [Sparc] Add support for parsing jmpl instruction and make indirect call and ↵Venkatraman Govindaraju2014-01-107-22/+83
| | | | | | jmp instructions as aliases to jmpl. llvm-svn: 198909
* Revert "Revert r198851, "Prototype of skeleton type units for fission""David Blaikie2014-01-105-22/+68
| | | | | | | | | This reverts commit r198865 which reverts r198851. ASan identified a use-of-uninitialized of the DwarfTypeUnit::Ty variable in skeleton type units. llvm-svn: 198908
* Fix a bug with the ARM thumb2 CBNZ and CBNZ instructions thatKevin Enderby2014-01-102-1/+53
| | | | | | | | | branch to the next instruction. This can not be encoded but can be turned into a NOP. rdar://15062072 llvm-svn: 198904
* Update the developer policy to more clearly spell out the steps forChandler Carruth2014-01-101-11/+27
| | | | | | | contributors to submit patches to the LLVM project. Thanks to Danny, Chris, Alp, and others for reviewing. llvm-svn: 198901
* Bitcode: Fix a typo in an assertJustin Bogner2014-01-091-1/+1
| | | | llvm-svn: 198894
* [Sparc] Multiclass for loads/stores. No functionality change intended.Venkatraman Govindaraju2014-01-092-140/+46
| | | | llvm-svn: 198893
* Clean up an inconsistency in v7s feature default.Evan Cheng2014-01-091-2/+2
| | | | llvm-svn: 198889
* Add a unit test for the copy constructor.Rafael Espindola2014-01-091-0/+3
| | | | | | | | I would not normally add tests like these, but the copy constructor is not used at all in our codebase with c++11, so having this tests might prevent breaking the c++03 build again. llvm-svn: 198886
* Revert "Disable LeakSanitizer in TableGen binaries, see PR18325"Alp Toker2014-01-091-7/+0
| | | | | | | | | | | To declare or define reserved identifers is undefined behaviour in standard C++. This needs to be addressed in compiler-rt before it can be used in LLVM. See the list discussion for details. This reverts commit r198858. llvm-svn: 198884
* Re-remove dead code.Nadav Rotem2014-01-092-59/+0
| | | | | | This reverts r198854. llvm-svn: 198879
* Update example to be more idiomatic.Rafael Espindola2014-01-091-3/+2
| | | | llvm-svn: 198872
* Revert r198851, "Prototype of skeleton type units for fission"NAKAMURA Takumi2014-01-095-67/+22
| | | | | | It caused undefined behavior. DwarfTypeUnit::Ty might not be initialized properly, I guess. llvm-svn: 198865
* Fixed old typo in ScalarEvolution, that caused wrong SCEVs zext operation.Stepan Dyatkovskiy2014-01-092-1/+82
| | | | | | | | | Detailed description is here: http://llvm.org/bugs/show_bug.cgi?id=18000#c16 For participation in bugfix process special thanks to David Wiberg. llvm-svn: 198863
* [SystemZ] Fix RNSBG bug introduced by r197802Richard Sandiford2014-01-094-8/+43
| | | | | | | | The zext handling added in r197802 wasn't right for RNSBG. This patch restricts it to ROSBG, RXSBG and RISBG. (The tests for RISBG were added in r197802 since RISBG was the motivating example.) llvm-svn: 198862
* Handle masked rotate amountsRichard Sandiford2014-01-092-16/+144
| | | | | | | | | | | | | | At the moment we expect rotates to have the form: (or (shl X, Y), (shr X, Z)) where Y == bitsize(X) - Z or Z == bitsize(X) - Y. This form means that the (or ...) is undefined for Y == 0 or Z == 0. This undefinedness can be avoided by using Y == (C * bitsize(X) - Z) & (bitsize(X) - 1) or Z == (C * bitsize(X) - Y) & (bitsize(X) - 1) for any integer C (including 0, the most natural choice). llvm-svn: 198861
* Match the InstCombine form of rotates by X+CRichard Sandiford2014-01-092-12/+68
| | | | | | | | | | | | | | | | | InstCombine converts (sub 32, (add X, C)) into (sub 32-C, X), so a rotate left of a 32-bit Y by X+C could appear as either: (or (shl Y, (add X, C)), (shr Y, (sub 32, (add X, C)))) without InstCombine or: (or (shl Y, (add X, C)), (shr Y, (sub 32-C, X))) with it. We already matched the first form. This patch handles the second too. llvm-svn: 198860
* Disable LeakSanitizer in TableGen binaries, see PR18325Kostya Serebryany2014-01-091-0/+7
| | | | llvm-svn: 198858
* Revert r198819 - "Remove dead code."Nadav Rotem2014-01-092-0/+59
| | | | llvm-svn: 198854
* Fix accidental use of the exotic "std::string::back()" method. Turns out it'sLang Hames2014-01-091-1/+2
| | | | | | new in C++11. llvm-svn: 198853
* Add an "-object-cache-dir=<string>" option to LLI. This option specifies theLang Hames2014-01-092-18/+29
| | | | | | | | | | | root path to which object files managed by the LLIObjectCache instance should be written. This option defaults to "", in which case objects are cached in the same directory as the bitcode they are derived from. The load-object-a.ll test has been rewritten to use this option to support testing in environments where the test directory is not writable. llvm-svn: 198852
* Prototype of skeleton type units for fissionDavid Blaikie2014-01-095-22/+67
| | | | llvm-svn: 198851
* llvm-dwarfdump: type unit dwo supportDavid Blaikie2014-01-094-3/+62
| | | | llvm-svn: 198850
* llvm-readobj: address review comments for ARM EHABI printingSaleem Abdulrasool2014-01-092-45/+37
| | | | | | | | Rename bytecode to opcodes to make it more clear. Change an impossible case to llvm_unreachable instead. Avoid allocation of a buffer by modifying the PrintOpcodes iteration. llvm-svn: 198848
* llvm-readobj: fix endiannessSaleem Abdulrasool2014-01-091-5/+6
| | | | | | | Explicitly handle endianness to ensure that bytes are read properly on big-endian systems. llvm-svn: 198847
* DwarfDebug: Refactor out common skeleton construction code to be reused for ↵David Blaikie2014-01-093-20/+28
| | | | | | type unit skeletons. llvm-svn: 198846
* Extend llvm::AlignedCharArrayUnion to support up to 10 arguments, as ↵Richard Smith2014-01-091-7/+13
| | | | | | required by Clang's APValue. llvm-svn: 198844
* Reformatting for r198842David Blaikie2014-01-091-3/+2
| | | | llvm-svn: 198843
* DwarfUnit: Rename "Node" to "CUNode" and propagate it through DwarfTypeUnit ↵David Blaikie2014-01-094-22/+18
| | | | | | | | | | as well. Since we'll now also need the split dwarf file name along with the language in DwarfTypeUnits, just use the whole DICompileUnit rather than explicitly handling each field needed. llvm-svn: 198842
* Revert "DwarfUnit: Move the DICompileUnit Node to the DwarfCompileUnit only"David Blaikie2014-01-092-12/+12
| | | | | | | | This reverts commit r198830. Decided to go a different way with this... llvm-svn: 198841
* [PM] Rename this source file to something a bit more generic beforeChandler Carruth2014-01-092-2/+2
| | | | | | I add support for the new pass manager to it. llvm-svn: 198838
* Put the functionality for printing a value to a raw_ostream as anChandler Carruth2014-01-0944-181/+106
| | | | | | | | | | | | operand into the Value interface just like the core print method is. That gives a more conistent organization to the IR printing interfaces -- they are all attached to the IR objects themselves. Also, update all the users. This removes the 'Writer.h' header which contained only a single function declaration. llvm-svn: 198836
* DwarfUnit: Move the DICompileUnit Node to the DwarfCompileUnit onlyDavid Blaikie2014-01-092-12/+12
| | | | | | It's unused in DwarfTypeUnit, as is expected. llvm-svn: 198830
* Remove the test for endianness in configure.ac and regenerate.Eric Christopher2014-01-093-761/+457
| | | | llvm-svn: 198825
* Replace fstream use with raw_fd_ostream.Lang Hames2014-01-091-2/+2
| | | | llvm-svn: 198821
* Remove dead code.Rafael Espindola2014-01-092-59/+0
| | | | llvm-svn: 198819
* Use the existing typedef to avoid forming a reference to a reference.Rafael Espindola2014-01-091-2/+2
| | | | llvm-svn: 198817
* llvm.experimental.stackmap: fix encoding of large constants.Andrew Trick2014-01-092-5/+50
| | | | | | | | | | In the stackmap format we advertise the constant field as signed. However, we were determining whether to promote to a 64-bit constant pool based on an unsigned comparison. This fix allows -1 to be encoded as a small constant. llvm-svn: 198816
* Simplify/collapse/denest a conditions/blocks.David Blaikie2014-01-091-32/+31
| | | | llvm-svn: 198813
* llvm-dwarfdump: reorder dwo sections to immediately proceed their non-dwo ↵David Blaikie2014-01-082-40/+39
| | | | | | | | | equivalents This makes it easier to write a test that's mostly shared between fission and non-fission (using FileCheck's multiple prefix support). llvm-svn: 198806
* Fix the C++03 build.Rafael Espindola2014-01-081-1/+1
| | | | | | With c++11 we never instantiate the copy constructor. llvm-svn: 198803
* Use getError and remove the error_code operator.Rafael Espindola2014-01-084-12/+8
| | | | llvm-svn: 198799
* Remove vestigal bits of MC from the mangler. It no longer uses this, andChandler Carruth2014-01-082-2/+0
| | | | | | | having the include could cause weird layering problems between the IR and MC libraries. llvm-svn: 198796
* Conservatively handle multiple MMOs in MIsNeedChainEdgeHal Finkel2014-01-082-4/+41
| | | | | | | | | | | | | | | | | | | | | | MIsNeedChainEdge, which is used by -enable-aa-sched-mi (AA in misched), had an llvm_unreachable when -enable-aa-sched-mi is enabled and we reach an instruction with multiple MMOs. Instead, return a conservative answer. This allows testing -enable-aa-sched-mi on x86. Also, this moves the check above the isUnsafeMemoryObject checks. isUnsafeMemoryObject is currently correct only for instructions with one MMO (as noted in the comment in isUnsafeMemoryObject): // We purposefully do no check for hasOneMemOperand() here // in hope to trigger an assert downstream in order to // finish implementation. The problem with this is that, had the candidate edge passed the "!MIa->mayStore() && !MIb->mayStore()" check, the hoped-for assert would never happen (which could, in theory, lead to incorrect behavior if one of these secondary MMOs was volatile, for example). llvm-svn: 198795
* Move declaration of variables down to first use.Matt Arsenault2014-01-081-6/+4
| | | | llvm-svn: 198794
* Add missing definitions of key_type and value_type to DenseSet.Matt Arsenault2014-01-081-0/+3
| | | | | | | This matches std::set and allows using DenseSet with the functions in SetOperations.h llvm-svn: 198793
* Add get and getError methods to ErrorOr.Rafael Espindola2014-01-081-0/+7
| | | | | | ErrorOr is modeled after boost::optional which has a get method. llvm-svn: 198792
* [AArch64][NEON] Added UXTL and UXTL2 instruction aliasesAna Pazos2014-01-082-11/+48
| | | | llvm-svn: 198791
* Force emit a relocation for @gnu_indirect_function symbols so that the indirectRoman Divacky2014-01-082-1/+17
| | | | | | resolution works. llvm-svn: 198780
* [x86] Remove OpSize16 flag from MOV32r0David Woodhouse2014-01-081-2/+1
| | | | | | It's not a real instruction any more and doesn't need encoding information. llvm-svn: 198778
OpenPOWER on IntegriCloud