Andrew Kaylor [Wed, 2 Oct 2013 19:26:16 +0000 (19:26 +0000)]
Fix build problems with remote lli implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191848
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 2 Oct 2013 19:06:06 +0000 (19:06 +0000)]
SLPVectorizer: Make store chain finding more aggressive with GetUnderlyingObject.
This recursively strips all GEPs like the existing code. It also handles bitcasts and
other operations that do not change the pointer value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191847
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Wed, 2 Oct 2013 18:04:40 +0000 (18:04 +0000)]
Clean up lli execution code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191845
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Wed, 2 Oct 2013 18:00:34 +0000 (18:00 +0000)]
Fixing compile warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191844
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Wed, 2 Oct 2013 17:12:36 +0000 (17:12 +0000)]
Adding out-of-process execution support to lli.
At this time only Unix-based systems are supported. Windows has stubs and should re-route to the simulated mode.
Thanks to Sriram Murali for contributions to this patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191843
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Wed, 2 Oct 2013 17:04:59 +0000 (17:04 +0000)]
StructurizeCFG: Add dependency on LowerSwitch pass
Switch instructions were crashing the StructurizeCFG pass, and it's
probably easier anyway if we don't need to handle them in this pass.
Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191841
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 2 Oct 2013 16:11:07 +0000 (16:11 +0000)]
MCJIT: skip some more new multi-module tests on unsupported platforms.
This should fix the i386 Darwin build-bot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191840
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Wed, 2 Oct 2013 16:00:33 +0000 (16:00 +0000)]
R600: Add a ldptr intrinsic to support MSAA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191838
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 15:47:30 +0000 (15:47 +0000)]
Try harder to disable the LTO tests on windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191836
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Oct 2013 15:42:23 +0000 (15:42 +0000)]
Remove the very substantial, largely unmaintained legacy PGO
infrastructure.
This was essentially work toward PGO based on a design that had several
flaws, partially dating from a time when LLVM had a different
architecture, and with an effort to modernize it abandoned without being
completed. Since then, it has bitrotted for several years further. The
result is nearly unusable, and isn't helping any of the modern PGO
efforts. Instead, it is getting in the way, adding confusion about PGO
in LLVM and distracting everyone with maintenance on essentially dead
code. Removing it paves the way for modern efforts around PGO.
Among other effects, this removes the last of the runtime libraries from
LLVM. Those are being developed in the separate 'compiler-rt' project
now, with somewhat different licensing specifically more approriate for
runtimes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191835
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Samsonov [Wed, 2 Oct 2013 15:31:34 +0000 (15:31 +0000)]
Remove "localize global" optimization
Summary:
As discussed in http://llvm-reviews.chandlerc.com/D1754,
this optimization isn't really valid for C, and fires too rarely anyway.
Reviewers: rafael, nicholas
Reviewed By: nicholas
CC: rnk, llvm-commits, nicholas
Differential Revision: http://llvm-reviews.chandlerc.com/D1769
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191834
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Oct 2013 15:14:13 +0000 (15:14 +0000)]
Tidy up this line of the Makefile before I start hacking on it.
I really should sort it or do something more sustainable, but I couldn't
work up the energy to do it... Sorry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191832
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 14:49:41 +0000 (14:49 +0000)]
Add test I forgot to git add in r191824.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191831
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 14:48:35 +0000 (14:48 +0000)]
Disable this test on Win32 for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191830
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 14:36:23 +0000 (14:36 +0000)]
Fix option parsing in the gold plugin.
This was broken when options were moved up in r191680. No test because this is
specific LLVMgold.so/libLTO.so.
Patch by Tom Roeder!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191829
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Oct 2013 14:31:21 +0000 (14:31 +0000)]
Don't layout items in a list in columns. That requires changing every
line just to add or remove a single element. What I wouldn't give to
have clang-format here an be able to format this more densely without
caring...
Re-group and sort the entries while here to make the whole thing more
clear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191828
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 14:12:56 +0000 (14:12 +0000)]
Add a -exported-symbol option to llvm-lto.
Patch by Tom Roeder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191825
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 14:09:29 +0000 (14:09 +0000)]
Add Support For .bss Named Section Directive For Darwin Targets.
Patch by Nicholas White.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191824
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 2 Oct 2013 14:04:38 +0000 (14:04 +0000)]
Enable building LTO on WIN32.
Enable building the LTO library (.lib and.dll) and llvm-lto.exe on Windows with
MSVC and Mingw as well as re-enabling the associated test.
Patch by Greg Bedwell!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191823
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Wed, 2 Oct 2013 12:20:42 +0000 (12:20 +0000)]
AVX-512: fixed a bug in getLoadStoreRegOpcode() for AVX-512 target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191818
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 2 Oct 2013 08:14:38 +0000 (08:14 +0000)]
Program.h: Fix \Note into \note. [-Wdocumentation]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191815
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Samsonov [Wed, 2 Oct 2013 07:12:47 +0000 (07:12 +0000)]
[DebugInfo] Further simplify DWARFDebugAranges public interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191813
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Wed, 2 Oct 2013 06:39:07 +0000 (06:39 +0000)]
AVX-512: Added TB prefix to all instructions without prefixes,
otherwise encoding fails after the last change in X86MCCodeEmitter.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191812
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Oct 2013 06:25:57 +0000 (06:25 +0000)]
Disable libc++ building by default with CMake with MSVC -- some bots
aren't yet happy with this config.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191811
91177308-0d34-0410-b5e6-
96231b3b80d8
Filip Pizlo [Wed, 2 Oct 2013 00:59:25 +0000 (00:59 +0000)]
This threads SectionName through the allocateCodeSection/allocateDataSection APIs, both in C++ and C land.
It's useful for the memory managers that are allocating a section to know what the name of the section is.
At a minimum, this is useful for low-level debugging - it's customary for JITs to be able to tell you what
memory they allocated, and as part of any such dump, they should be able to tell you some meta-data about
what each allocation is for. This allows clients that supply their own memory managers to do this.
Additionally, we also envision the SectionName being useful for passing meta-data from within LLVM to an LLVM
client.
This changes both the C and C++ APIs, and all of the clients of those APIs within LLVM. I'm assuming that
it's safe to change the C++ API because that API is allowed to change. I'm assuming that it's safe to change
the C API because we haven't shipped the API in a release yet (LLVM 3.3 doesn't include the MCJIT memory
management C API).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191804
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Tue, 1 Oct 2013 23:45:54 +0000 (23:45 +0000)]
Debug Info: In DIBuilder, the derived-from field of a DW_TAG_pointer_type
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191800
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Tue, 1 Oct 2013 22:14:56 +0000 (22:14 +0000)]
[llvm-c][Disassembler] Add an option to reproduce in disassembled output the
comments issued with verbose assembly.
E.g., on a vector shuffle operation, disassembled output are:
* Without the option:
vpshufd $-0x79, (%rsp), %xmm0
* With the option:
vpshufd $-0x79, (%rsp), %xmm0 ## xmm0 = mem[3,1,0,2]
This part of <rdar://problem/
14687488>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191799
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Tue, 1 Oct 2013 20:27:56 +0000 (20:27 +0000)]
Remove triple from type unique testing cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191794
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Tue, 1 Oct 2013 20:23:12 +0000 (20:23 +0000)]
Try to fix native-arm bot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191793
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Tue, 1 Oct 2013 19:52:23 +0000 (19:52 +0000)]
Debug Info: remove duplication of DIEs when a DIE is part of the type system
and it is shared across CUs.
We add a few maps in DwarfDebug to map MDNodes for the type system to the
corresponding DIEs: MDTypeNodeToDieMap, MDSPNodeToDieMap, and
MDStaticMemberNodeToDieMap. These DIEs can be shared across CUs, that is why we
keep the maps in DwarfDebug instead of CompileUnit.
Sometimes, when we try to add an attribute to a DIE, the DIE is not yet added
to its owner yet, so we don't know whether we should use ref_addr or ref4.
We create a worklist that will be processed during finalization to add
attributes with the correct form (ref_addr or ref4).
We add addDIEEntry to DwarfDebug to be a wrapper around DIE->addValue. It checks
whether we know the correct form, if not, we update the worklist
(DIEEntryWorklist).
A testing case is added to show that we only create a single DIE for a type
MDNode and we use ref_addr to refer to the type DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191792
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Tue, 1 Oct 2013 19:32:58 +0000 (19:32 +0000)]
R600: add a pass that merges clauses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191790
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Tue, 1 Oct 2013 19:32:49 +0000 (19:32 +0000)]
R600: Put PRED_X instruction in its own clause
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191789
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Tue, 1 Oct 2013 19:32:38 +0000 (19:32 +0000)]
R600: Enable -verify-machineinstrs in some tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191788
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Tue, 1 Oct 2013 19:21:24 +0000 (19:21 +0000)]
[MC] When MCInstPrint::printAnnotation uses a comment stream, it has to ensure
that each comment ends with a newline to match the definition in the header
file.
This is part of <rdar://problem/
14687488>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191787
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 1 Oct 2013 18:05:30 +0000 (18:05 +0000)]
Don't merge tiny functions.
It's silly to merge functions like these:
define void @foo(i32 %x) {
ret void
}
define void @bar(i32 %x) {
ret void
}
to get
define void @bar(i32) {
tail call void @foo(i32 %0)
ret void
}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191786
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 1 Oct 2013 17:40:47 +0000 (17:40 +0000)]
Reverts commit r190808 and r190556.
The use of these features in clang has been reverted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191785
91177308-0d34-0410-b5e6-
96231b3b80d8
Preston Gurd [Tue, 1 Oct 2013 17:02:48 +0000 (17:02 +0000)]
Add test case for PR16785.
Thanks for Dimitry Andric, Rafael Espindola, and Benjamin Kramer
for providing and progressively reducing the test case!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191782
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Samsonov [Tue, 1 Oct 2013 16:52:46 +0000 (16:52 +0000)]
[DebugInfo] Simplify and speedup .debug_aranges parsing
Parsing .debug_aranges section now takes O(nlogn) operations instead
of O(n^2), where "n" is the number of address ranges. With this change,
the time required to symbolize an address from a random large
Clang-generated binary drops from 165 seconds to 1.5 seconds.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191781
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Tue, 1 Oct 2013 16:42:50 +0000 (16:42 +0000)]
Fixing MCJIT multiple module linking for OSX
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191780
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Samsonov [Tue, 1 Oct 2013 16:25:14 +0000 (16:25 +0000)]
[DebugInfo] Further simplify DWARFDebugAranges. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191779
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Samsonov [Tue, 1 Oct 2013 15:48:10 +0000 (15:48 +0000)]
[DebugInfo] Remove unused functions from DWARFDebugAranges and fix code style.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191778
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 15:00:44 +0000 (15:00 +0000)]
[SystemZ] Add comparisons of high words and memory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191777
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:56:23 +0000 (14:56 +0000)]
[SystemZ] Add comparisons of large immediates using high words
There are no corresponding patterns for small immediates because they would
prevent the use of fused compare-and-branch instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191775
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:53:46 +0000 (14:53 +0000)]
[SystemZ] Add immediate addition involving high words
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191774
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:41:52 +0000 (14:41 +0000)]
[SystemZ] Extend test-under-mask support to high GR32s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191773
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:36:20 +0000 (14:36 +0000)]
[SystemZ] Extend 32-bit RISBG optimizations to high words
This involves using RISB[LH]G, whereas the equivalent z10 optimization
uses RISBG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191770
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:33:55 +0000 (14:33 +0000)]
[SystemZ] Extend pseudo conditional 8- and 16-bit stores to high words
As the comment says, we always want to use STOC for 32-bit stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191767
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Tue, 1 Oct 2013 14:33:28 +0000 (14:33 +0000)]
ARM: support interrupt attribute
This function-attribute modifies the callee-saved register list and function
epilogue (specifically the return instruction) so that a routine is suitable
for use as an interrupt-handler of the specified type without disrupting
user-mode applications.
rdar://problem/
14207019
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191766
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:31:50 +0000 (14:31 +0000)]
[SystemZ] Add test missing from r191764.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191765
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:31:11 +0000 (14:31 +0000)]
[SystemZ] Optimize 32-bit FPR<->GPR moves for z196 and above
Floats are stored in the high 32 bits of an FPR, and the only GPR<->FPR
transfers are full-register transfers. This patch optimizes GPR<->FPR
float transfers when the high word of a GPR is directly accessible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191764
91177308-0d34-0410-b5e6-
96231b3b80d8
Tareq A. Siraj [Tue, 1 Oct 2013 14:28:18 +0000 (14:28 +0000)]
Add non-blocking Wait() for launched processes
- New ProcessInfo class to encapsulate information about child processes.
- Generalized the Wait() to support non-blocking wait on child processes.
- ExecuteNoWait() now returns a ProcessInfo object with information about
the launched child. Users will be able to use this object to
perform non-blocking wait.
- ExecuteNoWait() now accepts an ExecutionFailed param that tells if execution
failed or not.
These changes will allow users to implement basic process parallel
tools.
Differential Revision: http://llvm-reviews.chandlerc.com/D1728
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191763
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:20:41 +0000 (14:20 +0000)]
[SystemZ] Allow integer AND involving high words
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191762
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 14:08:44 +0000 (14:08 +0000)]
[SystemZ] Allow integer XOR involving high words
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191759
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 1 Oct 2013 13:32:03 +0000 (13:32 +0000)]
Remove several unused variables.
Patch by Alp Toker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191757
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 13:22:41 +0000 (13:22 +0000)]
[SystemZ] Allow integer OR involving high words
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191755
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 13:18:56 +0000 (13:18 +0000)]
[SystemZ] Allow integer insertions with a high-word destination
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191753
91177308-0d34-0410-b5e6-
96231b3b80d8
Sylvestre Ledru [Tue, 1 Oct 2013 13:17:09 +0000 (13:17 +0000)]
Fix a typo in the documentation. Thanks to Diana Vasile for the patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191752
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 13:10:16 +0000 (13:10 +0000)]
[SystemZ] Allow selects with a high-word destination
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191751
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 13:02:28 +0000 (13:02 +0000)]
[SystemZ] Add patterns to load a constant into a high word (IIHF)
Similar to low words, we can use the shorter LLIHL and LLIHH if it turns
out that the other half of the GR64 isn't live.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191750
91177308-0d34-0410-b5e6-
96231b3b80d8
Joey Gouly [Tue, 1 Oct 2013 13:01:10 +0000 (13:01 +0000)]
[ARM] Remove an unused function from the disassembler.
Pointed out by Joerg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191749
91177308-0d34-0410-b5e6-
96231b3b80d8
Matheus Almeida [Tue, 1 Oct 2013 12:53:00 +0000 (12:53 +0000)]
Test commit. Updated comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191748
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 12:49:07 +0000 (12:49 +0000)]
[SystemZ] Add register zero extensions involving at least one high word
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191746
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Tue, 1 Oct 2013 12:42:48 +0000 (12:42 +0000)]
Remove empty directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191745
91177308-0d34-0410-b5e6-
96231b3b80d8
Joey Gouly [Tue, 1 Oct 2013 12:39:11 +0000 (12:39 +0000)]
[ARM] Introduce the 'sevl' instruction in ARMv8.
This also removes the restriction on the immediate field of the 'hint'
instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191744
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 12:22:49 +0000 (12:22 +0000)]
[SystemZ] Add truncating high-word stores (STCH and STHH)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191743
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 12:19:08 +0000 (12:19 +0000)]
[SystemZ] Add zero-extending high-word loads (LLCH and LLHH)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191742
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 1 Oct 2013 12:17:11 +0000 (12:17 +0000)]
SCEVExpander: Fix a regression I introduced by to eagerly adding RAII objects.
PR17425.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191741
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 12:11:47 +0000 (12:11 +0000)]
[SystemZ] Add sign-extending high-word loads (LBH and LHH)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191740
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 11:26:28 +0000 (11:26 +0000)]
[SystemZ] Use upper words of GR64s for codegen
This just adds the basics necessary for allocating the upper words to
virtual registers (move, load and store). The move support is parameterised
in a way that makes it easy to handle zero extensions, but the associated
zero-extend patterns are added by a later patch.
The easiest way of testing this seemed to be add a new "h" register
constraint for high words. I don't expect the constraint to be useful
in real inline asms, but it should work, so I didn't try to hide it
behind an option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191739
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 10:31:04 +0000 (10:31 +0000)]
[SystemZ] Reapply: Add definitions of LFH and STFH
Originally committed as r191661, but reverted because it changed the matching
order of comparisons on some hosts. That should have been fixed by r191735.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191738
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 1 Oct 2013 10:22:35 +0000 (10:22 +0000)]
[mips][msa] Added support for matching mod_[us] from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191737
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 1 Oct 2013 09:49:01 +0000 (09:49 +0000)]
Fix pattern sort in DAGISelEmitter.cpp
The old code skipped one of the sorting criteria if either pattern had
no types. This could lead to cycles of the form X < Y, Y < Z, Z < X.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191735
91177308-0d34-0410-b5e6-
96231b3b80d8
Vladimir Medic [Tue, 1 Oct 2013 09:48:56 +0000 (09:48 +0000)]
This patch adds aliases for Mips sub instruction with immediate operands. Corresponding test cases are added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191734
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Tue, 1 Oct 2013 08:38:02 +0000 (08:38 +0000)]
AVX-512: Added X86vzmovl patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191733
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 1 Oct 2013 07:10:28 +0000 (07:10 +0000)]
Remove 0 as a valid encoding for the m-mmmm field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191732
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 1 Oct 2013 06:56:57 +0000 (06:56 +0000)]
Remove unneeded fields from disassembler internal instruction format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191731
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 1 Oct 2013 03:48:26 +0000 (03:48 +0000)]
BEXTR should be defined to take same type for bother operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191728
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Tue, 1 Oct 2013 02:09:00 +0000 (02:09 +0000)]
SelectionDAG: Clarify comments from r191600
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191724
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Tue, 1 Oct 2013 01:48:36 +0000 (01:48 +0000)]
Tests for MCJIT multiple module support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191723
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Tue, 1 Oct 2013 01:47:35 +0000 (01:47 +0000)]
Adding multiple module support for MCJIT.
Tests to follow.
PIC with small code model and EH frame handling will not work with multiple modules. There are also some rough edges to be smoothed out for remote target support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191722
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 1 Oct 2013 00:43:36 +0000 (00:43 +0000)]
Add the DW_AT_GNU_ranges_base attribute if we've emitted any ranges
into the debug_ranges section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191721
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 1 Oct 2013 00:43:31 +0000 (00:43 +0000)]
Update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191720
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 1 Oct 2013 00:01:14 +0000 (00:01 +0000)]
Fix code duplication
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191716
91177308-0d34-0410-b5e6-
96231b3b80d8
Preston Gurd [Mon, 30 Sep 2013 23:51:22 +0000 (23:51 +0000)]
Forgot to add a break statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191715
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Mon, 30 Sep 2013 23:31:55 +0000 (23:31 +0000)]
Use CHECK-LABEL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191713
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Mon, 30 Sep 2013 23:31:50 +0000 (23:31 +0000)]
Reuse variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191712
91177308-0d34-0410-b5e6-
96231b3b80d8
Preston Gurd [Mon, 30 Sep 2013 23:18:42 +0000 (23:18 +0000)]
The X86FixupLEAs pass for Intel Atom must not call convertToThreeAddress
on ADD16rr opcodes, if src1 != src, since that would cause
convertToThreeAddress to try to create a virtual register. This is not
permitted after register allocation, which is when the X86FixupLEAs pass
runs.
This patch fixes PR16785.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191711
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 30 Sep 2013 23:14:16 +0000 (23:14 +0000)]
The DW_AT_GNU_pubnames/pubtypes attributes are actually form
SEC_OFFSET from the beginning of the section so go ahead and emit
a label at the beginning of each one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191710
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 30 Sep 2013 21:55:01 +0000 (21:55 +0000)]
Add llvm-readobj to the list of programs to find in the freshly built
toolchain.
Patch by Richard Pennington.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191706
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Mon, 30 Sep 2013 21:23:03 +0000 (21:23 +0000)]
Fix getOrInsertGlobal dropping the address space.
Currently it will insert an illegal bitcast.
Arguably, the address space argument should be
added for the creation case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191702
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Mon, 30 Sep 2013 21:11:01 +0000 (21:11 +0000)]
Use right address space size in InstCombineCompares
The test's output doesn't change, but this ensures
this is actually hit with a different address space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191701
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Mon, 30 Sep 2013 21:06:18 +0000 (21:06 +0000)]
Constant fold ptrtoint + compare with address spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191699
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Mon, 30 Sep 2013 19:42:10 +0000 (19:42 +0000)]
Debug Info: constify and rename from generateRef to getRef.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191696
91177308-0d34-0410-b5e6-
96231b3b80d8
Anders Waldenborg [Mon, 30 Sep 2013 19:11:32 +0000 (19:11 +0000)]
llvm-c: use typedef for function pointers
This makes it consistent with other function pointers used in llvm-c
Differential Revision: http://llvm-reviews.chandlerc.com/D1712
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191693
91177308-0d34-0410-b5e6-
96231b3b80d8
Tilmann Scheller [Mon, 30 Sep 2013 18:50:51 +0000 (18:50 +0000)]
[ARM] Fix Thumb(-2) diagnostic tests.
Changing the diagnostic message for out of range branch targets in 191686 broke the tests.
The diagnostic message for out of range branch targets was changed to be more consistent with the other diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191691
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Mon, 30 Sep 2013 18:17:55 +0000 (18:17 +0000)]
TBAA: update tbaa format from scalar format to struct-path aware format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191690
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Mon, 30 Sep 2013 18:17:35 +0000 (18:17 +0000)]
TBAA: remove !tbaa from testing cases when they are not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191689
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Mon, 30 Sep 2013 18:05:18 +0000 (18:05 +0000)]
[mips][msa] Direct Object Emission for I8 instructions.
This patch adds Direct Object Emission support for I8 instructions: andi.b, bmnzi.b, bmzi.b, bseli.b, nori.b, ori.b, shf.{b,h,w} and xori.b.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191688
91177308-0d34-0410-b5e6-
96231b3b80d8
Jack Carter [Mon, 30 Sep 2013 17:58:07 +0000 (17:58 +0000)]
[mips][msa] Direct Object Emission for I5 instructions.
This patch adds Direct Object Emission support for I5 instructions: addvi.{b,h,w,d}, ceqi.{b,h,w,d}, clei_s.{b,h,w,d}, clei_u.{b,h,w,d}, clti_s.{b,h,w,d}, clti_u.{b,h,w,d}, maxi_s.{b,h,w,d}, maxi_u.{b,h,w,d}, mini_s.{b,h,w,d}, mini_u.{b,h,w,d}, subvi.{b,h,w,d}.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191687
91177308-0d34-0410-b5e6-
96231b3b80d8
Tilmann Scheller [Mon, 30 Sep 2013 17:57:30 +0000 (17:57 +0000)]
[ARM] Clean up ARMAsmParser::validateInstruction().
Fix some LLVM Coding Standards violations.
No changes in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191686
91177308-0d34-0410-b5e6-
96231b3b80d8