OSDN Git Service
Chris Lattner [Thu, 26 Jan 2012 00:42:34 +0000 (00:42 +0000)]
some general cleanup, using new methods and tidying up old code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149006
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Jan 2012 00:41:50 +0000 (00:41 +0000)]
fix pasto in the new (and still unused) ShuffleVectorInst::getShuffleMask method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149005
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Jan 2012 00:06:44 +0000 (00:06 +0000)]
add StructType helpers too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149000
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 26 Jan 2012 00:01:10 +0000 (00:01 +0000)]
Ok, break down and add some cast<>'ing helper methods to the Type class
to reduce the number of cast<>'s we have. This allows someone to use
things like Ty->getVectorNumElements() instead of
cast<VectorType>(Ty)->getNumElements() when you know that a type is a
vector.
It would be a great general cleanup to move the codebase to use these,
I will do so in the code I'm touching.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148999
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 23:49:49 +0000 (23:49 +0000)]
add some helper methods to ShuffleVectorInst and enhance its
"isValidOperands" and "getMaskValue" methods to allow
ConstantDataSequential.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148998
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 25 Jan 2012 23:36:27 +0000 (23:36 +0000)]
Improve sub-register def handling in ProcessImplicitDefs.
This boils down to using MachineOperand::readsReg() more.
This fixes PR11829 where a use ended up after the first def when
lowering REG_SEQUENCE instructions involving IMPLICIT_DEFs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148996
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 25 Jan 2012 22:24:19 +0000 (22:24 +0000)]
Properly emit ctors / dtors with priorities into desired sections
and let linker handle the rest.
This finally fixes PR5329
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148990
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 25 Jan 2012 22:11:06 +0000 (22:11 +0000)]
Don't add live ranges for aliases of physregs that are live in to the
function. They don't appear to be used, and are inconsistent with handling of
other physreg intervals (i.e. intervals that are not live-in) where ranges are
not inserted for aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148986
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 25 Jan 2012 22:00:23 +0000 (22:00 +0000)]
Tidy up. s/Low Level Virtual Machine/LLVM/.
LLVM isn't an acronym anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148985
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 25 Jan 2012 21:53:23 +0000 (21:53 +0000)]
Always break upon finding a vreg operand (in Release as well as +Asserts). Remove assertion which can no longer trigger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148984
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 25 Jan 2012 19:52:01 +0000 (19:52 +0000)]
ARM assemly parsing and validation of IT instruction.
"Although a Thumb2 instruction, the IT mnemonic shall be permitted in
ARM mode, and the condition verified to match the condition code(s)
on the following instruction(s)."
PR11853
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148969
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 25 Jan 2012 18:54:13 +0000 (18:54 +0000)]
Use precomputed BB size instead of BB->size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148964
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 09:56:22 +0000 (09:56 +0000)]
fix a bug I introduced in r148929, this is not a splat!
Thanks to Eli for noticing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148947
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 25 Jan 2012 09:43:14 +0000 (09:43 +0000)]
Gracefully degrade precision in branch probability numbers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148946
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 25 Jan 2012 08:27:40 +0000 (08:27 +0000)]
Support pointer comparisons against constants, when looking at the inline-cost
savings from a pointer argument becoming an alloca. Sometimes callees will even
compare a pointer to null and then branch to an otherwise unreachable block!
Detect these cases and compute the number of saved instructions, instead of
bailing out and reporting no savings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148941
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 25 Jan 2012 07:40:15 +0000 (07:40 +0000)]
Revert a tiny bit of r148553 which extended LLVM's function attributes
to 64-bits, and added a new attribute in bit #32. Specifically, remove
this new attribute from the enum used in the C API. It's not yet clear
what the best approach is for exposing these new attributes in the
C API, and several different proposals are on the table. Until then, we
can simply not expose this bit in the API at all.
Also, I've reverted a somewhat unrelated change in the same revision
which switched from "1 << 31" to "1U << 31" for the top enum. While "1
<< 31" is technically undefined behavior, implementations DTRT here.
However, MS and -pedantic mode warn about non-'int' type enumerator
values. If folks feel strongly about this I can put the 'U' back in, but
it seemed best to wait for the proper solution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148937
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 25 Jan 2012 07:38:48 +0000 (07:38 +0000)]
Update hasProperty comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148936
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 06:48:06 +0000 (06:48 +0000)]
use Constant::getAggregateElement to simplify a bunch of code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148934
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 25 Jan 2012 06:43:11 +0000 (06:43 +0000)]
Custom lower PSIGN and PSHUFB intrinsics to their corresponding target specific nodes so we can remove the isel patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148933
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 06:16:32 +0000 (06:16 +0000)]
constify some methods and add a new Constant::getAggregateElement
helper method for the common operation of extracting an element
out of a constant aggregate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148931
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 06:02:56 +0000 (06:02 +0000)]
use ConstantVector::getSplat in a few places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148929
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 25 Jan 2012 05:37:32 +0000 (05:37 +0000)]
Custom lower phadd and phsub intrinsics to target specific nodes. Remove the patterns that are no longer necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148927
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 05:19:54 +0000 (05:19 +0000)]
reapply r148901 with a crucial fix.
"Introduce a new ConstantVector::getSplat constructor function to
simplify a really common case."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148924
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 25 Jan 2012 04:42:03 +0000 (04:42 +0000)]
Remove AVX 256-bit unaligned load intrinsics. 128-bit versions had been removed a while ago.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148922
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Jan 2012 04:19:22 +0000 (04:19 +0000)]
Mark 64-bit register RA_64 unused too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148918
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Jan 2012 04:12:04 +0000 (04:12 +0000)]
Modify MipsFrameLowering::emitPrologue and emitEpilogue.
- Use MipsAnalyzeImmediate to expand immediates that do not fit in 16-bit.
- Change the types of variables so that they are sufficiently large to handle
64-bit pointers.
- Emit instructions to set register $28 in a function prologue after
instructions which store callee-saved registers have been emitted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148917
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Jan 2012 03:55:10 +0000 (03:55 +0000)]
Modify MipsRegisterInfo::eliminateFrameIndex to use MipsAnalyzeImmediate to
expand offsets that do not fit in the 16-bit immediate field of load and store
instructions. Also change the types of variables so that they are sufficiently
large to handle 64-bit pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148916
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 25 Jan 2012 03:52:09 +0000 (03:52 +0000)]
Merge intrinsic pattern and no pattern versions of VCVTSD2SI intruction definitions. Matches non-AVX version of same instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148914
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 25 Jan 2012 03:39:26 +0000 (03:39 +0000)]
-fvisibility-inlines-hidden is a c++ only option.
Thanks to Peter Collingbourne for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148913
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 25 Jan 2012 03:34:41 +0000 (03:34 +0000)]
MipsAnalyzeImmediate.h: Fix to add DataTypes.h for msvc.
inttypes.h is not supplied in msvc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148912
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 25 Jan 2012 03:20:12 +0000 (03:20 +0000)]
Fix assert("msg"). Fix unused-variable warnings complaining about VT used only
in asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148910
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 25 Jan 2012 03:15:46 +0000 (03:15 +0000)]
Target/Mips: Unbreak CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148909
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Jan 2012 03:01:35 +0000 (03:01 +0000)]
Lower 64-bit immediates using MipsAnalyzeImmediate that has just been added.
Add a test case to show fewer instructions are needed to load an immediate
with the new way of loading immediates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148908
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Wed, 25 Jan 2012 02:42:41 +0000 (02:42 +0000)]
Revert r148901 because it crashes llvm tests.
Original log:
Introduce a new ConstantVector::getSplat constructor function to
simplify a really common case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148906
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 01:53:58 +0000 (01:53 +0000)]
Introduce a new ConstantVector::getSplat constructor function to
simplify a really common case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148901
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 25 Jan 2012 01:43:36 +0000 (01:43 +0000)]
Add class MipsAnalyzeImmediate which comes up with an instruction sequence to
load an immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148900
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 01:32:59 +0000 (01:32 +0000)]
Remove the Type::getNumElements() method, which is only called in 4 places,
did something extremely surprising, and shadowed actually useful
implementations that had completely different behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148898
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 25 Jan 2012 01:27:20 +0000 (01:27 +0000)]
Use the right method to get the # elements in a CDS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148897
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 25 Jan 2012 00:01:08 +0000 (00:01 +0000)]
NEON VLD4(all lanes) assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148884
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 23:47:07 +0000 (23:47 +0000)]
Tidy up. Rename VLD4DUP patterns for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148883
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 23:47:04 +0000 (23:47 +0000)]
NEON VLD3(all lanes) assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148882
91177308-0d34-0410-b5e6-
96231b3b80d8
Talin [Tue, 24 Jan 2012 23:43:59 +0000 (23:43 +0000)]
Additional methods for SmallString.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148881
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 24 Jan 2012 23:28:42 +0000 (23:28 +0000)]
Set correct <def,undef> flags when lowering REG_SEQUENCE.
A REG_SEQUENCE instruction is lowered into a sequence of partial defs:
%vreg7:ssub_0<def,undef> = COPY %vreg20:ssub_0
%vreg7:ssub_1<def> = COPY %vreg2
%vreg7:ssub_2<def> = COPY %vreg2
%vreg7:ssub_3<def> = COPY %vreg2
The first def needs an <undef> flag to indicate it is the beginning of
the live range, while the other defs are read-modify-write. Previously,
we depended on LiveIntervalAnalysis to notice and fix the missing
<def,undef>, but that solution was never robust, it was causing problems
with ProcessImplicitDefs and the lowering of chained REG_SEQUENCE
instructions.
This fixes PR11841.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148879
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 24 Jan 2012 23:28:38 +0000 (23:28 +0000)]
Use the standard MachineFunction::print() after SlotIndexes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148878
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 24 Jan 2012 23:18:43 +0000 (23:18 +0000)]
Sign-extend 32-bit integer arguments when they are passed in 64-bit registers,
which is what N32/64 does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148875
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 24 Jan 2012 22:07:36 +0000 (22:07 +0000)]
Pass CCState by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148871
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 24 Jan 2012 22:05:25 +0000 (22:05 +0000)]
Pattern for f32 to i64 conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148869
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 21:45:25 +0000 (21:45 +0000)]
ARM Darwin symbol ref differences w/o subsection-via-symbols.
When not using subsections via symbols, the assembler can resolve
symbol differences (including pcrel references) to non-local
labels at assembly time, not just those in the same atom.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148865
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 24 Jan 2012 21:43:36 +0000 (21:43 +0000)]
Intel Syntax: Extend special hand coded logic, to recognize special instructions, for intel syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148864
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 24 Jan 2012 21:41:09 +0000 (21:41 +0000)]
64-bit sign extension in register instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148862
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 21:06:59 +0000 (21:06 +0000)]
Tidy up. Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148856
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Tue, 24 Jan 2012 19:43:30 +0000 (19:43 +0000)]
Sink assert-only variables into the asserts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148849
91177308-0d34-0410-b5e6-
96231b3b80d8
Kostya Serebryany [Tue, 24 Jan 2012 19:34:43 +0000 (19:34 +0000)]
[asan] enable asan only for the functions that have Attribute::AddressSafety
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148846
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 18:53:13 +0000 (18:53 +0000)]
NEON VST4(one lane) assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148836
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 24 Jan 2012 18:37:29 +0000 (18:37 +0000)]
Widen the instruction encoder that TblGen emits to a 64 bits, which should accomodate every target I can think of offhand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148833
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 18:37:25 +0000 (18:37 +0000)]
NEON VLD4(one lane) assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148832
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 24 Jan 2012 18:09:18 +0000 (18:09 +0000)]
Fix old doxygen comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148825
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 24 Jan 2012 18:06:05 +0000 (18:06 +0000)]
Add an (interleave A, B, ...) SetTheory operator.
This will interleave the elements from two or more lists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148824
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 24 Jan 2012 18:00:44 +0000 (18:00 +0000)]
Undo an over zealous rename. This bit of the CMake build really is
dealing in the host triple, be honest about it and document the decision
to default the target triple to the host triple unless overridden.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148822
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 17:55:36 +0000 (17:55 +0000)]
NEON Two-operand assembly aliases for VSRA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148821
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 17:55:32 +0000 (17:55 +0000)]
Remove redundant test file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148820
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 17:49:15 +0000 (17:49 +0000)]
NEON Two-operand assembly aliases for VSLI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148819
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 17:46:58 +0000 (17:46 +0000)]
NEON Two-operand assembly aliases for VSRI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148818
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 17:46:54 +0000 (17:46 +0000)]
Tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148817
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 17:23:29 +0000 (17:23 +0000)]
NEON add correct predicates for some asm aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148815
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Tue, 24 Jan 2012 16:18:30 +0000 (16:18 +0000)]
Reword comment based on feedback by Duncan Sands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148809
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 14:31:22 +0000 (14:31 +0000)]
basic instcombine support for CDS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148806
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 14:17:05 +0000 (14:17 +0000)]
C++, CBE, and TLOF support for ConstantDataSequential
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148805
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 14:04:40 +0000 (14:04 +0000)]
Rearrange argument order of ::get methods so that LLVMContext comes first,
add a ConstantDataArray::getString method that corresponds to the (to be
removed) StringRef version of ConstantArray::get, but is dramatically more
efficient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148804
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Tue, 24 Jan 2012 13:54:13 +0000 (13:54 +0000)]
ZERO_EXTEND operation is optimized for AVX.
v8i16 -> v8i32, v4i32 -> v4i64 - used vpunpck* instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148803
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 13:41:11 +0000 (13:41 +0000)]
add more support for ConstantDataSequential
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148802
91177308-0d34-0410-b5e6-
96231b3b80d8
Evgeniy Stepanov [Tue, 24 Jan 2012 13:05:33 +0000 (13:05 +0000)]
An option to selectively enable part of ARM EHABI support.
This change adds an new option --arm-enable-ehabi-descriptors that
enables emitting unwinding descriptors. This provides a mode with a
working backtrace() without the (currently broken) exception support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148800
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 24 Jan 2012 12:08:28 +0000 (12:08 +0000)]
Bit pack DIE structures better.
16 bits are sufficient to store attributes, tags and forms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148799
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 24 Jan 2012 10:11:49 +0000 (10:11 +0000)]
Fix the testcases for the previous patch.
rdar://
10278198
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148795
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 24 Jan 2012 09:43:28 +0000 (09:43 +0000)]
Remove generation of DW_AT_sibling. Nothing as far as I can tell uses it.
Saves about 1.5% on debug info size.
rdar://
10278198
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148794
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 09:31:43 +0000 (09:31 +0000)]
Add AsmPrinter (aka MCLowering) support for ConstantDataSequential,
and clean up some other misc stuff. Unlike ConstantArray, we will
prefer to emit .fill directives for "String" arrays that all have
the same value, since they are denser than emitting a .ascii
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148793
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 09:01:07 +0000 (09:01 +0000)]
Add various "string" methods to ConstantDataSequential, which have the
same semantics as ConstantArray's but much more efficient because they
don't have to return std::string's. The ConstantArray methods will
eventually be removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148792
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 08:58:57 +0000 (08:58 +0000)]
add ::drop_back() and ::drop_front() methods, which are like pop_front/pop_back on a vector, but a) aren't destructive to "this", and b) can take a # elements to drop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148791
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 07:54:10 +0000 (07:54 +0000)]
teach valuetracking about ConstantDataSequential
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148790
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 05:49:24 +0000 (05:49 +0000)]
switch SCEV to use the new ConstantFoldLoadThroughGEPIndices function
instead of its own hard coded thing, allowing it to handle
ConstantDataSequential and fixing some obscure bugs (e.g. it would
previously crash on a CAZ of vector type).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148788
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 05:43:50 +0000 (05:43 +0000)]
Split the interesting bits of ConstantFoldLoadThroughGEPConstantExpr
out into a new ConstantFoldLoadThroughGEPIndices (more useful) function
and rewrite it to be simpler, more efficient, and to handle the new
ConstantDataSequential type.
Enhance ConstantFoldLoadFromConstPtr to handle ConstantDataSequential.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148786
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 05:42:11 +0000 (05:42 +0000)]
Add some accessor methods to CAZ and UndefValue that help simplify clients.
Make some CDS methods public.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148785
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 24 Jan 2012 04:58:56 +0000 (04:58 +0000)]
Use correct register class for am2offset register operands.
This pacifies machine verifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148782
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 24 Jan 2012 04:44:01 +0000 (04:44 +0000)]
Preserve <def,undef> flags in CoalesceExtSubRegs.
This won't have an effect until EliminateRegSequences() starts setting
the undef flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148779
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 24 Jan 2012 04:43:41 +0000 (04:43 +0000)]
implement the ConstantDataSequential accessor methods.
No need for 'getOperand' :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148778
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 24 Jan 2012 03:03:17 +0000 (03:03 +0000)]
Add comments near load pattern fragments indicating that all integer vector loads are promoted to v2i64 or v4i64 so that no one tries to reintroduce pattern fragments for other types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148771
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 00:58:13 +0000 (00:58 +0000)]
NEON VST4(multiple 4 element structures) assembly parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148764
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 00:43:17 +0000 (00:43 +0000)]
NEON VLD4(multiple 4 element structures) assembly parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148762
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 00:43:12 +0000 (00:43 +0000)]
Tidy up. Remove some vertical space for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148761
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 24 Jan 2012 00:30:17 +0000 (00:30 +0000)]
Revert r148686 (and r148694, a fix to it) due to a serious layering
violation -- MC cannot depend on CodeGen.
Specifically, the MCTargetDesc component of each target is actually
a subcomponent of the MC library. As such, it cannot depend on the
target-independent code generator, because MC itself cannot depend on
the target-independent code generator. This change moved a flag from the
ARM MCTargetDesc file ARMMCAsmInfo.cpp to the CodeGen layer in
ARMException.cpp, leaving behind an 'extern' to refer back to it. That
layering order isn't viable givin the constraints outlined above.
Commandline flags are designed to be static specifically to avoid these
types of bugs.
Fixing this is likely going to require some non-trivial refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148759
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 00:12:39 +0000 (00:12 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148757
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 24 Jan 2012 00:07:41 +0000 (00:07 +0000)]
NEON VST3(single element from one lane) assembly parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148755
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 23 Jan 2012 23:56:33 +0000 (23:56 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148751
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Jan 2012 23:45:44 +0000 (23:45 +0000)]
NEON VST3(multiple 3-element structures) assembly parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148748
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 23 Jan 2012 23:27:47 +0000 (23:27 +0000)]
Changing bitfield enums to unsigned ints.
This was suggested by Chandler Carruth on the basis of past experience with
esoteric compilers/quirks relating to signed enums.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148746
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 23 Jan 2012 23:20:46 +0000 (23:20 +0000)]
NEON VLD3(multiple 3-element structures) assembly parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148745
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 23 Jan 2012 22:57:52 +0000 (22:57 +0000)]
Add missed mayStore flag to STREXD / t2STREXD
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148742
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 23 Jan 2012 22:57:10 +0000 (22:57 +0000)]
start the implementation of a new ConstantDataVector and ConstantDataArray
classes, per PR1324. Not all of their helper functions are implemented,
nothing creates them, and the rest of the compiler doesn't handle them yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148741
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 23 Jan 2012 22:55:02 +0000 (22:55 +0000)]
Remove extraneous ';'s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148740
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 23 Jan 2012 22:37:11 +0000 (22:37 +0000)]
Remove dead default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148738
91177308-0d34-0410-b5e6-
96231b3b80d8