Rafael Espindola [Fri, 10 May 2013 18:31:42 +0000 (18:31 +0000)]
Fix the R600 build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181621
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Fri, 10 May 2013 18:24:17 +0000 (18:24 +0000)]
[ms-inline asm] Fix a crasher when we fail on a direct match.
The issue was that the MatchingInlineAsm and VariantID args to the
MatchInstructionImpl function weren't being set properly. Specifically, when
parsing intel syntax, the parser thought it was parsing inline assembly in the
at&t dialect; that will never be the case.
The crash was caused when the emitter tried to emit the instruction, but the
operands weren't set. When parsing inline assembly we only set the opcode, not
the operands, which is used to lookup the instruction descriptor.
rdar://
13854391 and PR15945
Also, this commit reverts r176036. Now that we're correctly parsing the intel
syntax the pushad/popad don't match properly. I've reimplemented that fix using
a MnemonicAlias.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181620
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 10 May 2013 18:16:59 +0000 (18:16 +0000)]
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181618
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Fri, 10 May 2013 17:58:41 +0000 (17:58 +0000)]
Fix MCJITCAPITest.cpp unit test on Windows.
MCJIT on Windows requires an explicit target triple with "-elf" appended to generate objects in ELF format. The common test framework was setting up this triple, but it wasn't passed to the C API in the test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181614
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexander Kornienko [Fri, 10 May 2013 17:15:51 +0000 (17:15 +0000)]
Better output for long help strings for command-line options.
Summary:
This patch allows using \n inside long help strings for command-line
options, so that all lines are equally indented. This is not a perfect solution,
as we don't (and probably don't want to) know about terminal width, but it
allows to format long help strings somehow readable without manually padding
them with spaces. A motivating example is -help output from clang-format (source
code in tools/clang-format/ClangFormat.cpp, see cl options offset, length,
style, and dump-config).
Reviewers: atrick, alexfh
Reviewed By: alexfh
CC: llvm-commits, rafael
Differential Revision: http://llvm-reviews.chandlerc.com/D779
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181608
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 10 May 2013 16:53:12 +0000 (16:53 +0000)]
Remove unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181606
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 10 May 2013 16:26:37 +0000 (16:26 +0000)]
InstCombine: Don't claim to be able to evaluate any shl in a zexted type.
The shift amount may be larger than the type leading to undefined behavior.
Limit the transform to constant shift amounts. While there update the bits to
clear in the result which may enable additional optimizations.
PR15959.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181604
91177308-0d34-0410-b5e6-
96231b3b80d8
Logan Chien [Fri, 10 May 2013 16:17:24 +0000 (16:17 +0000)]
Implement AsmParser for ARM unwind directives.
This commit implements the AsmParser for fnstart, fnend,
cantunwind, personality, handlerdata, pad, setfp, save, and
vsave directives.
This commit fixes some minor issue in the ARMELFStreamer:
* The switch back to corresponding section after the .fnend
directive.
* Emit the unwind opcode while processing .fnend directive
if there is no .handlerdata directive.
* Emit the unwind opcode to .ARM.extab while processing
.handlerdata even if .personality directive does not exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181603
91177308-0d34-0410-b5e6-
96231b3b80d8
Aaron Ballman [Fri, 10 May 2013 14:42:16 +0000 (14:42 +0000)]
XFAILing this test on Win32 to unbreak the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181600
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 10 May 2013 14:09:52 +0000 (14:09 +0000)]
DAGCombiner: Generate a correct constant for vector types when folding (xor (and)) into (and (not)).
PR15948.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181597
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 10 May 2013 09:16:52 +0000 (09:16 +0000)]
InstCombine: Verify the type before transforming uitofp into select.
PR15952.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181586
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 10 May 2013 02:09:45 +0000 (02:09 +0000)]
R600: Remove AMDILPeeopholeOptimizer and replace optimizations with tablegen patterns
The BFE optimization was the only one we were actually using, and it was
emitting an intrinsic that we don't support.
https://bugs.freedesktop.org/show_bug.cgi?id=64201
Reviewed-by: Christian König <christian.koenig@amd.com>
NOTE: This is a candidate for the 3.3 branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181580
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 10 May 2013 02:09:39 +0000 (02:09 +0000)]
R600: Expand SUB for v2i32/v4i32
Patch by: Aaron Watry
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Aaron Watry <awatry@gmail.com>
NOTE: This is a candidate for the 3.3 branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181579
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 10 May 2013 02:09:34 +0000 (02:09 +0000)]
R600: Expand MUL for v4i32/v2i32
Fixes piglit test for OpenCL builtin mul24, and allows mad24 to run.
Patch by: Aaron Watry
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Aaron Watry <awatry@gmail.com>
NOTE: This is a candidate for the 3.3 branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181578
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 10 May 2013 02:09:29 +0000 (02:09 +0000)]
R600: Expand SRA for v4i32/v2i32
v2: Add v4i32 test
Patch by: Aaron Watry
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Aaron Watry <awatry@gmail.com>
NOTE: This is a candidate for the 3.3 branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181577
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 10 May 2013 02:09:24 +0000 (02:09 +0000)]
R600: Expand vselect for v4i32 and v2i32
v2: Add vselect v4i32 test
Patch by: Aaron Watry
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Aaron Watry <awatry@gmail.com>
NOTE: This is a candidate for the 3.3 branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181576
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 9 May 2013 23:48:53 +0000 (23:48 +0000)]
[x86AsmParser] It's valid to stop parsing an operand at an immediate.
rdar://
13854369 and PR15944
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181564
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 9 May 2013 22:27:13 +0000 (22:27 +0000)]
Teach SelectionDAG to constant fold all-constant FMA nodes the same way that it constant folds FADD, FMUL, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181555
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Thu, 9 May 2013 21:16:18 +0000 (21:16 +0000)]
Fix a documentation warning: \bried -> \brief
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181551
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Thu, 9 May 2013 21:15:03 +0000 (21:15 +0000)]
Documentation warning: \param, not \parm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181549
91177308-0d34-0410-b5e6-
96231b3b80d8
Jordan Rose [Thu, 9 May 2013 21:07:43 +0000 (21:07 +0000)]
Rewrite assert to avoid warning when the record element type is byte-sized.
BitstreamWriter asserts that when blob data is written from the record
element vector, each element fits in a byte. However, if the record
elements are specified as a SmallVector of 'char', this causes a warning
from -Wtautological-constant-out-of-range-compare. Fix this by using
llvm::isUInt<8> instead of a plain comparison against 256.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181545
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 9 May 2013 20:10:38 +0000 (20:10 +0000)]
Generate a compact unwind encoding in the face of a stack alignment push.
We generate a `push' of a random register (%rax) if the stack needs to be
aligned by the size of that register. However, this could mess up compact unwind
generation. In particular, we want to still generate compact unwind in the
presence of this monstrosity.
Check if the push of of the %rax/%eax register. If it is and it's marked with
the `FrameSetup' flag, then we can generate a compact unwind encoding for the
function only if the push is the last FrameSetup instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181540
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Thu, 9 May 2013 19:16:07 +0000 (19:16 +0000)]
Hexagon: Remove switch cases from GetDotNewPredOp and isPostIncrement functions.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181535
91177308-0d34-0410-b5e6-
96231b3b80d8
Shuxin Yang [Thu, 9 May 2013 18:34:27 +0000 (18:34 +0000)]
[GVN] Split critical-edge on the fly, instead of postpone edge-splitting to next
iteration.
This on step toward non-iterative GVN. My local hack suggests that getting rid
of iteration will speedup GVN by 30%+ on a medium sized input (2k LOC, C++).
I cannot explain why not 2x or more at this moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181532
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Thu, 9 May 2013 18:25:44 +0000 (18:25 +0000)]
Hexagon: Use relation map for getMatchingCondBranchOpcode() and
getInvertedPredicatedOpcode() functions instead of switch cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181530
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 9 May 2013 18:21:45 +0000 (18:21 +0000)]
Simplify the code a bit.
The compact unwind registers were defined in two different
places. It's better just to place them in the function that uses them
and specify that this is a 64-bit or 32-bit machine.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181529
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 9 May 2013 17:22:59 +0000 (17:22 +0000)]
Don't replace an alias in llvm.used with its target.
When we replace an internal alias with its target, be careful not to
replace the entry in llvm.used (and llvm.compiler_used).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181524
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Thu, 9 May 2013 16:43:42 +0000 (16:43 +0000)]
[XCore] Fix handling of functions where only the LR is spilled.
Previously we only checked if the LR required saving if the frame size was
non zero. However because the caller reserves 1 word for the callee to use
that doesn't count towards our frame size it is possible for the LR to need
saving and for the frame size to be 0.
We didn't hit when the LR needed saving because of a function calls because
the 1 word of stack we must allocate for our callee means the frame size
is always non zero in this case. However we can hit this case if the LR is
clobbered in inline asm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181520
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 9 May 2013 16:32:32 +0000 (16:32 +0000)]
InstCombine: Don't just copy known bits from the first operand of an srem.
That's obviously wrong. Conservatively restrict it to the sign bit, which
matches the original intention of this analysis. Fixes PR15940.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181518
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 9 May 2013 15:10:36 +0000 (15:10 +0000)]
Avoid runtime type checks.
In most cases the relocation type implies the object word size and
endianness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181515
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 9 May 2013 13:48:26 +0000 (13:48 +0000)]
libDebugInfo depends on libObject nowadays.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181510
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 9 May 2013 13:13:28 +0000 (13:13 +0000)]
Introduce convenience typedefs for the 4 ELF object types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181509
91177308-0d34-0410-b5e6-
96231b3b80d8
Kai Nacke [Thu, 9 May 2013 12:32:36 +0000 (12:32 +0000)]
Test commit.
Add one of my contributions to CREDITS.TXT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181508
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 9 May 2013 03:39:05 +0000 (03:39 +0000)]
Change getRelocationAdditionalInfo to be ELF only.
It was only implemented for ELF where it collected the Addend, so this
patch also renames it to getRelocationAddend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181502
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 9 May 2013 00:42:33 +0000 (00:42 +0000)]
Revert "Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)"
temporarily while investigating gdb.cp/templates.exp.
This reverts commit r181471.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181496
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Thu, 9 May 2013 00:32:18 +0000 (00:32 +0000)]
LoopVectorizer: Don't assert on the absence of induction variables
A computable loop exit count does not imply the presence of an induction
variable. Scalar evolution can return a value for an infinite loop.
Fixes PR15926.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181495
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Wed, 8 May 2013 22:28:48 +0000 (22:28 +0000)]
Use correct parameter names in comments [-Wdocumentation]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181478
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 21:55:31 +0000 (21:55 +0000)]
Revert 181475 as the DebugIR tests are breaking (automake) buildbots that re-use build dirs
- the temporaries "-debug.ll" files generated by DebugIR pass are considered tests, even though they are not
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181476
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 May 2013 21:23:22 +0000 (21:23 +0000)]
Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)
for constructors and destructors since the original declaration given
by the AT_specification both won't and can't.
Patch by Yacine Belkadi, I've cleaned up the testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181471
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 21:03:00 +0000 (21:03 +0000)]
DebugIR tests -- lit tests for the line number transform
- simple one-function case
- function-calling case
- external function calling case
- exception throwing case
- vector case
Note: these tests are somewhat coupled to the current format of debug metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181469
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 20:44:14 +0000 (20:44 +0000)]
Add DebugIR pass -- emits IR file and replace source lines with IR lines in MD
- requires existing debug information to be present
- fixes up file name and line number information in metadata
- emits a "<orig_filename>-debug.ll" succinct IR file (without !dbg metadata
or debug intrinsics) that can be read by a debugger
- initialize pass in opt tool to enable the "-debug-ir" flag
- lit tests to follow
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181467
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 20:38:31 +0000 (20:38 +0000)]
Pull up AssemblyWriter interface into header to allow subclassing
- made all functions virtual so that subclasses can specialize them
- add printInstructionLine so that subclasses can choose whether or not to
print the newline character (without having to implement printBasicBlock()
- added a second constructor to AssemblyWriter that does not require a
SlotTracker, as required in order to keep the SlotTracker helper class outside
AsmWriter.h and buried in the implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181466
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Malea [Wed, 8 May 2013 20:29:10 +0000 (20:29 +0000)]
Add line tracking support to FormattedStream
- previously formatted_raw_ostream tracked columns, now it tracks lines too
- used by (upcoming) DebugIR pass to know the line number to connect to each IR
instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181463
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 8 May 2013 19:38:04 +0000 (19:38 +0000)]
[mips] Add instruction selection pattern for (seteq $LHS, 0).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181459
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Wed, 8 May 2013 17:51:44 +0000 (17:51 +0000)]
[PowerPC] Add ELF relocation tests
This patch extends test/MC/PowerPC/ppc64-fixups.s to not only check for
the correct fixup type in the --show-encoding output, but also runs the
generated object file through llvm-readobj -r and verifies that the
correct ELF relocation records were generated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181453
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Wed, 8 May 2013 17:51:39 +0000 (17:51 +0000)]
Remove unused isLegalAddressImmediate() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181452
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Wed, 8 May 2013 17:50:57 +0000 (17:50 +0000)]
[PowerPC] Add some missing PPC64 relocs
All R_PPC_... relocs should also be present (using the same number)
under the corresponding R_PPC64_... name. The latter were missing
for a couple of cases, which this patch adds.
This is not a big problem when emitting the reloc, because we can
just use the R_PPC_... define instead. But it is a problem when
*dumping* relocations e.g. using llvm-readobj, because this will
expect only R_PPC64_... values when inspecting a ppc64 ELF file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181451
91177308-0d34-0410-b5e6-
96231b3b80d8
Ulrich Weigand [Wed, 8 May 2013 17:50:07 +0000 (17:50 +0000)]
[PowerPC] Fix regression in generating @ha/@l relocs
The patch I committed as revision 167864 introduced a regression that
causes LLVM to no longer generate appropriate relocs for @ha/@l symbol
references (but fail an assertion instead).
This is fixed here by re-enabling support for the VK_PPC_GAS_HA16/
VK_PPC_GAS_LO16 variant kinds (and their Darwin variants) in
PPCELFObjectWriter.cpp.
Tested by running projects/test-suite in -m32 mode with the integrated
assembler forced on. A standalone test case will be committed shortly
as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181450
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Schmidt [Wed, 8 May 2013 17:22:33 +0000 (17:22 +0000)]
Fix handling of anonymous aggregate parameters for powerpc*-apple-darwin8.
This fixes bug 15821 similarly to the powerpc64-linux fix for bug 14779.
Patch by David Fang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181449
91177308-0d34-0410-b5e6-
96231b3b80d8
Stepan Dyatkovskiy [Wed, 8 May 2013 14:51:27 +0000 (14:51 +0000)]
For r181148: fixed warning 'enumeral and non-enumeral type in conditional expression'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181437
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 8 May 2013 14:41:29 +0000 (14:41 +0000)]
Add myself as SystemZ code owner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181434
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Wed, 8 May 2013 14:23:43 +0000 (14:23 +0000)]
Add SystemZ feats to CodeGenerator.rst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181431
91177308-0d34-0410-b5e6-
96231b3b80d8
Michel Danzer [Wed, 8 May 2013 13:07:29 +0000 (13:07 +0000)]
R600/SI: Add lit tests for llvm.SI.imageload and llvm.SI.resinfo intrinsics
Adapted from the llvm.SI.sample test.
Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181425
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Wed, 8 May 2013 12:16:14 +0000 (12:16 +0000)]
PPCInstrInfo::optimizeCompareInstr should not optimize FP compares
The floating-point record forms on PPC don't set the condition register bits
based on a comparison with zero (like the integer record forms do), but rather
based on the exception status bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181423
91177308-0d34-0410-b5e6-
96231b3b80d8
Mihai Popa [Wed, 8 May 2013 09:41:12 +0000 (09:41 +0000)]
This patch fixes two tests marked as XFAIL among the ARM assembler tests.
The reference encoding is correct, but written in the wrong byte order (these are Thumb tests, while the reference is in ARM byte order).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181420
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 8 May 2013 09:31:10 +0000 (09:31 +0000)]
Add libcxx and clang-tools-extra to the testing thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181418
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 8 May 2013 09:23:53 +0000 (09:23 +0000)]
Add clang-tools-extra to the list of things to tag for the release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181402
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 8 May 2013 09:00:10 +0000 (09:00 +0000)]
Fix a bug in codegenprep where it was losing track of values OptimizeMemoryInst
by switching to a ValueMap. Patch by Andrea DiBiagio!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181397
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Wed, 8 May 2013 06:44:42 +0000 (06:44 +0000)]
DAGCombiner: Simplify inverted bit tests
Fold (xor (and x, y), y) -> (and (not x), y)
This removes an opportunity for a constant to appear twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181395
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Wed, 8 May 2013 06:01:41 +0000 (06:01 +0000)]
Debug Info: Support DW_TAG_imported_declaration
This provides basic functionality for imported declarations. For
subprograms and types some amount of lazy construction is supported (so
the definition of a function can proceed the using declaration), but it
still doesn't handle declared-but-not-defined functions (since we don't
generally emit function declarations).
Variable support is really rudimentary at the moment - simply looking up
the existing definition with no support for out of order (declaration,
imported_module, then definition).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181392
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Wed, 8 May 2013 06:01:38 +0000 (06:01 +0000)]
Finish renaming constructImportedModuleDIE to constructImportedEntityDIE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181391
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 May 2013 00:58:51 +0000 (00:58 +0000)]
Pass the MDNode in and do the insertion at compile unit creation time
instead of relying upon an extra call to finish initializing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181383
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 8 May 2013 00:11:10 +0000 (00:11 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181378
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 May 2013 22:15:06 +0000 (22:15 +0000)]
Add the libc++ project to those we tag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181371
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Tue, 7 May 2013 21:55:37 +0000 (21:55 +0000)]
LoopVectorizer: Improve reduction variable identification
The two nested loops were confusing and also conservative in identifying
reduction variables. This patch replaces them by a worklist based approach.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181369
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 7 May 2013 21:40:58 +0000 (21:40 +0000)]
Fix a bug in the MC asm parser evaluating expressions. It was treating:
A = 9
B = 3 * A - 2 * A + 1 as B = 3 * A - (2 * A + 1)
rdar://
13816516
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181366
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 7 May 2013 21:35:53 +0000 (21:35 +0000)]
Rename DIImportedModule to DIImportedEntity and allow imported declarations
DIBuilder::createImportedDeclaration isn't fully plumbed through (note,
lacking in AsmPrinter/DwarfDebug support) but this seemed like a
sufficiently useful division of code to make the subsequent patch(es)
easier to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181364
91177308-0d34-0410-b5e6-
96231b3b80d8
Charles Davis [Tue, 7 May 2013 21:14:15 +0000 (21:14 +0000)]
MCStreamer: Also clear vector of W64UnwindInfos on reset().
Patch by Kai Nacke!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181363
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 7 May 2013 20:56:33 +0000 (20:56 +0000)]
Remove redundant check and use cached FrameArray values.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181355
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 20:53:59 +0000 (20:53 +0000)]
Remove exception handling support from the old JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181354
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 20:44:22 +0000 (20:44 +0000)]
Change version to 3.4 in the cmake build too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181353
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 7 May 2013 20:31:28 +0000 (20:31 +0000)]
We're in 3.4 land now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181350
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 20:26:16 +0000 (20:26 +0000)]
Add empty release notes for 3.4.
The idea is that docs/ReleaseNotes.rst is 3.3 and will be copied to the
branch by the release manager just before creating the release
candidates.
This ReleaseNotes_34.rst will then be moved over ReleaseNotes.rst after
the 3.3 release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181349
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 7 May 2013 20:24:18 +0000 (20:24 +0000)]
Fix vselect when getSetCCResultType returns a different type from the operands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181348
91177308-0d34-0410-b5e6-
96231b3b80d8
Preston Gurd [Tue, 7 May 2013 19:57:34 +0000 (19:57 +0000)]
Corrected Atom latencies for SSE SQRT instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181346
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 19:53:00 +0000 (19:53 +0000)]
Hexagon: Fix Small Data support to handle -G 0 correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181344
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 7 May 2013 17:57:13 +0000 (17:57 +0000)]
Debug Info: Fix for break due to r181271
Apparently we didn't keep an association of Compile Unit metadata nodes
to DIEs so looking up that parental context failed & thus caused no
DW_TAG_imported_modules to be emitted at the CU scope. Fix this by
adding the mapping & sure up the test case to verify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181339
91177308-0d34-0410-b5e6-
96231b3b80d8
Hal Finkel [Tue, 7 May 2013 17:49:55 +0000 (17:49 +0000)]
Cleanup PPCInstrInfo::optimizeCompareInstr
Implement suggestions by Bill Schmidt in post-commit review. No functionality
change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181338
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 7 May 2013 17:34:35 +0000 (17:34 +0000)]
Add two points to release notes about recent command line library changes.
Patch by Dan Liew!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181335
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 17:12:35 +0000 (17:12 +0000)]
Reverting r181331.
Missing file, HexagonSplitConst32AndConst64.cpp, from lib/Target/Hexagon/CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181334
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 16:42:15 +0000 (16:42 +0000)]
Hexagon: Fix Small Data support to handle -G 0 correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181331
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 7 May 2013 15:52:32 +0000 (15:52 +0000)]
Mention SystemZ in the release notes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181328
91177308-0d34-0410-b5e6-
96231b3b80d8
Jyotsna Verma [Tue, 7 May 2013 15:06:29 +0000 (15:06 +0000)]
Hexagon: Set accessSize and addrMode on all load/store instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181324
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Kuperstein [Tue, 7 May 2013 14:05:33 +0000 (14:05 +0000)]
Re-enable AVX detection on x64 platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181313
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 7 May 2013 12:56:31 +0000 (12:56 +0000)]
[SystemZ] Fix InitMCCodeGenInfo call
createSystemZMCCodeGenInfo was not passing the optimization level to
InitMCCodeGenInfo(), so -O0 would be ignored. Fixes DebugInfo/namespace.ll
after the changes in r181271.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181312
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 7 May 2013 12:29:17 +0000 (12:29 +0000)]
Note that EH is now supported in MCJIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181305
91177308-0d34-0410-b5e6-
96231b3b80d8
Timur Iskhodzhanov [Tue, 7 May 2013 07:47:47 +0000 (07:47 +0000)]
Fix the VS2010 build broken by r181271
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181296
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Tue, 7 May 2013 06:17:14 +0000 (06:17 +0000)]
Correct logical shift documentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181290
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Tue, 7 May 2013 04:37:05 +0000 (04:37 +0000)]
LoopVectorize: getConsecutiveVector must respect signed arithmetic
We were passing an i32 to ConstantInt::get where an i64 was needed and we must
also pass the sign if we pass negatives numbers. The start index passed to
getConsecutiveVector must also be signed.
Should fix PR15882.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181286
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 6 May 2013 23:33:07 +0000 (23:33 +0000)]
DebugInfo: Support imported modules in lexical blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181271
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:19 +0000 (23:02 +0000)]
R600/SI: Add intrinsic for MIMG IMAGE_GET_RESINFO opcode
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181269
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:15 +0000 (23:02 +0000)]
R600/SI: Handle arbitrary destination type in SITargetLowering::adjustWritemask
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181268
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:12 +0000 (23:02 +0000)]
R600/SI: Add intrinsic for texture image loading
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181267
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:07 +0000 (23:02 +0000)]
R600/SI: Add pattern for uint_to_fp
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181266
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:04 +0000 (23:02 +0000)]
R600/SI: Add patterns for integer maxima / minima
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181265
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Mon, 6 May 2013 23:02:00 +0000 (23:02 +0000)]
R600/SI: Add pattern for AMDGPU.trunc intrinsic
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181263
91177308-0d34-0410-b5e6-
96231b3b80d8
Krzysztof Parzyszek [Mon, 6 May 2013 21:58:00 +0000 (21:58 +0000)]
Print IR from Hexagon MI passes with -print-before/after-all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181255
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 May 2013 21:56:35 +0000 (21:56 +0000)]
Implemented public interface for modifying registered (not positional or sink options) command line options at runtime.
Patch by Dan Liew!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181254
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 6 May 2013 21:56:23 +0000 (21:56 +0000)]
Support command line option categories.
Patch by Dan Liew!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181253
91177308-0d34-0410-b5e6-
96231b3b80d8
Krzysztof Parzyszek [Mon, 6 May 2013 21:25:45 +0000 (21:25 +0000)]
Cleanup of the HexagonTargetMachine setup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181250
91177308-0d34-0410-b5e6-
96231b3b80d8