Daniel Dunbar
e48a69b2a3
llvm-mc: Unique zero fill sections.
...
llvm-svn: 80342
2009-08-28 05:48:29 +00:00
Daniel Dunbar
cf72e1c03e
llvm-mc: Add const to EmitZeroFill section argument.
...
llvm-svn: 80341
2009-08-28 05:48:22 +00:00
Daniel Dunbar
93665faad0
llvm-mc: Fix thinko in emitting values.
...
llvm-svn: 80340
2009-08-28 05:48:10 +00:00
Daniel Dunbar
4b07ea1902
Add MathExtras.h OffsetToAlignment, like RoundUpToAlignment but returns the
...
offset to the next aligned integer.
llvm-svn: 80339
2009-08-28 05:48:04 +00:00
Daniel Dunbar
d46e3466e7
Fix -Asserts warning.
...
llvm-svn: 80338
2009-08-28 05:47:56 +00:00
Chris Lattner
0e8901803c
finish a half formed thought :)
...
llvm-svn: 80334
2009-08-28 04:48:54 +00:00
Daniel Dunbar
2ece038e6e
Another NO_RUNTIME_LIBRARIES tweak...
...
llvm-svn: 80331
2009-08-28 03:06:28 +00:00
Daniel Dunbar
e45cdcdca2
Tweak NO_RUNTIME_LIBS.
...
llvm-svn: 80330
2009-08-28 02:20:39 +00:00
Chris Lattner
51a25b06f7
Mark Andersen's as experimental.
...
llvm-svn: 80328
2009-08-28 00:45:47 +00:00
Chris Lattner
bda82c20f3
Fix PR3913, patch by Jakub Staszak!
...
llvm-svn: 80327
2009-08-28 00:43:14 +00:00
Evan Cheng
6da267de23
v4, v5 does not support sxtb / sxth.
...
llvm-svn: 80322
2009-08-28 00:31:43 +00:00
Bob Wilson
2cb0c3b5cb
Disable optional bindings for Apple-style builds.
...
llvm-svn: 80319
2009-08-28 00:21:13 +00:00
Bob Wilson
d581639645
Revert 76080. This broke some powerpc cross compiles.
...
It also makes the llvmCore build dependent on whatever version of llvm-gcc
happens to be installed on the build machine.
llvm-svn: 80316
2009-08-28 00:10:15 +00:00
Daniel Dunbar
8d38b8d20c
Revert r80305, I forgot a dependent change.
...
--- Reverse-merging r80305 into '.':
U tools/llvm-mc/AsmParser.cpp
llvm-svn: 80309
2009-08-27 23:58:10 +00:00
Devang Patel
3082c01d68
Closure is a very generic name. Use AppleBlock instead.
...
llvm-svn: 80307
2009-08-27 23:51:51 +00:00
Daniel Dunbar
ba33ff294e
llvm-mc: Unique sections in .zerofill.
...
llvm-svn: 80305
2009-08-27 23:45:06 +00:00
Gabor Greif
57d9b1e19a
eliminate all 80-col violations that I have introduced in my recent checkins (and some others more)
...
llvm-svn: 80304
2009-08-27 23:44:33 +00:00
Daniel Dunbar
e36c50f163
Don't build runtime libraries in an Apple style build.
...
llvm-svn: 80303
2009-08-27 23:43:28 +00:00
Bruno Cardoso Lopes
e91191630b
Revert 80278 for now, it caused a lot of MIPS tests to fail
...
llvm-svn: 80280
2009-08-27 19:57:56 +00:00
Bruno Cardoso Lopes
18c21daafb
Revamp our friend Mips :)
...
Add MO flags to simplify the printing of relocations.
Remove the support for printing large code model relocs (which
aren't supported anyway).
llvm-svn: 80278
2009-08-27 19:40:40 +00:00
Dan Gohman
931ec72ebf
Don't mark CMOV_GR8 as two-address, or commutable, since it's a pseudo.
...
llvm-svn: 80271
2009-08-27 18:16:24 +00:00
Dan Gohman
ed10d7c441
Adjust the MachineBasicBlock verifier rules to be more
...
tolerant of blocks that end with "unreachable".
llvm-svn: 80270
2009-08-27 18:14:26 +00:00
Eric Christopher
69baa5139b
Add FIXME for when we support more specific XMM registers.
...
llvm-svn: 80269
2009-08-27 18:08:16 +00:00
Eric Christopher
799c92bcfb
Nuke trailing whitespace.
...
llvm-svn: 80268
2009-08-27 18:07:15 +00:00
Dan Gohman
bc1d841a63
Use stripPointerCasts instead of doing the same manually.
...
llvm-svn: 80267
2009-08-27 18:02:03 +00:00
Dan Gohman
ea398633b2
Minor code simplification.
...
llvm-svn: 80266
2009-08-27 17:59:08 +00:00
Dan Gohman
4ce5ade09d
Teach getUnderlyingObject and skipPointerCasts about GlobalAliases.
...
llvm-svn: 80265
2009-08-27 17:55:13 +00:00
Dan Gohman
aba809befd
Be somewhat more consistent about const qualifiers.
...
llvm-svn: 80264
2009-08-27 17:54:15 +00:00
Dan Gohman
1f59f0146f
Global Aliases are not identifiable objects.
...
llvm-svn: 80263
2009-08-27 17:52:56 +00:00
Dan Gohman
05f11351ab
Handle TargetData with const.
...
llvm-svn: 80262
2009-08-27 17:51:25 +00:00
Dan Gohman
20ef7728af
Strip trailing whitespace from blank lines.
...
llvm-svn: 80259
2009-08-27 17:29:49 +00:00
Gabor Greif
962c374781
re-apply r80197, now that iterator.h is not mentioned any more
...
llvm-svn: 80254
2009-08-27 17:07:35 +00:00
Anton Korobeynikov
ba53af58f0
Hopefully the final missing part :(
...
scalar_to_vector is fully legal now
llvm-svn: 80251
2009-08-27 16:25:49 +00:00
Anton Korobeynikov
076f105d86
Forgot about actual change :)
...
llvm-svn: 80250
2009-08-27 16:10:17 +00:00
Anton Korobeynikov
205cac837f
scalar_to_vector is fully legal now (implemented as subreg accesses)
...
llvm-svn: 80249
2009-08-27 16:04:47 +00:00
Devang Patel
7b8f61f3c8
Remove an entry from ValueMap before removing elements.
...
llvm-svn: 80247
2009-08-27 15:32:38 +00:00
Anton Korobeynikov
d0b0262edf
Ok, sometimes it's profitable to turn scalar_to_vector stuff into subreg access.
...
Add a testcase.
llvm-svn: 80246
2009-08-27 14:51:42 +00:00
Anton Korobeynikov
58ebae4acd
Transform float scalar_to_vector into subreg accesses.
...
No idea whether this is profitable or not.
llvm-svn: 80245
2009-08-27 14:38:44 +00:00
Misha Brukman
209baa5c48
STRD and LDRD require ARMv5TE, not just ARMv5T.
...
See http://llvm.org/PR4687 for more info and links.
llvm-svn: 80244
2009-08-27 14:14:21 +00:00
Benjamin Kramer
53fd9f392d
Inverse logic to increase portability.
...
llvm-svn: 80240
2009-08-27 12:02:34 +00:00
Sanjiv Gupta
99c20d1459
To make mcc16 run correctly on mac.
...
llvm-svn: 80239
2009-08-27 11:54:38 +00:00
Daniel Dunbar
c7c5f9fa86
llvm-mc/Mach-O: Add MCCodeEmitter support, for encoding instructions.
...
- No relocations yet, of course.
llvm-svn: 80235
2009-08-27 08:17:51 +00:00
Daniel Dunbar
981a71c302
llvm-mc/X86: Implement single instruction encoding interface for MC.
...
- Note, this is a gigantic hack, with the sole purpose of unblocking further
work on the assembler (its also possible to test the mathcer more completely
now).
- Despite being a hack, its actually good enough to work over all of 403.gcc
(although some encodings are probably incorrect). This is a testament to the
beauty of X86's MachineInstr, no doubt! ;)
llvm-svn: 80234
2009-08-27 08:12:55 +00:00
Daniel Dunbar
c4f0e7e28d
llvm-mc: Print encodings after the instruction, and only when we have an asm
...
printer.
llvm-svn: 80233
2009-08-27 07:58:57 +00:00
Daniel Dunbar
6ec97df98f
X86: Mark EH_RETURN as code-gen-only.
...
llvm-svn: 80232
2009-08-27 07:58:05 +00:00
Daniel Dunbar
212b6d8a57
Add {MCInst,MCOperand}::{print,dump}
...
llvm-svn: 80231
2009-08-27 07:57:12 +00:00
Daniel Dunbar
d18dd1d5f8
llvm-mc: Only show instruction encodings with --show-encoding.
...
llvm-svn: 80230
2009-08-27 07:56:39 +00:00
Gabor Greif
1c62958901
the buildbots revealed one more breakage. fix. (why didn't I see this?)
...
llvm-svn: 80227
2009-08-27 06:59:20 +00:00
Gabor Greif
95225a2fe6
Clean up the minor mess I caused with removing iterator.h. I shall take care of 80-col violations and the FIXME later. (Thanks goodness that I live in another continent, so the monkeypox did not strike me :-)
...
llvm-svn: 80224
2009-08-27 06:41:46 +00:00
Chris Lattner
d3374e8dfd
Implement a new optimization in the inliner: if inlining multiple
...
calls into a function and if the calls bring in arrays, try to merge
them together to reduce stack size. For example, in the testcase
we'd previously end up with 4 allocas, now we end up with 2 allocas.
As described in the comments, this is not really the ideal solution
to this problem, but it is surprisingly effective. For example, on
176.gcc, we end up eliminating 67 arrays at "gccas" time and another
24 at "llvm-ld" time.
One piece of concern that I didn't look into: at -O0 -g with
forced inlining this will almost certainly result in worse debug
info. I think this is acceptable though given that this is a case
of "debugging optimized code", and we don't want debug info to
prevent the optimizer from doing things anyway.
llvm-svn: 80215
2009-08-27 06:29:33 +00:00