Evan Cheng [Wed, 22 Jul 2009 00:58:27 +0000 (00:58 +0000)]
Add an entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76711
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 22 Jul 2009 00:47:11 +0000 (00:47 +0000)]
inline the two MergeableConstSection implementations into their
only caller.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76710
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 22 Jul 2009 00:41:56 +0000 (00:41 +0000)]
set the ELF "small" flag on objects that end up in .rodata.cst4 consistently,
updating a mips testcase to expect it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76707
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 22 Jul 2009 00:30:39 +0000 (00:30 +0000)]
don't set the small flag yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76706
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 22 Jul 2009 00:28:43 +0000 (00:28 +0000)]
remove the SelectSectionForMachineConst hook, replacing it with
a new getSectionForMergableConstant hook. This removes one dependence
of TAI on Type, and provides the hook with enough info to make the
right decision based on whether the global has relocations etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76705
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 22 Jul 2009 00:25:27 +0000 (00:25 +0000)]
Let each target determines whether a machine instruction is dead. If true, that allows late codeine passes to delete it.
This is considered a workaround. The problem is some targets are not modeling side effects correctly. PPC is apparently one of those. This patch allows ppc llvm-gcc to bootstrap on Darwin. Once we find out which instruction definitions are wrong, we can remove the PPCInstrInfo workaround.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76703
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 22 Jul 2009 00:24:57 +0000 (00:24 +0000)]
Get rid of the Pass+Context magic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76702
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 22 Jul 2009 00:05:44 +0000 (00:05 +0000)]
reimplement Constant::ContainsRelocations as
Constant::getRelocationInfo(), which has a much simpler
to use API. It still should not be part of libvmcore, but
is better than it was. Also teach it to be smart about
hidden visibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76700
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 22 Jul 2009 00:04:19 +0000 (00:04 +0000)]
Misc. doc fixes following suggestions from Eli.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76699
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 23:56:01 +0000 (23:56 +0000)]
Fixing cp island pass. Step 1: Determine whether the constant pool offset can be
negative on an individual bases rather than basing on whether it's in thumb
mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76698
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 23:54:22 +0000 (23:54 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76693
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:49:55 +0000 (23:49 +0000)]
simplify code now that it is inlined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76689
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Tue, 21 Jul 2009 23:47:33 +0000 (23:47 +0000)]
Exposed PHIElimination pass within CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76688
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:47:11 +0000 (23:47 +0000)]
Now that RelocBehaviour() is never overloaded, it doesn't need to be
virtual. Just inline it into its two current call sites in preparation
for simplifying the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76686
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 21 Jul 2009 23:43:14 +0000 (23:43 +0000)]
Add intrinsic for __builtin_ia32_vec_set_v4si which turns out to be
pinsrd in sse4.1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76684
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:42:24 +0000 (23:42 +0000)]
this doesn't break any of the 4 ia64 tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76683
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:41:35 +0000 (23:41 +0000)]
alpha doesn't need to redefine this: it only supports PIC codegen anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76682
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 21 Jul 2009 23:36:14 +0000 (23:36 +0000)]
Add some support for iterative coalescers to calculate a joined live
range's weight properly. This is turned off right now in the sense that
you'll get an assert if you get into a situation that can only be caused
by an iterative coalescer. All other code paths operate exactly as
before so there is no functional change with this patch. The asserts
should be disabled if/when an iterative coalescer gets added to trunk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76680
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:36:01 +0000 (23:36 +0000)]
no really, I can spell!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76679
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:34:23 +0000 (23:34 +0000)]
add an API so target-independent codegen can determine if a constant
pool entry will require relocations against it. I implemented this
conservatively for ARM, someone who is knowledgable about it should
see if this can be improved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76678
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 23:21:54 +0000 (23:21 +0000)]
Convert instcombine from using using getAnalysis<TargetData> to
getAnalysisIfAvailable<TargetData>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76676
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 23:19:40 +0000 (23:19 +0000)]
Permit the IntPtrTy argument to isEliminableCastPair to be null,
to help support use when TargetData is not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76675
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 23:17:26 +0000 (23:17 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76674
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 21 Jul 2009 23:13:26 +0000 (23:13 +0000)]
Change ELFCodeEmitter logic to emit the constant pool and jump tables to
their appropriate sections before the code itself. They need to be emitted
before the function because on some targets (x86 but not x86_64) the later
may reference a JT or CP entry address
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76672
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 23:03:19 +0000 (23:03 +0000)]
Replace the original ad-hoc code for determining whether (v pred w) implies
(x pred y) with more thorough code that does more complete canonicalization
before resorting to range checks. This helps it find more cases where
the canonicalized expressions match.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76671
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 22:52:04 +0000 (22:52 +0000)]
Remove a big test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76669
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:47:03 +0000 (22:47 +0000)]
Various doc updates from Edward O'Callaghan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76668
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:42:37 +0000 (22:42 +0000)]
remove the last bits of SectionFlagsForGlobal. There is some flag here that
depends on XS1A, but I think the ReadOnlySection is already set up for this
and there is no testcase that this breaks. If this is really needed, we can
add the appropriate parameterization to TargetAsmInfo in the future to support
this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76667
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:39:28 +0000 (22:39 +0000)]
don't mask out the small flag and then reapply it later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76666
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:37:38 +0000 (22:37 +0000)]
if Xcore doesn't support TLS, it doesn't have to worry about thread local LLVM IR, it should be rejected by a front-end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76665
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:36:53 +0000 (22:36 +0000)]
remove the Xcore implementation of SelectSectionForGlobal. While you have
to twist your brain to see it, I believe it is the same as ELFTargetAsmInfo::SelectSectionForGlobal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76664
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:32:55 +0000 (22:32 +0000)]
simplify based on the fact that darwin always uses L/l.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76662
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:30:39 +0000 (22:30 +0000)]
make some stuff private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76661
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:30:25 +0000 (22:30 +0000)]
improve comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76660
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 22:25:52 +0000 (22:25 +0000)]
Remove the XCore custom implementation of MergeableConstSection, relying on
the generic ELF version instead. This will result in its mergable constant
sections getting named ".rodata.cst4" instead of ".cp.const4", but the
linker looks at the section flags, not the name of the section AFAICT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76659
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 21 Jul 2009 21:56:46 +0000 (21:56 +0000)]
Fix ocaml tests for 64-bit MacOS systems. LLVM is currently built
as 32-bit code by default, and if gcc defaults to 64-bit code then ocamlc
requires a -cc "gcc -arch i386" option. We were hardcoding -cc g++
and throwing away any other compiler options that were determined when
ocamlc was configured and built.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76658
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 21 Jul 2009 21:52:57 +0000 (21:52 +0000)]
Reorder the "Metadata" entry to match the C bindings.
This fixes a regression in the vmcore.ml dejagnu test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76657
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 21:33:58 +0000 (21:33 +0000)]
Add missing include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76655
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 21:29:08 +0000 (21:29 +0000)]
inline a trivial method into its only call site and fix indentation of cases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76654
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 21:26:32 +0000 (21:26 +0000)]
Remove some overridden functions in XCoreTargetAsmInfo that are
implemented exactly the same way as its ELFTargetAsmInfo subclass
has them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76653
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 21:12:58 +0000 (21:12 +0000)]
revert r76602, 76603, and r76615, pending design discussions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76646
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 21:09:35 +0000 (21:09 +0000)]
minor cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76645
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 21 Jul 2009 20:55:28 +0000 (20:55 +0000)]
Privatize the ConstantArray table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76639
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Tue, 21 Jul 2009 20:27:10 +0000 (20:27 +0000)]
Add a few fairly obvious API changes I noticed while porting some old code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76636
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 21 Jul 2009 20:15:24 +0000 (20:15 +0000)]
Missed a piece of the commit to remove the shift flavor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76635
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 21 Jul 2009 20:13:12 +0000 (20:13 +0000)]
Privatize the first of the value maps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76634
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 21 Jul 2009 20:12:16 +0000 (20:12 +0000)]
Remove shift amount flavor. It isn't actually complete enough to
be useful, and it's currently unused. (Some issues: it isn't actually
rich enough to capture the semantics on many architectures, and
semantics can vary depending on the type being shifted.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76633
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 21 Jul 2009 20:05:43 +0000 (20:05 +0000)]
Remove a couple of already-implemented notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76631
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 19:25:09 +0000 (19:25 +0000)]
80 col violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76629
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 21 Jul 2009 18:56:32 +0000 (18:56 +0000)]
Prefix IR dumps with LiveInterval indices when possible. This turns
this:
%ESI<def> = MOV32rr %EDI<kill>
ADJCALLSTACKDOWN64 0, %RSP<imp-def>, %EFLAGS<imp-def,dead>, %RSP<imp-use>
%reg1027<def> = MOVZX64rr32 %ESI
%reg1027<def> = ADD64ri8 %reg1027, 15, %EFLAGS<imp-def,dead>
%reg1027<def> = AND64ri8 %reg1027, -16, %EFLAGS<imp-def,dead>
%RDI<def> = MOV64rr %RSP
%RDI<def> = SUB64rr %RDI, %reg1027<kill>, %EFLAGS<imp-def,dead>
%RSP<def> = MOV64rr %RDI
into this:
4 %reg1024<def> = MOV32rr %EDI<kill>
12 ADJCALLSTACKDOWN64 0, %RSP<imp-def>, %EFLAGS<imp-def,dead>, %RSP<imp-use>
20 %reg1025<def> = MOVZX64rr32 %reg1024
28 %reg1026<def> = MOV64rr %reg1025<kill>
36 %reg1026<def> = ADD64ri8 %reg1026, 15, %EFLAGS<imp-def,dead>
44 %reg1027<def> = MOV64rr %reg1026<kill>
52 %reg1027<def> = AND64ri8 %reg1027, -16, %EFLAGS<imp-def,dead>
60 %reg1028<def> = MOV64rr %RSP
68 %reg1029<def> = MOV64rr %reg1028<kill>
76 %reg1029<def> = SUB64rr %reg1029, %reg1027<kill>, %EFLAGS<imp-def,dead>
84 %RSP<def> = MOV64rr %reg1029
This helps greatly when debugging register allocation and coalescing
problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76615
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 18:54:14 +0000 (18:54 +0000)]
Add fake v7 itineraries for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76612
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 18:38:57 +0000 (18:38 +0000)]
make AsmPrinter::doFinalization iterate over the global variables
and call PrintGlobalVariable, allowing elimination and simplification
of various targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76604
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 21 Jul 2009 18:27:05 +0000 (18:27 +0000)]
Add PrefixPrinter arguments to the dump routines for MachineFunction and
MachineBasicBlock. We'll use these shortly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76603
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 21 Jul 2009 18:21:46 +0000 (18:21 +0000)]
Add a small utility class to configure IR printers. This will allow
printers to do neat and wonderful things when printing debug
information. The ideas is to allow passes to configer printers to emit
pass-specific information when dumping IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76602
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 21 Jul 2009 18:16:24 +0000 (18:16 +0000)]
Make a bunch of changes suggested by Chris and others to improve
efficiency. Fix a few formatting bugs along the way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76601
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 18:15:26 +0000 (18:15 +0000)]
Do not select tSXTB / tSXTH in thumb2 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76600
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 21 Jul 2009 18:03:38 +0000 (18:03 +0000)]
Rename getConstantInt{True|False} to get{True|False} at Chris' behest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76598
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Tue, 21 Jul 2009 18:01:37 +0000 (18:01 +0000)]
Add freed memory poisoning in !NDEBUG mode for DenseMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76597
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:59:36 +0000 (17:59 +0000)]
reduce indentation by using an early exit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76596
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 21 Jul 2009 17:43:20 +0000 (17:43 +0000)]
Update CMake files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76595
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 21 Jul 2009 17:41:55 +0000 (17:41 +0000)]
Use string comparison instead of numeric comparison when comparing digests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76594
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:39:48 +0000 (17:39 +0000)]
whitespace cleanups, make the MipsAsmPrinter::doInitialization
chain to the super class instead of initializing mangler directly.
This gives it .file and module level inline asm support among other
things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76593
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:37:35 +0000 (17:37 +0000)]
fix Sparc, SystemZ, and MSP430 to not override AsmPrinter::doInitialization.
This eliminates redundancy setting up the mangler and adds support to them
for module-level inline asm and a .file directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76592
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:36:24 +0000 (17:36 +0000)]
convert this test to filecheck format, which is faster and avoids false matches of "st" -> "stdin"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76591
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:30:51 +0000 (17:30 +0000)]
Rename LessPrivateGlobalPrefix -> LinkerPrivateGlobalPrefix to match the
LLVM IR concept.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76590
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 17:25:46 +0000 (17:25 +0000)]
Move StringRef comparison operators out of class.
Also, tweak the return type of size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76588
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:25:13 +0000 (17:25 +0000)]
fix indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76587
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:23:41 +0000 (17:23 +0000)]
remove an unneeded override.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76586
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 17:20:18 +0000 (17:20 +0000)]
more random whitespace cleanup, eliminate #define, avoid copying
vectors needlessly, doxygenify comments, improve constness, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76585
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 16:48:20 +0000 (16:48 +0000)]
add a testcase for the pic16 section handling stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76579
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 16:44:47 +0000 (16:44 +0000)]
some simple whitespace cleanup, avoid copying vectors for no reason
as much, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76578
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 09:18:49 +0000 (09:18 +0000)]
Add StringRef::{substr, startswith}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76559
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 09:15:00 +0000 (09:15 +0000)]
Another rewriter bug exposed by recent coalescer changes. ReuseInfo::GetRegForReload() should make sure the "switched" register is in the desired register class. I'm surprised this hasn't caused more failures in the past.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76558
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 08:58:44 +0000 (08:58 +0000)]
Add missing include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76555
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 08:57:31 +0000 (08:57 +0000)]
Switch this API to StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76554
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 08:54:24 +0000 (08:54 +0000)]
Simplify / normalize some uses of Value::getName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76553
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 07:28:51 +0000 (07:28 +0000)]
Add StringRef class, with fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76543
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Tue, 21 Jul 2009 07:09:05 +0000 (07:09 +0000)]
unbreak unit-tests on gcc-4.4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76542
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 21 Jul 2009 07:08:59 +0000 (07:08 +0000)]
Remove some unused code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76541
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 21 Jul 2009 06:51:32 +0000 (06:51 +0000)]
Support adding relocations for data sections, handling the cases where
global declared symbols are initialized with references from other global
symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76540
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Jul 2009 06:28:36 +0000 (06:28 +0000)]
remove a very large testcase for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76537
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 06:00:18 +0000 (06:00 +0000)]
Add jumps with 8-bit relocation for assembler / disassembler. Patch by Sean Callanan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76536
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 05:40:15 +0000 (05:40 +0000)]
Fix a dagga combiner bug: avoid creating illegal constant.
Is this really a winning transformation?
fold (shl (srl x, c1), c2) -> (shl (and x, (shl -1, c1)), (sub c2, c1)) or
(srl (and x, (shl -1, c1)), (sub c1, c2))
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76535
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 21 Jul 2009 02:47:59 +0000 (02:47 +0000)]
Move a bit more state over to the LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76533
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 21 Jul 2009 01:07:24 +0000 (01:07 +0000)]
Add the following functions:
- SYSCALL (normal fast system call instruction) [0f 05]
- SYSENTER (system call entry instruction) [0f 34]
- SYSEXIT (system call exit instruction) [0f 35]
- SYSEXIT64 (system call exit instruction to 64-bit user code) [REX.W 0f 35]
- SYSRET (system call return instruction) [0f 07]
Patch by Sean Callanan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76528
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 01:02:18 +0000 (01:02 +0000)]
Add a testcase for PR2831.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76527
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 00:50:52 +0000 (00:50 +0000)]
Add a testcase for PR4569, which is now fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76526
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 00:43:42 +0000 (00:43 +0000)]
Add an svn:ignore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76525
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 00:42:47 +0000 (00:42 +0000)]
Make the range calculations for addrecs to be more conservative,
as they aren't currently prepared to handle complicated overflow
cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76524
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 00:38:55 +0000 (00:38 +0000)]
Whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76523
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 21 Jul 2009 00:37:45 +0000 (00:37 +0000)]
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76521
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 00:31:12 +0000 (00:31 +0000)]
Fix ARM isle code that optimize multiply by constants which are power-of-2 +/- 1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76520
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 21 Jul 2009 00:22:59 +0000 (00:22 +0000)]
Cross RC coalescing is now on by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76519
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 21 Jul 2009 00:12:29 +0000 (00:12 +0000)]
revert 76503 while I figure out what's going on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76517
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Jul 2009 23:54:43 +0000 (23:54 +0000)]
Add a comment to clarify why there isn't any code in this spot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76505
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Jul 2009 23:53:35 +0000 (23:53 +0000)]
Remove the code that tried to evaluate whether (A pred B) is known
by determining if (B pred (B-A)) is known, as it doesn't handle
overflow correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76504
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 20 Jul 2009 23:39:13 +0000 (23:39 +0000)]
Make sure a global matching asm 'i' constraint gets its
flags set properly. (hasMemory is clearly irrelevant
when matching 'i', I don't understand what this was
supposed to be doing.)
gcc.apple/asm-block-25.c (test passed before by
accident, but generated code was wrong)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76503
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 20 Jul 2009 23:27:39 +0000 (23:27 +0000)]
Move stripping of bitcasts in inline asm arguments
to a place where it affects everything. Occurs
only on calls AFAIK.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76502
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Jul 2009 22:41:51 +0000 (22:41 +0000)]
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76496
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Jul 2009 22:41:19 +0000 (22:41 +0000)]
Documentation for the new non-overflow and exact keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76495
91177308-0d34-0410-b5e6-
96231b3b80d8