Devang Patel [Wed, 28 Sep 2011 18:50:00 +0000 (18:50 +0000)]
Introduce llvm-cov.
Add llvm-cov skeleton. It has initial support to read coverage info generated by GCOVProfiling.cpp.
Today, you can do
prompt> clang a.c -ftest-coverage -fprofile-arcs -o a
prompt> ./a
prompt> llvm-cov -gcno a.gcno -gcda a.gcda
a.c
: #include "a.h"
:
: int main() {
: int i = 0;
: if (i) {
1: int j = 0;
1: j = 1;
1: } else {
: int k = 1;
: k = 2;
: }
1: return 0;
: }
:
:
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140712
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Wed, 28 Sep 2011 18:24:58 +0000 (18:24 +0000)]
PTX: Fix alignment logic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140709
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 28 Sep 2011 18:11:19 +0000 (18:11 +0000)]
Rename predicate In32BitMode to NotFP64bit and add definition of IsFP64bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140705
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 28 Sep 2011 17:56:55 +0000 (17:56 +0000)]
Remove definitions of branch-on-FP-likely instructions. They are deprecated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140704
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 28 Sep 2011 17:50:27 +0000 (17:50 +0000)]
Mips64 predicate definitions. Patch by Liu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140703
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 28 Sep 2011 17:02:54 +0000 (17:02 +0000)]
indvars: generalize SCEV getPreStartForSignExtend.
Handle general Add expressions to avoid leaving around redundant
32-bit IVs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140701
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Wed, 28 Sep 2011 14:32:06 +0000 (14:32 +0000)]
PTX: MC-ize the PTX backend (patch 2 of N)
Get rid of some of the no-longer-needed parts of PTXAsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140698
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Wed, 28 Sep 2011 14:32:04 +0000 (14:32 +0000)]
PTX: MC-ize the PTX back-end (patch 1 of N)
Lay some groundwork for converting to MC-based asm printer. This is the first
of probably many patches to bring the back-end back up-to-date with all of the
recent MC changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140697
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Wed, 28 Sep 2011 14:21:38 +0000 (14:21 +0000)]
Check in a patch that has already been code reviewed by Owen that I'd forgotten to commit.
Build on previous patches to successfully distinguish between an M-series and A/R-series MSR and MRS instruction. These take different mask names and have a *slightly* different opcode format.
Add decoder and disassembler tests.
Improvement on the previous patch - successfully distinguish between valid v6m and v7m masks (one is a subset of the other). The patch had to be edited slightly to apply to ToT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140696
91177308-0d34-0410-b5e6-
96231b3b80d8
Garrison Venn [Wed, 28 Sep 2011 10:53:56 +0000 (10:53 +0000)]
Changed comments on foreign C++ exceptions (generated with type info 7),
handling with references to
http://sourcery.mentor.com/public/cxx-abi/abi-eh.html (r 1.22).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140695
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 28 Sep 2011 09:13:02 +0000 (09:13 +0000)]
A typeid of zero means a cleanup, not a catch. This case occurs
when there is both a catch and a cleanup. Correct the comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140686
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 28 Sep 2011 04:32:36 +0000 (04:32 +0000)]
PTX: Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140680
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 28 Sep 2011 04:08:02 +0000 (04:08 +0000)]
PTX: Pass param name strings per const reference.
The copies caused use-after-free bugs on std::string implementations without COW (i.e. anything but libstdc++)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140679
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 28 Sep 2011 03:52:41 +0000 (03:52 +0000)]
Strip off pointer casts when looking at the eh.sjlj.functioncontext's argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140678
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 28 Sep 2011 03:47:11 +0000 (03:47 +0000)]
Bitcast the alloca to an i8* to match the intrinsic's signature.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140677
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 28 Sep 2011 03:36:43 +0000 (03:36 +0000)]
Create and use an llvm.eh.sjlj.functioncontext intrinsic.
This intrinsic is used to pass the index of the function context to the back-end
for further processing. The back-end is in charge of filling in the rest of the
entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140676
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 28 Sep 2011 03:14:05 +0000 (03:14 +0000)]
In the new EH model, setup the function context and the call site info.
The DWARF exception pass uses the call site information, which is set up here. A
pre-RA pass is too late for it to use this information. So create and setup the
function context here, and then insert the call site values here (and map the
call sites for the DWARF EH pass). This is simpler than the original pass, and
doesn't make the CFG lose its SSA-ness.
It's a win-win-win-win-lose-win-win situation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140675
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 28 Sep 2011 03:07:34 +0000 (03:07 +0000)]
Don't conditionalize execution of the SjLj EH prepare pass.
We may need an SjLj EH preparation pass for some call site information, at least
in the short term.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140674
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 28 Sep 2011 02:13:32 +0000 (02:13 +0000)]
Test case for r140670: indvars should hoist sext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140671
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 28 Sep 2011 01:35:36 +0000 (01:35 +0000)]
indvars should hoist [sz]ext because licm is not rerun.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140670
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 28 Sep 2011 00:34:27 +0000 (00:34 +0000)]
PR10628: Fix getModRefInfo so it queries the underlying alias() implementation correctly while checking nocapture calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140666
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 28 Sep 2011 00:01:56 +0000 (00:01 +0000)]
Rename class and clean up source.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140664
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 28 Sep 2011 00:01:54 +0000 (00:01 +0000)]
Rename SSEDomainFix -> lib/CodeGen/ExecutionDepsFix.
I'll clean up the source in the next commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140663
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 23:55:37 +0000 (23:55 +0000)]
Remove MipsFPRound. Mips1 is no longer supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140661
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 27 Sep 2011 23:50:46 +0000 (23:50 +0000)]
Remove X86-dependent stuff from SSEDomainFix.
This also enables domain swizzling for AVX code which required a few
trivial test changes.
The pass will be moved to lib/CodeGen shortly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140659
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 27 Sep 2011 23:29:59 +0000 (23:29 +0000)]
Unbreak CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140655
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 27 Sep 2011 22:57:21 +0000 (22:57 +0000)]
Implement TII::get/setExecutionDomain() for ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140653
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 27 Sep 2011 22:57:18 +0000 (22:57 +0000)]
Promote the X86 Get/SetSSEDomain functions to TargetInstrInfo.
I am going to unify the SSEDomainFix and NEONMoveFix passes into a
single target independent pass. They are essentially doing the same
thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140652
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 27 Sep 2011 22:18:54 +0000 (22:18 +0000)]
ARM Thumb2 asm parsing [SU]XT[BH] without rotate but with .w.
Add inst alias to handle these assembly forms. Add tests, too.
rdar://
10178799
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140647
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 22:14:12 +0000 (22:14 +0000)]
This is the start of the new SjLj EH preparation pass, which will replace the
current IR-level pass.
The old SjLj EH pass has some problems, especially with the new EH model. Most
significantly, it violates some of the new restrictions the new model has. For
instance, the 'dispatch' table wants to jump to the landing pad, but we cannot
allow that because only an invoke's unwind edge can jump to a landing pad. This
requires us to mangle the code something awful. In addition, we need to keep the
now dead landingpad instructions around instead of CSE'ing them because the
DWARF emitter uses that information (they are dead because no control flow edge
will execute them - the control flow edge from an invoke's unwind is superceded
by the edge coming from the dispatch).
Basically, this pass belongs not at the IR level where SSA is king, but at the
code-gen level, where we have more flexibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140646
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 22:01:01 +0000 (22:01 +0000)]
Embed patterns in definitions of MFC1 and MTC1 instead of defining them outside
of the instruction definitions using Pat<>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140644
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Tue, 27 Sep 2011 21:59:16 +0000 (21:59 +0000)]
Remove an invalid assert that is really just asserting when the scheduler emits
a suboptimal schedule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140643
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 27 Sep 2011 21:54:50 +0000 (21:54 +0000)]
test/CMakeLists.txt: Depend on llvm-objdump. "make check" is expected to resolve test-dependent targets on CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140641
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 27 Sep 2011 20:59:33 +0000 (20:59 +0000)]
Rename AddSelectionDAGCSEId() to addSelectionDAGCSEId().
Naming conventions consistency. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140636
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 27 Sep 2011 20:39:19 +0000 (20:39 +0000)]
Stop emitting instructions with the name "tmp" they eat up memory and have to be uniqued, without any benefit.
If someone prefers %tmp42 to %42, run instnamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140634
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 20:16:57 +0000 (20:16 +0000)]
Remove incorrect passage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140631
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 27 Sep 2011 20:01:41 +0000 (20:01 +0000)]
These symbols appear to be visible by SearchForAddressOfSymbol and no longer
require special case handling.
rdar://
10117377
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140629
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 27 Sep 2011 19:37:18 +0000 (19:37 +0000)]
Add binary archive support to llvm-nm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140627
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 27 Sep 2011 19:36:55 +0000 (19:36 +0000)]
Object: Add archive support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140626
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 27 Sep 2011 19:34:22 +0000 (19:34 +0000)]
Check that catch clauses have pointer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140625
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Tue, 27 Sep 2011 19:25:49 +0000 (19:25 +0000)]
PTX: Fix case where printed alignment could be 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140624
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 27 Sep 2011 19:06:37 +0000 (19:06 +0000)]
Unbreak tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140622
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 18:44:01 +0000 (18:44 +0000)]
Add FCA to the lexicon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140619
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Tue, 27 Sep 2011 18:12:55 +0000 (18:12 +0000)]
PTX: Use external symbols to keep track of params and locals. This also fixes
a couple of outstanding issues with frame objects occuring as instruction
operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140616
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 27 Sep 2011 17:55:08 +0000 (17:55 +0000)]
Use existing function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140615
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 17:15:27 +0000 (17:15 +0000)]
Fix function MipsRegisterInfo::getRegisterNumbering.
Return numbers of 64-bit registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140609
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 16:58:43 +0000 (16:58 +0000)]
Do not add the pass that restores $gp if target is Mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140607
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 27 Sep 2011 16:43:19 +0000 (16:43 +0000)]
Have the verifier check that all landingpad operands are constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140606
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 27 Sep 2011 11:16:47 +0000 (11:16 +0000)]
Cleanup PromoteIntOp_EXTRACT_VECTOR_ELT and PromoteIntRes_SETCC.
Add a new method: getAnyExtOrTrunc and use it to replace the manual check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140603
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 27 Sep 2011 10:48:29 +0000 (10:48 +0000)]
Revert r140463; The patch assumes that <4 x i1> is saved to memory as 4 x i8,
while the decision is to bit-pack small values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140601
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 10:37:28 +0000 (10:37 +0000)]
Remove some not-really-correct wording.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140600
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 04:57:54 +0000 (04:57 +0000)]
Mark MipsPseudo isPseudo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140598
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Tue, 27 Sep 2011 01:04:47 +0000 (01:04 +0000)]
PTX: Add support for sitofp in backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140593
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 00:59:31 +0000 (00:59 +0000)]
Split the landing pad basic block with the correct function. Also merge the
split landingpad instructions into a PHI node.
PR11016
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140592
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 27 Sep 2011 00:44:14 +0000 (00:44 +0000)]
Disable LSR retry by default.
Disabling aggressive LSR saves compilation time, and with the new
indvars behavior usually improves performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140590
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 27 Sep 2011 00:17:29 +0000 (00:17 +0000)]
Last batch of test conversions to new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140585
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 26 Sep 2011 23:35:25 +0000 (23:35 +0000)]
LSR, one of the new Cost::isLoser() checks did not get merged in the previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140583
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 23:15:09 +0000 (23:15 +0000)]
Convert a bunch more tests over to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140582
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 23:14:02 +0000 (23:14 +0000)]
Remove extraneous commit garbage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140581
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 26 Sep 2011 23:11:04 +0000 (23:11 +0000)]
LSR cost metric minor fix and verification.
The minor bug heuristic was noticed by inspection. I added the
isLoser/isValid helpers because they will become more
important with subsequent checkins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140580
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 23:08:34 +0000 (23:08 +0000)]
Fix an incorrect decoder test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140579
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 26 Sep 2011 22:30:57 +0000 (22:30 +0000)]
Remove old hack for compiling with gcc-4.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140573
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 22:13:55 +0000 (22:13 +0000)]
Remove incorrect testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140572
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 26 Sep 2011 21:55:17 +0000 (21:55 +0000)]
Set register class of a register according to value of HasMips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140570
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 26 Sep 2011 21:47:02 +0000 (21:47 +0000)]
Define variable HasMips64 in MipsTargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140569
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 26 Sep 2011 21:37:50 +0000 (21:37 +0000)]
In single float mode, double precision FP arguments are passed in integer
registers, so there is no need to check here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140568
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 21:36:10 +0000 (21:36 +0000)]
Convert more tests to new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140567
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 21:30:17 +0000 (21:30 +0000)]
Convert more tests over to the new atomic instructions.
I did not convert Atomics-32.ll and Atomics-64.ll by hand; the diff is autoupgrade output.
The wmb test is gone because there isn't any way to express wmb with the new atomic instructions; if someone really needs a non-asm way to write a wmb on Alpha, a platform-specific intrisic could be added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140566
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 26 Sep 2011 21:10:31 +0000 (21:10 +0000)]
Fix grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140564
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 26 Sep 2011 21:08:28 +0000 (21:08 +0000)]
Remove dead table entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140563
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 26 Sep 2011 21:06:33 +0000 (21:06 +0000)]
Some minor (and more involved) cleanups. No real context changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140561
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 21:06:22 +0000 (21:06 +0000)]
ASR #32 is not allowed on Thumb2 USAT and SSAT instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140560
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 20:27:49 +0000 (20:27 +0000)]
Convert more tests over to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140559
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 20:15:56 +0000 (20:15 +0000)]
Upgrade a couple more tests to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140558
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 20:15:28 +0000 (20:15 +0000)]
Enhance alias analysis for atomic instructions a bit. Upgrade a couple alias-analysis tests to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140557
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 19:19:48 +0000 (19:19 +0000)]
PTX: Fix memcpy intrinsic to handle 64-bit pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140556
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 19:13:47 +0000 (19:13 +0000)]
Fix this test so it doesn't fail on Mac.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140553
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 18:57:27 +0000 (18:57 +0000)]
PTX: Implement PTXSelectionDAGInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140549
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 18:57:24 +0000 (18:57 +0000)]
PTX: Implement ISD::ANY_EXTEND
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140548
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 18:57:22 +0000 (18:57 +0000)]
PTX: Fix detection of stack load/store vs. global load/store, as well as fix the
printing of local offsets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140547
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Mon, 26 Sep 2011 17:40:42 +0000 (17:40 +0000)]
Fix emission of debug data for global variables. getContext() on DIGlobalVariables is not valid any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140539
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:38 +0000 (16:20 +0000)]
PTX: Add .align tests to stack object test file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140537
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:36 +0000 (16:20 +0000)]
PTX: SM > 2.0 implies +double
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140536
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:34 +0000 (16:20 +0000)]
PTX: Fix some lingering issues with stack allocation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140535
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:31 +0000 (16:20 +0000)]
PTX: Split up the TableGen instruction definitions into logical units
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140534
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:28 +0000 (16:20 +0000)]
PTX: Unify handling of loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140533
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:25 +0000 (16:20 +0000)]
PTX: Handle FrameIndex nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140532
91177308-0d34-0410-b5e6-
96231b3b80d8
David Meyer [Mon, 26 Sep 2011 06:44:27 +0000 (06:44 +0000)]
Only run tests in test/CodeGen/CBackend/X86 when both X86 and CBackend are supported
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140517
91177308-0d34-0410-b5e6-
96231b3b80d8
David Meyer [Mon, 26 Sep 2011 06:13:20 +0000 (06:13 +0000)]
PR11004: Inline memcpy to avoid generating nested call sequence. Un-XFAIL 2011-06-09-TailCallByVal and 2010-11-04-BigByval
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140516
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 26 Sep 2011 05:12:43 +0000 (05:12 +0000)]
Fix VEX decoding in i386 mode. Fixes PR11008.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140515
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 25 Sep 2011 19:21:35 +0000 (19:21 +0000)]
Add target hook for pseudo instruction expansion.
Many targets use pseudo instructions to help register allocation. Like
the COPY instruction, these pseudos can be expanded after register
allocation. The early expansion can make life easier for PEI and the
post-ra scheduler.
This patch adds a hook that is called for all remaining pseudo
instructions from the ExpandPostRAPseudos pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140472
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 25 Sep 2011 18:59:42 +0000 (18:59 +0000)]
[vector-select] Address one of the issues in pr10902. EXTRACT_VECTOR_ELEMENT
SDNodes may return values which are wider than the incoming element types. In
this patch we fix the integer promotion of these nodes.
Fixes spill-q.ll when running -promote-elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140471
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 25 Sep 2011 16:46:08 +0000 (16:46 +0000)]
Clean up code after renaming LowerSubregs -> ExpandPostRAPseudos.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140470
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 25 Sep 2011 16:46:00 +0000 (16:46 +0000)]
Rename LowerSubregs to ExpandPostRAPseudos.
I'll fix the file contents in the next commit.
This pass is currently expanding the COPY and SUBREG_TO_REG pseudos. I
am going to add a hook so targets can expand more pseudo-instructions
after register allocation.
Many targets have pseudo-instructions that assist the register
allocator. They can be expanded after register allocation, before PEI
and PostRA scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140469
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 24 Sep 2011 22:06:35 +0000 (22:06 +0000)]
Sort CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140465
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sat, 24 Sep 2011 19:48:19 +0000 (19:48 +0000)]
Implement Duncan's suggestion to use the result of getSetCCResultType if it is legal
(this is always the case for scalars), otherwise use the promoted result type.
Fix test/CodeGen/X86/vsplit-and.ll when promote-elements is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140464
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sat, 24 Sep 2011 18:32:19 +0000 (18:32 +0000)]
[Vector-Select] Address one of the problems in 10902.
When generating the trunc-store of i1's, we need to use the vector type and not
the scalar type.
This patch fixes the assertion in CodeGen/Generic/bool-vector.ll when
running with -promote-elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140463
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 24 Sep 2011 01:40:18 +0000 (01:40 +0000)]
Add .td file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140446
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 24 Sep 2011 01:37:58 +0000 (01:37 +0000)]
Revert change made in .gitignore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140445
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 24 Sep 2011 01:34:44 +0000 (01:34 +0000)]
Preparation for adding simple Mips64 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140443
91177308-0d34-0410-b5e6-
96231b3b80d8