Commit Graph

31474 Commits

Author SHA1 Message Date
Chris Lattner
8d06945fff rename TAI -> MAI, being careful not to make MAILJMP instructions :)
llvm-svn: 79777
2009-08-22 21:43:10 +00:00
Chris Lattner
384b7d24a9 rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.
llvm-svn: 79773
2009-08-22 21:03:30 +00:00
Chris Lattner
9f2ba3294f move the MCAsmInfo .cpp/.h files into the right
directories and rename them.

llvm-svn: 79768
2009-08-22 20:58:17 +00:00
Chris Lattner
665d8e92a8 revert 79764, my dependencies failed me again.
llvm-svn: 79767
2009-08-22 20:56:12 +00:00
Bill Wendling
f0c30267ee Convert DOUT to DEBUG(errs()...).
llvm-svn: 79766
2009-08-22 20:54:03 +00:00
Bill Wendling
54e5b301f7 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79765
2009-08-22 20:52:46 +00:00
Chris Lattner
7416d2bf88 remove dead member.
llvm-svn: 79764
2009-08-22 20:50:18 +00:00
Chris Lattner
5d8af49626 Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.
llvm-svn: 79763
2009-08-22 20:48:53 +00:00
Bill Wendling
befc5142d8 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79762
2009-08-22 20:46:59 +00:00
Bill Wendling
8e64fefc68 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79760
2009-08-22 20:41:06 +00:00
Bill Wendling
4a1c36eac3 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79759
2009-08-22 20:40:21 +00:00
Bill Wendling
2e996850e3 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79758
2009-08-22 20:38:09 +00:00
Bill Wendling
f5b999004d Convert DOUT to DEBUG(errs()...).
llvm-svn: 79756
2009-08-22 20:30:53 +00:00
Bill Wendling
583b46267f Convert DOUT to DEBUG(errs()...).
llvm-svn: 79755
2009-08-22 20:26:23 +00:00
Bill Wendling
6dff651660 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79754
2009-08-22 20:25:44 +00:00
Bill Wendling
6fca65fb1c Convert DOUT to DEBUG(errs()...).
llvm-svn: 79753
2009-08-22 20:23:49 +00:00
Bill Wendling
cf51caf09d Convert DOUT to DEBUG(errs()...).
llvm-svn: 79752
2009-08-22 20:18:03 +00:00
Bill Wendling
295fc15497 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79751
2009-08-22 20:11:17 +00:00
Bill Wendling
5a5d0efc7f Normalize how the 'namespace llvm {' is used in this file.
llvm-svn: 79750
2009-08-22 20:08:44 +00:00
Bill Wendling
afba8e204c Convert DOUT to DEBUG(errs()...).
llvm-svn: 79749
2009-08-22 20:07:03 +00:00
Bill Wendling
d197f257a7 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79748
2009-08-22 20:04:03 +00:00
Bill Wendling
7ce39eba34 Convert DOUT to DEBUG(errs()...).
llvm-svn: 79747
2009-08-22 20:03:00 +00:00
Chris Lattner
29213a76e4 prune some redundant #includes.
llvm-svn: 79746
2009-08-22 19:35:08 +00:00
Chris Lattner
d786e8929e tweak #includes
llvm-svn: 79744
2009-08-22 19:19:12 +00:00
Devang Patel
c071d6c1b4 Record variable debug info at ISel time directly.
llvm-svn: 79742
2009-08-22 17:12:53 +00:00
Anton Korobeynikov
23ecf9767c Some dummy cost model for s390x:
- Prefer short-imm instructions over ext-imm, when possible
 - Prefer Z10 instructions over Z9, when possible

This hopefully should fix some dejagnu test fails on solaris

llvm-svn: 79741
2009-08-22 11:46:16 +00:00
Daniel Dunbar
4c3cf93d1d llvm-mc/Mach-O: Improve symbol table support:
- Honor .globl.

 - Set symbol type and section correctly ('nm' now works), and order symbols
   appropriately.

 - Take care to the string table so that the .o matches 'as' exactly (for ease
   of testing).

llvm-svn: 79740
2009-08-22 11:41:10 +00:00
Daniel Dunbar
d22c0d4d49 llvm-mc/Mach-O: Sketch symbol table support.
- The only .s syntax this honors right now is emitting labels, and some parts
   of the symbol table generation are wrong or faked.

 - This is enough to get nm to report such symbols... incorrectly, but still.

Also, fixed byte emission to extend the previous fragment if possible.

llvm-svn: 79739
2009-08-22 10:13:24 +00:00
Daniel Dunbar
2b6db55380 llvm-mc/Mach-O: Move more logic for writing the Mach-O file into the writer
class, and kill off MCSectionData::FileOffset.

llvm-svn: 79735
2009-08-22 08:28:27 +00:00
Daniel Dunbar
b367c1724d llvm-mc: Rename / redefine MCFragment::FileOffset to MCFragment::Offset (the
section offset).

llvm-svn: 79734
2009-08-22 08:27:54 +00:00
Daniel Dunbar
2bb8df3b5d llvm-mc: Clean up some handling of symbol/section association to be more correct
(external was really undefined and there wasn't an explicit representation for
absolute symbols).
 - This still needs some cleanup to how the absolute "pseudo" section is dealt
   with, but I haven't figured out the nicest approach yet.

llvm-svn: 79733
2009-08-22 07:22:36 +00:00
Owen Anderson
51e0724ae8 Reapply r79708 with the appropriate fix for the case that still requires locking.
llvm-svn: 79731
2009-08-22 06:32:36 +00:00
Chris Lattner
b75d76e6d1 revert r79708 + r79711
llvm-svn: 79720
2009-08-22 04:07:34 +00:00
Eli Friedman
79615641f1 Make x86 test actually test x86 code generation. Fix the
construct on ARM, which was breaking by coincidence, and add a similar 
testcase for ARM.

llvm-svn: 79719
2009-08-22 03:13:10 +00:00
Eric Christopher
724f0fec19 Actually remove unused static. Previous commit removed trailing
whitespace.

llvm-svn: 79711
2009-08-22 00:41:47 +00:00
Eric Christopher
6da03d3055 Remove unused static.
llvm-svn: 79710
2009-08-22 00:40:45 +00:00
Owen Anderson
2a5b6c38b8 Ease contention on this lock by noticing that all writes to the VTs array will
be of (dynamically) constant values, so races on it are immaterial.  We just need
to ensure that at least one write has completed before return the pointer into it.

With this change, parllc exhibits essentially no overhead on 403.gcc.

llvm-svn: 79708
2009-08-22 00:29:12 +00:00
Chris Lattner
807f58191d Revert r79563
llvm-svn: 79691
2009-08-21 23:12:47 +00:00
Chris Lattner
d657910424 revert r79562 + r79563
llvm-svn: 79690
2009-08-21 23:12:15 +00:00
Anton Korobeynikov
31ef120005 Fix typo.
llvm-svn: 79688
2009-08-21 23:09:47 +00:00
Chris Lattner
9d38bf92f9 revert r79631
llvm-svn: 79686
2009-08-21 23:08:45 +00:00
Chris Lattner
d13e92e3f5 revert 79631
llvm-svn: 79685
2009-08-21 23:08:09 +00:00
Daniel Dunbar
aa60fad397 llvm-mc/Mach-O: Support .o emission for .org and .align.
llvm-svn: 79684
2009-08-21 23:07:38 +00:00
Anton Korobeynikov
bb4c910976 Implement APInt <-> APFloat conversion for IEEE 128-bit floats.
This fixes PR2555

llvm-svn: 79677
2009-08-21 22:10:30 +00:00
Bob Wilson
9482015a0a Rename ARM "lane_cst" operands to "nohash_imm" since they are used for
several things other than Neon vector lane numbers.  For inline assembly
operands with a "c" print code, check that they really are immediates.

llvm-svn: 79676
2009-08-21 21:58:55 +00:00
Reid Kleckner
58c16635f7 Fix a bug where the DWARF emitter in the JIT was not initializing alignment
bytes.  libgcc doesn't seem to mind, but if you pass this DWARF to GDB, it
doesn't like it.  

Also make the JIT memory manager to initialize it's memory to garbage in debug
mode, so that it's easier to find bugs like these in the future.

llvm-svn: 79674
2009-08-21 21:03:57 +00:00
Bob Wilson
6d4400e852 Match VTRN, VZIP, and VUZP shuffles. Restore the tests for these operations,
now using shuffles instead of intrinsics.

llvm-svn: 79673
2009-08-21 20:54:19 +00:00
Anton Korobeynikov
9458a8c84d Add fcopysign instructions
llvm-svn: 79664
2009-08-21 20:02:37 +00:00
Owen Anderson
e1a4b0a055 Try again at privatizing the layout info map, with a rewritten patch.
This preserves the existing behavior much more closely than my previous attempt.

llvm-svn: 79663
2009-08-21 19:59:12 +00:00
Anton Korobeynikov
cee0600755 Expand few nodes until someone will be crazy enough to implement them natively :)
llvm-svn: 79659
2009-08-21 18:52:42 +00:00