summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "Windows: Add support for unicode command lines""David Majnemer2013-10-0720-87/+342
| | | | | | | This reverts commit r192070 which reverted r192069, I forgot to regenerate the configure scripts. llvm-svn: 192079
* Fix some assert messages to say the correct opcode name. Looks like one ↵Craig Topper2013-10-061-7/+7
| | | | | | assert got copy and pasted to many places. llvm-svn: 192078
* Revert "Windows: Add support for unicode command lines"David Majnemer2013-10-0618-181/+88
| | | | | | | This is causing MinGW bots to fail. This reverts commit r192069. llvm-svn: 192070
* Windows: Add support for unicode command linesDavid Majnemer2013-10-0618-88/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The MSVCRT deliberately sends main() code-page specific characters. This isn't too useful to LLVM as we end up converting the arguments to UTF-16 and subsequently attempt to use the result as, for example, a file name. Instead, we need to have the ability to access the Unicode command line and transform it to UTF-8. This has the distinct advantage over using the MSVC-specific wmain() function as our entry point because: - It doesn't work on cygwin. - It only work on MinGW with caveats and only then on certain versions. - We get to keep our entry point as main(). :) N.B. This patch includes fixes to other parts of lib/Support/Windows s.t. we would be able to take advantage of getting the Unicode paths. E.G. clang spawning clang -cc1 would want to give it Unicode arguments. Reviewers: aaron.ballman, Bigcheese, rnk, ruiu Reviewed By: rnk CC: llvm-commits, ygao Differential Revision: http://llvm-reviews.chandlerc.com/D1834 llvm-svn: 192069
* Add support for aliases with linkonce_odr.Rafael Espindola2013-10-065-11/+19
| | | | | | This will be used to extend constructor aliases in clang. llvm-svn: 192066
* Force a CPU that doesn't have AVX, otherwise this test fails.Benjamin Kramer2013-10-061-3/+3
| | | | llvm-svn: 192065
* X86: Don't fold spills into SSE operations if the stack is unaligned.Benjamin Kramer2013-10-062-0/+53
| | | | | | | Regalloc can emit unaligned spills nowadays, but we can't fold the spills into SSE ops if we can't guarantee alignment. PR12250. llvm-svn: 192064
* AVX-512: added scalar convert instructions and intrinsics.Elena Demikhovsky2013-10-066-13/+308
| | | | | | Fixed load folding in VPERM2I instruction. llvm-svn: 192063
* [Mips] Add MIPS program header types.Simon Atanasyan2013-10-061-1/+6
| | | | llvm-svn: 192059
* [Sparc] Do not emit nop after fcmp* instruction with V9.Venkatraman Govindaraju2013-10-064-7/+27
| | | | llvm-svn: 192056
* AVX-512: fixed shuffle loweringElena Demikhovsky2013-10-063-1/+31
| | | | | | in case of BLEND and added VSHUFPS patterns. llvm-svn: 192055
* [Sparc] Custom lower addc/adde/subc/sube on i64 in sparc64.Venkatraman Govindaraju2013-10-063-7/+66
| | | | | | This is required because i64 is a legal type but addxcc/subxcc reads icc carry bit, which are 32 bit conditional codes. llvm-svn: 192054
* [Sparc] Use addxcc/subxcc for adde/sube instead of addx/subx.Venkatraman Govindaraju2013-10-062-4/+43
| | | | | | addx/subx does not modify conditional codes whereas addxcc/subxx does. llvm-svn: 192053
* Add TBM instructions to loading folding tables.Craig Topper2013-10-051-1/+21
| | | | llvm-svn: 192046
* Rename this feature to "cx16" to match gcc's flag name. Apparently these stringsNick Lewycky2013-10-051-1/+1
| | | | | | are directly tied to the flag names in clang with no remapping in between? llvm-svn: 192044
* Silencing an MSVC warning.Aaron Ballman2013-10-051-2/+2
| | | | llvm-svn: 192042
* Emit a better error when running out of registers on inline asm.Benjamin Kramer2013-10-053-5/+7
| | | | | | | | | The most likely case where this error happens is when the user specifies too many register operands. Don't make it look like an internal LLVM bug when we can see that the error is coming from an inline asm instruction. For other instructions we keep the "ran out of registers" error. llvm-svn: 192041
* Remove underscores from TBM instruction names for consistency with other ↵Craig Topper2013-10-051-24/+24
| | | | | | instruction naming. llvm-svn: 192040
* Remove unneeded TBM intrinsics. The arithmetic/logical operation patterns ↵Craig Topper2013-10-053-477/+23
| | | | | | are sufficient. llvm-svn: 192039
* Add an additional pattern for BLCI since opt can turn (not (add x, 1)) into ↵Craig Topper2013-10-052-0/+26
| | | | | | (sub -2, x). llvm-svn: 192037
* Remove some really nasty uses of hasRawTextSupport.Rafael Espindola2013-10-0527-315/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When MC was first added, targets could use hasRawTextSupport to keep features working before they were added to the MC interface. The design goal of MC is to provide an uniform api for printing assembly and object files. Short of relaxations and other corner cases, a object file is just another representation of the assembly. It was never the intention that targets would keep doing things like if (hasRawTextSupport()) Set flags in one way. else Set flags in another way. When they do that they create two code paths and the object file is no longer just another representation of the assembly. This also then requires testing with llc -filetype=obj, which is extremelly brittle. This patch removes some of these hacks by replacing them with smaller ones. The ARM flag setting is trivial, so I just moved it to the constructor. For Mips, the patch adds two temporary hack directives that allow the assembly to represent the same things as the object file was already able to. The hope is that the mips developers will replace the hack directives with the same ones that gas uses and drop the -print-hack-directives flag. I will also try to implement a target streamer interface, so that we can move this out of the common code. In summary, for any new work, two rules of the thumb are * Don't use "llc -filetype=obj" in tests. * Don't add calls to hasRawTextSupport. llvm-svn: 192035
* lli: Plug leaks in the remote target external implementation.Benjamin Kramer2013-10-056-1/+16
| | | | llvm-svn: 192031
* Implement aarch64 neon instruction set AdvSIMD (Across).Jiangning Liu2013-10-057-1/+904
| | | | llvm-svn: 192028
* Add OPC_CheckChildSame0-3 to the DAG isel matcher. This replaces sequences ↵Craig Topper2013-10-056-1/+75
| | | | | | of MoveChild, CheckSame, MoveParent. Saves 846 bytes from the X86 DAG isel matcher, ~300 from ARM, ~840 from Hexagon. llvm-svn: 192026
* Convert test to FileCheck.Rafael Espindola2013-10-051-5/+12
| | | | llvm-svn: 192025
* [Sparc] Use correct alignment while loading/storing fp128 values.Venkatraman Govindaraju2013-10-052-4/+34
| | | | llvm-svn: 192023
* Updating XFAILs for recent GOT testsAndrew Kaylor2013-10-054-0/+4
| | | | llvm-svn: 192022
* Adding tests for multiple GOTs with MCJITAndrew Kaylor2013-10-054-0/+44
| | | | llvm-svn: 192021
* Adding multiple GOT handling to RuntimeDyldELFAndrew Kaylor2013-10-052-59/+81
| | | | | | Patch by Ashok Thirumurthi llvm-svn: 192020
* Debug Info: In DIBuilder, the derived-from field of a DW_TAG_pointer_typeManman Ren2013-10-0510-96/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | is updated to use DITypeRef. Move isUnsignedDIType and getOriginalTypeSize from DebugInfo.h to be static helper functions in DwarfCompileUnit. We already have a static helper function "isTypeSigned" in DwarfCompileUnit, and a pointer to DwarfDebug is added to resolve the derived-from field. All three functions need to go across link for derived-from fields, so we need to get hold of a type identifier map. A pointer to DwarfDebug is also added to DbgVariable in order to resolve the derived-from field. Debug info verifier is updated to check a derived-from field is a TypeRef. Verifier will not go across link for derived-from fields, in debug info finder, we go across the link to add derived-from fields to types. Function getDICompositeType is only used by dragonegg and since dragonegg does not generate identifier for types, we use an empty map to resolve the derived-from field. When printing a derived-from field, we use DITypeRef::getName to either return the type identifier or getName of the DIType. A paired commit at clang is required due to changes to DIBuilder. llvm-svn: 192018
* Reorganize some member variables and update a comment.Eric Christopher2013-10-051-6/+6
| | | | llvm-svn: 192017
* Fix one comment and update another. Slightly reformat.Eric Christopher2013-10-052-4/+3
| | | | llvm-svn: 192016
* [Sparc] Respect hasHardQuad parameter correctly when lowering SINT_TO_FP ↵Venkatraman Govindaraju2013-10-052-1/+14
| | | | | | with fp128 operand. llvm-svn: 192015
* Add a resolve method on CompileUnit that forwards to DwarfDebug.Eric Christopher2013-10-052-8/+13
| | | | llvm-svn: 192014
* Debug info: Don't crash in SelectionDAGISel when a vreg that is beingAdrian Prantl2013-10-052-3/+142
| | | | | | | | pointed to by a dbg_value belonging to a function argument is eliminated during instruction selection. rdar://problem/15094721. llvm-svn: 192011
* Make a bunch of CompileUnit member functions private.Eric Christopher2013-10-052-36/+38
| | | | llvm-svn: 192009
* [Sparc] Correct the floating point conditional code mapping in ↵Venkatraman Govindaraju2013-10-042-8/+40
| | | | | | GetOppositeBranchCondition(). llvm-svn: 192006
* Minor formatting/comment rewording/etc.David Blaikie2013-10-041-5/+3
| | | | llvm-svn: 192005
* Remove odd use of this.Eric Christopher2013-10-041-1/+1
| | | | llvm-svn: 192004
* Reformat some odd formattings.Eric Christopher2013-10-041-32/+19
| | | | llvm-svn: 192003
* Tighten up some type arguments to functions. Where we expect aEric Christopher2013-10-042-6/+6
| | | | | | scope, pass a scope. llvm-svn: 192002
* UpdatePHINodes in BasicBlockUtils should not crash on duplicate predecessorsHal Finkel2013-10-042-2/+52
| | | | | | | | | | | UpdatePHINodes has an optimization to reuse an existing PHI node, where it first deletes all of its entries and then replaces them. Unfortunately, in the case where we had duplicate predecessors (which are allowed so long as the associated PHI entries have the same value), the loop removing the existing PHI entries from the to-be-reused PHI would assert (if that PHI was not the one which had the duplicates). llvm-svn: 192001
* Remove some dead code.David Blaikie2013-10-042-7/+0
| | | | llvm-svn: 192000
* Pull this out for a bit of readability.Eric Christopher2013-10-041-15/+18
| | | | llvm-svn: 191999
* Simplify setting of DIE tag for type DIEs by setting it in one* place.David Blaikie2013-10-041-16/+8
| | | | | | * two actually due to some weird template thing... investigating that. llvm-svn: 191998
* Reformat.Eric Christopher2013-10-041-832/+791
| | | | llvm-svn: 191997
* Formatting.Eric Christopher2013-10-041-1/+1
| | | | llvm-svn: 191995
* Prune includes.Eric Christopher2013-10-041-2/+0
| | | | llvm-svn: 191994
* forgot to remove this file as wellJack Carter2013-10-041-53/+0
| | | | llvm-svn: 191993
* reverting per requestJack Carter2013-10-047-56/+6
| | | | llvm-svn: 191992
OpenPOWER on IntegriCloud