oota-llvm.git
10 years agoModify test to not use -disable-cfi.
Rafael Espindola [Mon, 5 May 2014 16:47:07 +0000 (16:47 +0000)]
Modify test to not use -disable-cfi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207974 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSelect bdver2 instead of bdver1 if TBM support is present on models < 0x10.
Kaelyn Takata [Mon, 5 May 2014 16:32:10 +0000 (16:32 +0000)]
Select bdver2 instead of bdver1 if TBM support is present on models < 0x10.

Tested that the right -target-cpu is set in the clang -cc1 command line
when running "clang -march=native -E -v - </dev/null" on both an FX-8150
and an FX-8350. Both are family 15h; the FX-8150 (Bulldozer processor)
reports a model number of 1, and the FX-8350 (Piledriver processor)
reports a model number of 2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207973 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove test to the ARM64 directory.
Rafael Espindola [Mon, 5 May 2014 16:14:37 +0000 (16:14 +0000)]
Move test to the ARM64 directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207972 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoConvert a CodeGen test into a MC test.
Rafael Espindola [Mon, 5 May 2014 15:34:13 +0000 (15:34 +0000)]
Convert a CodeGen test into a MC test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207971 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix test from r207966 and add a comment there.
Michael Zolotukhin [Mon, 5 May 2014 14:46:53 +0000 (14:46 +0000)]
Fix test from r207966 and add a comment there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207969 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ASan/Win] Fix issue 305 -- don't instrument .CRT initializer/terminator callbacks
Timur Iskhodzhanov [Mon, 5 May 2014 14:28:38 +0000 (14:28 +0000)]
[ASan/Win] Fix issue 305 -- don't instrument .CRT initializer/terminator callbacks

See https://code.google.com/p/address-sanitizer/issues/detail?id=305
Reviewed at http://reviews.llvm.org/D3607

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207968 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTrivial simplification. No functionality change.
Rafael Espindola [Mon, 5 May 2014 14:18:16 +0000 (14:18 +0000)]
Trivial simplification. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207967 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd regression test for r207692.
Michael Zolotukhin [Mon, 5 May 2014 14:05:25 +0000 (14:05 +0000)]
Add regression test for r207692.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207966 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix gcc -pedantic warning in lto.cpp.
Patrik Hagglund [Mon, 5 May 2014 12:24:08 +0000 (12:24 +0000)]
Fix gcc -pedantic warning in lto.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207959 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd range access to ELFFile's sections collection.
Simon Atanasyan [Mon, 5 May 2014 06:48:34 +0000 (06:48 +0000)]
Add range access to ELFFile's sections collection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207952 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCodeGen: correct memset emittance for WoA
Saleem Abdulrasool [Sun, 4 May 2014 23:13:21 +0000 (23:13 +0000)]
CodeGen: correct memset emittance for WoA

Windows on ARM does not conform to AEABI.  However, memset would be emitted
using the AEABI signature, resulting in inverted parameters.  Handle this
special case appropriately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207943 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCodeGen: strengthen WoA AEABI avoidance tests
Saleem Abdulrasool [Sun, 4 May 2014 23:13:18 +0000 (23:13 +0000)]
CodeGen: strengthen WoA AEABI avoidance tests

Add additional test cases for WoA AEABI avoidance checking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207942 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMC: support FK_SecRel_4 for Windows on ARM
Saleem Abdulrasool [Sun, 4 May 2014 23:13:15 +0000 (23:13 +0000)]
MC: support FK_SecRel_4 for Windows on ARM

Add handling for FK_SecRel_4 (4-byte section relative relocations).  These are
used by the generation of DWARF debug information (the abbrevations use section
relative relocations).  This will also be used in generation of CodeView line
tables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207941 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoLoopUnroll: If we're doing partial unrolling, use the PartialThreshold to limit unrol...
Benjamin Kramer [Sun, 4 May 2014 19:12:38 +0000 (19:12 +0000)]
LoopUnroll: If we're doing partial unrolling, use the PartialThreshold to limit unrolling.

Otherwise we use the same threshold as for complete unrolling, which is
way too high. This made us unroll any loop smaller than 150 instructions
by 8 times, but only if someone specified -march=core2 or better,
which happens to be the default on darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207940 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSLPVectorizer: Bring back the insertelement patch (r205965) with fixes
Arnold Schwaighofer [Sun, 4 May 2014 17:10:15 +0000 (17:10 +0000)]
SLPVectorizer: Bring back the insertelement patch (r205965) with fixes

When can't assume a vectorized tree is rooted in an instruction. The IRBuilder
could have constant folded it. When we rebuild the build_vector (the series of
InsertElement instructions) use the last original InsertElement instruction. The
vectorized tree root is guaranteed to be before it.

Also, we can't assume that the n-th InsertElement inserts the n-th element into
a vector.

This reverts r207746 which reverted the revert of the revert of r205018 or so.

Fixes the test case in PR19621.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207939 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAVX-512: minor change in rndscale intrinsic
Elena Demikhovsky [Sun, 4 May 2014 13:35:37 +0000 (13:35 +0000)]
AVX-512: minor change in rndscale intrinsic

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207937 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LCG] Add the last (and most complex) of the edge insertion mutation
Chandler Carruth [Sun, 4 May 2014 09:38:32 +0000 (09:38 +0000)]
[LCG] Add the last (and most complex) of the edge insertion mutation
operations on the call graph. This one forms a cycle, and while not as
complex as removing an internal edge from an SCC, it involves
a reasonable amount of work to find all of the nodes newly connected in
a cycle.

Also somewhat alarming is the worst case complexity here: it might have
to walk roughly the entire SCC inverse DAG to insert a single edge. This
is carefully documented in the API (I hope).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207935 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LCG] Reorder the tests to be a bit more logical: inter-SCC mutation
Chandler Carruth [Sun, 4 May 2014 09:38:23 +0000 (09:38 +0000)]
[LCG] Reorder the tests to be a bit more logical: inter-SCC mutation
before intra-SCC mutation, insertion before removal.

No functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207934 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoX86: further range-loopify AsmPrinter
Saleem Abdulrasool [Sun, 4 May 2014 01:54:17 +0000 (01:54 +0000)]
X86: further range-loopify AsmPrinter

Use more range loops in the X86AsmPrinter.  NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207928 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoX86: remove X86COFFMachineModuleInfo
Saleem Abdulrasool [Sun, 4 May 2014 01:54:12 +0000 (01:54 +0000)]
X86: remove X86COFFMachineModuleInfo

Remove dead code.  This is vestigial after r98384.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207927 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoX86: repair export compatibility with MinGW/cygwin
Saleem Abdulrasool [Sun, 4 May 2014 00:03:48 +0000 (00:03 +0000)]
X86: repair export compatibility with MinGW/cygwin

Both MinGW and cygwin (i686) construct export directives without the global
leader prefix.  This is mostly due to the fact that they use GNU ld which does
not correctly handle the export directive.  This apparently has been been broken
for a while.  However, this was recently reported as being broken by
mingwandroid and diorcety of the msys2 project.

Remove the global leader prefix if targeting MinGW or cygwin, otherwise, retain
the global leader prefix.  Add an explicit test for cygwin's behaviour of export
directives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207926 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoX86: refactor export directive generation
Saleem Abdulrasool [Sun, 4 May 2014 00:03:41 +0000 (00:03 +0000)]
X86: refactor export directive generation

Create a helper function to generate the export directive.  This was previously
duplicated inline to handle export directives for variables and functions.  This
also enables the use of range-based iterators for the generation of the
directive rather than the traditional loops.  NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207925 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoIR: Cleanup AttributeSet::get for AttrBuilder
David Majnemer [Sat, 3 May 2014 23:00:35 +0000 (23:00 +0000)]
IR: Cleanup AttributeSet::get for AttrBuilder

We don't modify the AttrBuilder in AttributeSet::get, make the reference
argument const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207924 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[TBAA] Fix handling of mixed TBAA (path-aware and non-path-aware TBAA).
Juergen Ributzka [Sat, 3 May 2014 22:32:52 +0000 (22:32 +0000)]
[TBAA] Fix handling of mixed TBAA (path-aware and non-path-aware TBAA).

This fix simply ensures that both metadata nodes are path-aware before
performing path-aware alias analysis.

This issue isn't normally triggered in LLVM, because we perform an autoupgrade
of the TBAA metadata to the new format when reading in LL or BC files. This
issue only appears when a client creates the IR manually and mixes old and new
TBAA metadata format.

This fixes <rdar://problem/16760860>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207923 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix pr19645.
Rafael Espindola [Sat, 3 May 2014 19:57:04 +0000 (19:57 +0000)]
Fix pr19645.

The fix itself is fairly simple: move getAccessVariant to MCValue so that we
replace the old weak expression evaluation with the far more general
EvaluateAsRelocatable.

This then requires that EvaluateAsRelocatable stop when it finds a non
trivial reference kind. And that in turn requires the ELF writer to look
harder for weak references.

Last but not least, this found a case where we were being bug by bug
compatible with gas and accepting an invalid input. I reported pr19647
to track it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207920 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM64] Correctly select ANDWri in FastISel.
Joey Gouly [Sat, 3 May 2014 17:27:06 +0000 (17:27 +0000)]
[ARM64] Correctly select ANDWri in FastISel.

http://reviews.llvm.org/D3598

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207917 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSLPVectorizer: Lazily allocate the map for block numbering.
Benjamin Kramer [Sat, 3 May 2014 15:50:37 +0000 (15:50 +0000)]
SLPVectorizer: Lazily allocate the map for block numbering.

There is no point in creating it if we're not going to vectorize
anything. Creating the map is expensive as it creates large values.
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207916 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRename member variable to try to fix the bots.
Rafael Espindola [Sat, 3 May 2014 15:28:13 +0000 (15:28 +0000)]
Rename member variable to try to fix the bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207915 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate docs still mentioning LLVM_ENABLE_CXX11
Alp Toker [Sat, 3 May 2014 15:10:04 +0000 (15:10 +0000)]
Update docs still mentioning LLVM_ENABLE_CXX11

C++11 is now required.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207914 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove LTOModule and LTOCodeGenerator to the llvm namespace.
Rafael Espindola [Sat, 3 May 2014 14:59:52 +0000 (14:59 +0000)]
Move LTOModule and LTOCodeGenerator to the llvm namespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207911 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoStyle fix: don't duplicate the method names.
Rafael Espindola [Sat, 3 May 2014 14:46:47 +0000 (14:46 +0000)]
Style fix: don't duplicate the method names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207910 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoStyle update: don't duplicate comments, they were getting out of sync.
Rafael Espindola [Sat, 3 May 2014 14:34:48 +0000 (14:34 +0000)]
Style update: don't duplicate comments, they were getting out of sync.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207909 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdated Doxygen link for InstIterator.h.
Yaron Keren [Sat, 3 May 2014 12:06:13 +0000 (12:06 +0000)]
Updated Doxygen link for InstIterator.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207906 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ELFYAML] Group ELF header falgs to target specific blocks. Handle flags
Simon Atanasyan [Sat, 3 May 2014 11:39:50 +0000 (11:39 +0000)]
[ELFYAML] Group ELF header falgs to target specific blocks. Handle flags
which are corresponding to the current target read from the ELF file.

This fix cannot be tested until obj2yaml does not support ELF format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207905 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ELFYAML] Add more SHT_xxx flags to the YAML section type mapping.
Simon Atanasyan [Sat, 3 May 2014 11:39:44 +0000 (11:39 +0000)]
[ELFYAML] Add more SHT_xxx flags to the YAML section type mapping.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207904 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoInstIterator.h lives in llvm/IR.
Yaron Keren [Sat, 3 May 2014 11:30:49 +0000 (11:30 +0000)]
InstIterator.h lives in llvm/IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207903 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoVectorize intrinsic math function calls in SLPVectorizer.
Karthik Bhat [Sat, 3 May 2014 09:59:54 +0000 (09:59 +0000)]
Vectorize intrinsic math function calls in SLPVectorizer.
This patch adds support to recognize and vectorize intrinsic math functions in SLPVectorizer.
Review: http://reviews.llvm.org/D3560 and http://reviews.llvm.org/D3559

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207901 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LSR] Add llc testcase for r207271/r207569.
Adam Nemet [Fri, 2 May 2014 23:49:01 +0000 (23:49 +0000)]
[LSR] Add llc testcase for r207271/r207569.

See PR19608 for the details but to summarize it was easy to modify the .ll
file to get the desired def-use ordering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207887 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTry simplifying LexicalScopes ownership again.
David Blaikie [Fri, 2 May 2014 22:21:05 +0000 (22:21 +0000)]
Try simplifying LexicalScopes ownership again.

Committed initially in r207724-r207726 and reverted due to compiler-rt
crashes in r207732.

Instead, fix this harder with unordered_map and store the LexicalScopes
by value in the map. This did necessitate moving the definition of
LexicalScope above the definition of LexicalScopes.

Let's see how the buildbots/compilers tolerate unordered_map::emplace +
std::piecewise_construct + std::forward_as_tuple...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207876 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[sanitizers] Propagate the sanitizer options through to the lit context.
Chandler Carruth [Fri, 2 May 2014 21:47:35 +0000 (21:47 +0000)]
[sanitizers] Propagate the sanitizer options through to the lit context.
This makes it *really* easy to debug leaks FYI:

ASAN_OPTIONS=detect_leaks=1 ./bin/llvm-lit -v <path to test>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207874 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSatisfy GCC's urgent need for parentheses around ‘&&’ within ‘||’.
Benjamin Kramer [Fri, 2 May 2014 21:28:49 +0000 (21:28 +0000)]
Satisfy GCC's urgent need for parentheses around â€˜&&’ within â€˜||’.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207871 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAliases are always definitions. Delete dead code.
Rafael Espindola [Fri, 2 May 2014 21:10:48 +0000 (21:10 +0000)]
Aliases are always definitions. Delete dead code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207869 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoClean up constructor logic and member access for LoopVectorizeHints.
Eric Christopher [Fri, 2 May 2014 20:40:04 +0000 (20:40 +0000)]
Clean up constructor logic and member access for LoopVectorizeHints.

There are public functions that mutate various members as well as
another private member already, so make all the members private to
avoid the discontinuity and add accessors for the values. Should
be no functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207868 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Fix handling of line zero appearing in a line table
Justin Bogner [Fri, 2 May 2014 20:01:24 +0000 (20:01 +0000)]
llvm-cov: Fix handling of line zero appearing in a line table

Reading line tables in llvm-cov was pretty broken, but would happen to
work as long as no line in the table was 0. It's not clear to me
whether a line of zero *should* show up in these tables, but deciding
to read a string in the middle of the line table is certainly the
wrong thing to do if it does.

I've also added some comments, as trying to figure out what this block
of code was doing was fairly unpleasant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207866 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[tablegen] !strconcat accepts more than two arguments but this wasn't documented...
Daniel Sanders [Fri, 2 May 2014 19:25:52 +0000 (19:25 +0000)]
[tablegen] !strconcat accepts more than two arguments but this wasn't documented or tested.

Summary:
* Updated the documentation
* Added a test for >2 arguments
* Added a check for the lexical concatenation
* Made the existing test a bit stricter.

Reviewers: t.p.northover

Reviewed By: t.p.northover

Subscribers: t.p.northover, llvm-commits

Differential Revision: http://reviews.llvm.org/D3485

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207865 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove dead declaration.
Rafael Espindola [Fri, 2 May 2014 18:37:07 +0000 (18:37 +0000)]
Remove dead declaration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207857 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTeach GlobalDCE how to remove empty global_ctor entries.
Nico Weber [Fri, 2 May 2014 18:35:25 +0000 (18:35 +0000)]
Teach GlobalDCE how to remove empty global_ctor entries.

This moves most of GlobalOpt's constructor optimization
code out of GlobalOpt into Transforms/Utils/CDtorUtils.{h,cpp}. The
public interface is a single function OptimizeGlobalCtorsList() that
takes a predicate returning which constructors to remove.

GlobalOpt calls this with a function that statically evaluates all
constructors, just like it did before. This part of the change is
behavior-preserving.

Also add a call to this from GlobalDCE with a filter that removes global
constructors that contain a "ret" instruction and nothing else â€“ this
fixes PR19590.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207856 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[GVN] Pass the phi-translated address of a load instead of the untranslated
Akira Hatanaka [Fri, 2 May 2014 17:59:17 +0000 (17:59 +0000)]
[GVN] Pass the phi-translated address of a load instead of the untranslated
address to AnalyzeLoadFromClobberingLoad. This fixes a bug in load-PRE where
PRE is applied to a load that is not partially redundant.

<rdar://problem/16638765>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207853 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMC: place .file records into the correct section
Saleem Abdulrasool [Fri, 2 May 2014 17:45:24 +0000 (17:45 +0000)]
MC: place .file records into the correct section

.file records are supposed to have a section identifier of 65534
(IMAGE_SCN_DEBUG) rather than 0.  This is spelt out clearly within the PE/COFF
specification.  Fix this minor oversight with the implementation for support for
.file records.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207851 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDAGCombine: prevent formation of illegal ConstantFP nodes.
Tim Northover [Fri, 2 May 2014 17:25:02 +0000 (17:25 +0000)]
DAGCombine: prevent formation of illegal ConstantFP nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207850 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd a description for AMD's bdver4 (aka Excavator).
Benjamin Kramer [Fri, 2 May 2014 15:47:07 +0000 (15:47 +0000)]
Add a description for AMD's bdver4 (aka Excavator).

This is just bdver3 + AVX2 + BMI2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207847 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Add processor type for Mullins.
Tom Stellard [Fri, 2 May 2014 15:41:49 +0000 (15:41 +0000)]
R600/SI: Add processor type for Mullins.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Samuel Li <samuel.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207846 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Expand vector sin and cos.
Tom Stellard [Fri, 2 May 2014 15:41:47 +0000 (15:41 +0000)]
R600: Expand vector sin and cos.

v2: move code to AMDGPUISelLowering.cpp
    squash with tests (both EG and SI)

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207845 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Expand TruncStore i64 -> {i16,i8}
Tom Stellard [Fri, 2 May 2014 15:41:46 +0000 (15:41 +0000)]
R600: Expand TruncStore i64 -> {i16,i8}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207844 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Only create one instruction when spilling/restoring register v3
Tom Stellard [Fri, 2 May 2014 15:41:42 +0000 (15:41 +0000)]
R600/SI: Only create one instruction when spilling/restoring register v3

The register spiller assumes that only one new instruction is created
when spilling and restoring registers, so we need to emit pseudo
instructions for vector register spills and lower them after
register allocation.

v2:
  - Fix calculation of lane index
  - Extend VGPR liveness to end of program.

v3:
  - Use SIMM16 field of S_NOP to specify multiple NOPs.

https://bugs.freedesktop.org/show_bug.cgi?id=75005

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207843 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64/ARM64: add patterns for post-indexed ST1 ops.
Tim Northover [Fri, 2 May 2014 14:54:27 +0000 (14:54 +0000)]
AArch64/ARM64: add patterns for post-indexed ST1 ops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207840 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoARM64: refactor NEON post-indexed loads & stores (MC).
Tim Northover [Fri, 2 May 2014 14:54:21 +0000 (14:54 +0000)]
ARM64: refactor NEON post-indexed loads & stores (MC).

Previously, LLVM had no knowledge that these instructions actually
modified their address register: fine if they never end up in CodeGen,
but when I'd rather like to write some patterns for them it becomes a
disaster.

The change is mostly straightforward, I think the most significant
design decision was to *always* put the address write-back first. This
allows loads and stores to be accessed more uniformly, for example
permitting the continued sharing of the InstAlias definitions.

I also discovered that the custom Decode logic is no longer needed, so
I removed it.

No tests, because there should be no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207839 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64/ARM64: support indexed loads/stores on vector types.
Tim Northover [Fri, 2 May 2014 14:54:15 +0000 (14:54 +0000)]
AArch64/ARM64: support indexed loads/stores on vector types.

While post-indexed LD1/ST1 instructions do exist for vector loads,
this patch makes use of the more flexible addressing-modes in LDR/STR
instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207838 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAllow SelectionDAG::FoldConstantArithmetic to work when it's called with a vector...
Benjamin Kramer [Fri, 2 May 2014 12:35:22 +0000 (12:35 +0000)]
Allow SelectionDAG::FoldConstantArithmetic to work when it's called with a vector VT but scalar values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207835 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCode style fix from Duncan P. N. Exon Smith.
Yaron Keren [Fri, 2 May 2014 08:26:30 +0000 (08:26 +0000)]
Code style fix from Duncan P. N. Exon Smith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207831 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFold strlen(expr ? "str1" : "str2") to x ? len1 : len2. This fires about 330 times...
Nick Lewycky [Fri, 2 May 2014 04:11:45 +0000 (04:11 +0000)]
Fold strlen(expr ? "str1" : "str2") to x ? len1 : len2. This fires about 330 times in a bootstrap of clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207828 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Stackmaps] Pacify windows buildbot.
Juergen Ributzka [Thu, 1 May 2014 22:39:26 +0000 (22:39 +0000)]
[Stackmaps] Pacify windows buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207807 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Stackmaps] Add command line option to specify the stackmap version.
Juergen Ributzka [Thu, 1 May 2014 22:21:30 +0000 (22:21 +0000)]
[Stackmaps] Add command line option to specify the stackmap version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207805 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Stackmaps] Refactor serialization code. No functional change intended.
Juergen Ributzka [Thu, 1 May 2014 22:21:27 +0000 (22:21 +0000)]
[Stackmaps] Refactor serialization code. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207804 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Stackmaps] Replace the custom ConstantPool class with a MapVector.
Juergen Ributzka [Thu, 1 May 2014 22:21:24 +0000 (22:21 +0000)]
[Stackmaps] Replace the custom ConstantPool class with a MapVector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207803 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[IR] Make {extract,insert}element accept an index of any integer type.
Michael J. Spencer [Thu, 1 May 2014 22:12:39 +0000 (22:12 +0000)]
[IR] Make {extract,insert}element accept an index of any integer type.

Given the following C code llvm currently generates suboptimal code for
x86-64:

__m128 bss4( const __m128 *ptr, size_t i, size_t j )
{
    float f = ptr[i][j];
    return (__m128) { f, f, f, f };
}

=================================================

define <4 x float> @_Z4bss4PKDv4_fmm(<4 x float>* nocapture readonly %ptr, i64 %i, i64 %j) #0 {
  %a1 = getelementptr inbounds <4 x float>* %ptr, i64 %i
  %a2 = load <4 x float>* %a1, align 16, !tbaa !1
  %a3 = trunc i64 %j to i32
  %a4 = extractelement <4 x float> %a2, i32 %a3
  %a5 = insertelement <4 x float> undef, float %a4, i32 0
  %a6 = insertelement <4 x float> %a5, float %a4, i32 1
  %a7 = insertelement <4 x float> %a6, float %a4, i32 2
  %a8 = insertelement <4 x float> %a7, float %a4, i32 3
  ret <4 x float> %a8
}

=================================================

        shlq    $4, %rsi
        addq    %rdi, %rsi
        movslq  %edx, %rax
        vbroadcastss    (%rsi,%rax,4), %xmm0
        retq

=================================================

The movslq is uneeded, but is present because of the trunc to i32 and then
sext back to i64 that the backend adds for vbroadcastss.

We can't remove it because it changes the meaning. The IR that clang
generates is already suboptimal. What clang really should emit is:

  %a4 = extractelement <4 x float> %a2, i64 %j

This patch makes that legal. A separate patch will teach clang to do it.

Differential Revision: http://reviews.llvm.org/D3519

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207801 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove HexagonTargetMachine::addPassesForOptimizations; it is not needed any more.
Pranav Bhandarkar [Thu, 1 May 2014 22:10:59 +0000 (22:10 +0000)]
Remove HexagonTargetMachine::addPassesForOptimizations; it is not needed any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207800 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[OCaml] Add an ocamlfind package llvm.all_backends.
Peter Zotov [Thu, 1 May 2014 21:00:52 +0000 (21:00 +0000)]
[OCaml] Add an ocamlfind package llvm.all_backends.

This package is useful for architecture-independent tools like llc.

Patch by Jacques-Pascal Deplaix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207793 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd basic functionality for assignment of ints.
Reed Kotler [Thu, 1 May 2014 20:39:21 +0000 (20:39 +0000)]
Add basic functionality for assignment of ints.
This creates a lot of core infrastructure in which to add, with little
effort, quite a bit more to mips fast-isel

Test Plan: simplestore.ll

Reviewers: dsanders

Reviewed By: dsanders

Differential Revision: http://reviews.llvm.org/D3527

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207790 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix uninitialized variable introduced in r207739.
David Blaikie [Thu, 1 May 2014 19:55:34 +0000 (19:55 +0000)]
Fix uninitialized variable introduced in r207739.

This was initialized by llvm-mc (calling setDwarfVersion) but other
clients (such as clang, llc, etc) aren't necessarily initializing this
so we were getting garbage DWARF version values in the output.
Initialize it to a reasonable default (the same default used in llvm-mc,
though this is higher than it was (2) previously).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207788 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't propagate StorageClass and ComplexType to aliases.
Rafael Espindola [Thu, 1 May 2014 19:02:03 +0000 (19:02 +0000)]
Don't propagate StorageClass and ComplexType to aliases.

This matches gas' behaviour on COFF.

I think that this yak is now sufficiently shaved for aliases with offset
to work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207786 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate and sort CMakeLists.
Benjamin Kramer [Thu, 1 May 2014 18:59:11 +0000 (18:59 +0000)]
Update and sort CMakeLists.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207785 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd an optimization that does CSE in a group of similar GEPs.
Eli Bendersky [Thu, 1 May 2014 18:38:36 +0000 (18:38 +0000)]
Add an optimization that does CSE in a group of similar GEPs.

This optimization merges the common part of a group of GEPs, so we can compute
each pointer address by adding a simple offset to the common part.

The optimization is currently only enabled for the NVPTX backend, where it has
a large payoff on some benchmarks.

Review: http://reviews.llvm.org/D3462

Patch by Jingyue Wu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207783 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Correct the attribute type kind.
David Blaikie [Thu, 1 May 2014 18:31:21 +0000 (18:31 +0000)]
DebugInfo: Correct the attribute type kind.

Post commit review feedback from Paul Robinson regarding r207777.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207782 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPR19623: Implement typedefs of void.
David Blaikie [Thu, 1 May 2014 17:56:13 +0000 (17:56 +0000)]
PR19623: Implement typedefs of void.

This the LLVM portion that will allow Clang and other frontends to emit
typedefs of void by providing a null type for the typedef's underlying
type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207777 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFixing a cast-qual warning. getBufferStart() and getBufferEnd() both return a const...
Aaron Ballman [Thu, 1 May 2014 17:16:24 +0000 (17:16 +0000)]
Fixing a cast-qual warning. getBufferStart() and getBufferEnd() both return a const char *, so casting to non-const was triggering a warning (even though the assignment and usage was always const anyway).

No functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207774 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Fix verifier error with pseudo store instructions.
Matt Arsenault [Thu, 1 May 2014 16:37:52 +0000 (16:37 +0000)]
R600/SI: Fix verifier error with pseudo store instructions.

Use i32 instead of specifying SReg_32. When this is
the pseudo INDIRECT_BASE_ADDR, this would give a bogus
verifier error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207770 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCompute the correct section for zed = foo + 1 in COFF.
Rafael Espindola [Thu, 1 May 2014 13:37:57 +0000 (13:37 +0000)]
Compute the correct section for zed = foo + 1 in COFF.

This fixes pr19147.

There are a few more related issues to fix, but the testcase in the bug now
passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207763 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove getBaseSymbol somewhere the COFF writer can use.
Rafael Espindola [Thu, 1 May 2014 13:24:25 +0000 (13:24 +0000)]
Move getBaseSymbol somewhere the COFF writer can use.

I will use it there in a second.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207761 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM64] Prefer generation of bzero on Darwin only
Bradley Smith [Thu, 1 May 2014 13:11:59 +0000 (13:11 +0000)]
[ARM64] Prefer generation of bzero on Darwin only

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207760 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake getBaseSymbol non recursive.
Rafael Espindola [Thu, 1 May 2014 13:09:42 +0000 (13:09 +0000)]
Make getBaseSymbol non recursive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207759 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't force symbols to be globals in .thumb_set.
Rafael Espindola [Thu, 1 May 2014 12:45:43 +0000 (12:45 +0000)]
Don't force symbols to be globals in .thumb_set.

We currently force symbols to be globals in .thumb_set. The intent
seems to be that given

.thumb_set foo, bar

we emit an undefined symbol to bar if it is never defined. The side
effect is that we mark bar as global, even if it is defined, which gas
does not.

Producing an undefined reference to bar is a general difference from MC and gas.
For example, given

a = b

gas will produce an undefined reference to b, MC will not. I would be surprised
if any code depends on this, but it it does, we should fix the general
difference, not special case .thumb_set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207757 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate post-r203364 http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140...
Yaron Keren [Thu, 1 May 2014 12:33:26 +0000 (12:33 +0000)]
Update post-r203364 lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140303/207915.html
and ranged for loops.

http://reviews.llvm.org/D3582

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207755 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64/ARM64: rewrite test to use FileCheck & add ARM64 lines
Tim Northover [Thu, 1 May 2014 12:30:01 +0000 (12:30 +0000)]
AArch64/ARM64: rewrite test to use FileCheck & add ARM64 lines

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207754 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64/ARM64: port basic disassembly tests to ARM64.
Tim Northover [Thu, 1 May 2014 12:29:56 +0000 (12:29 +0000)]
AArch64/ARM64: port basic disassembly tests to ARM64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207753 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64/ARM64: print BFM instructions as BFI or BFXIL
Tim Northover [Thu, 1 May 2014 12:29:38 +0000 (12:29 +0000)]
AArch64/ARM64: print BFM instructions as BFI or BFXIL

The canonical form of the BFM instruction is always one of the more explicit
extract or insert operations, which makes reading output much easier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207752 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LCG] Add the other simple edge insertion API to the call graph. This
Chandler Carruth [Thu, 1 May 2014 12:18:20 +0000 (12:18 +0000)]
[LCG] Add the other simple edge insertion API to the call graph. This
just connects an SCC to one of its descendants directly. Not much of an
impact. The last one is the hard one -- connecting an SCC to one of its
ancestors, and thereby forming a cycle such that we have to merge all
the SCCs participating in the cycle.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207751 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LCG] Don't lookup the child SCC twice. Spotted this by inspection, and
Chandler Carruth [Thu, 1 May 2014 12:16:31 +0000 (12:16 +0000)]
[LCG] Don't lookup the child SCC twice. Spotted this by inspection, and
no functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207750 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LCG] Add some basic methods for querying the parent/child relationships
Chandler Carruth [Thu, 1 May 2014 12:12:42 +0000 (12:12 +0000)]
[LCG] Add some basic methods for querying the parent/child relationships
of SCCs in the SCC DAG. Exercise them in the big graph test case. These
will be especially useful for establishing invariants in insertion
logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207749 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[llvm-readobj] Transform 'switch' with the only 'case' statement
Simon Atanasyan [Thu, 1 May 2014 11:57:40 +0000 (11:57 +0000)]
[llvm-readobj] Transform 'switch' with the only 'case' statement
to 'if' statement.

No functional changes,

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207748 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCorrection to assert statemtent to allow 32-bit unsigned numbers with the top bit...
Richard Barton [Thu, 1 May 2014 11:37:44 +0000 (11:37 +0000)]
Correction to assert statemtent to allow 32-bit unsigned numbers with the top bit set.

This fixes an ARM assembler crash - regression test added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207747 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert r205965, which essentially reverts r205018 for the second time.
Chandler Carruth [Thu, 1 May 2014 11:24:11 +0000 (11:24 +0000)]
Revert r205965, which essentially reverts r205018 for the second time.
=[

Turns out that this was the root cause of PR19621. We found a crasher
only recently (likely due to improvements elsewhere in the SLP
vectorizer) but the reduced test case failed all the way back to here.
I've confirmed that reverting this patch both fixes the reduced test
case in PR19621 and the actual source file that led to it, so it seems
to really be rooted here. I've replied to the commit thread with
discussion of my (feeble) attempts to debug this. Didn't make it very
far, so reverting now that we have a good test case so that things can
get back to healthy while the debugging carries on.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207746 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[llvm-readobj] Add support for Mips specific ELF header e_flags.
Simon Atanasyan [Thu, 1 May 2014 11:07:19 +0000 (11:07 +0000)]
[llvm-readobj] Add support for Mips specific ELF header e_flags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207744 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LCG] Fix a bad bug in the new fancy iterator scheme I added to support
Chandler Carruth [Thu, 1 May 2014 10:41:51 +0000 (10:41 +0000)]
[LCG] Fix a bad bug in the new fancy iterator scheme I added to support
removal. We can't just blindly increment (or decrement) the adapted
iterator when the value is null because doing so can walk past the end
(or beginning) and keep inspecting the value. The fix I've implemented
is to restrict this further to a forward iterator and add an end
iterator to the members (replacing a member that had become dead when
I switched to the adaptor base!) and using that to stop the iteration.

I'm not entirely pleased with this solution. I feel like forward
iteration is too restrictive. I wasn't even happy about bidirectional
iteration. It also makes the iterator objects larger and the iteration
loops more complex. However, I also don't really like the other
alternative that seems obvious: a sentinel node. I'm still hoping to
come up with a more elegant solution here, but this at least fixes the
MSan and Valgrind errors on this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207743 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM64] Conditionalize CPU specific system registers on subtarget features
Bradley Smith [Thu, 1 May 2014 10:25:36 +0000 (10:25 +0000)]
[ARM64] Conditionalize CPU specific system registers on subtarget features

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207742 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Move expansion of .cpsetup to target streamer.
Matheus Almeida [Thu, 1 May 2014 10:24:46 +0000 (10:24 +0000)]
[mips] Move expansion of .cpsetup to target streamer.

Summary:
There are two functional changes:
1) The directive is not expanded for the ASM->ASM code path.
2) If PIC is not set, there's no expansion for the ASM->OBJ code path (same behaviour as GAS).

Reviewers: dsanders

Reviewed By: dsanders

Differential Revision: http://reviews.llvm.org/D3482

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207741 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Removed two-operand alias for sllv, sr[al]v, rotrv, dsllv, dsr[al]v, and drotrv
Daniel Sanders [Thu, 1 May 2014 10:08:36 +0000 (10:08 +0000)]
[mips] Removed two-operand alias for sllv, sr[al]v, rotrv, dsllv, dsr[al]v, and drotrv

GAS doesn't actually accept these particular cases.

The mnemonic without the trailing 'v' still supports two-operand aliases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207740 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRecord the DWARF version in MCContext
Oliver Stannard [Thu, 1 May 2014 08:46:02 +0000 (08:46 +0000)]
Record the DWARF version in MCContext

Record the DWARF version in MCContext, and use it when
emitting the dwarf version into the debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207739 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoARM: fix memory leak, simplify WoA stack probing
Saleem Abdulrasool [Thu, 1 May 2014 04:19:59 +0000 (04:19 +0000)]
ARM: fix memory leak, simplify WoA stack probing

This fixes the memory leak introduced with the initial addition of support for
WoA stack probing.  Now that the pseudo-instruction expansion can handle an
external symbol, use that to generate the load which simplifies the logic as
well as avoids the memory leak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207737 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoARM: support expanding external symbols in 32-bit moves
Saleem Abdulrasool [Thu, 1 May 2014 04:19:56 +0000 (04:19 +0000)]
ARM: support expanding external symbols in 32-bit moves

This enhances the expansion of the mov32imm pseudo-instruction to support an
external symbol reference.  This is motivated by a simplification of the stack
probe emission for Windows on ARM (and fixing a leak).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207736 91177308-0d34-0410-b5e6-96231b3b80d8