Johnny Chen
6bcb81a773
Add "import sys" for sys.stdout.
...
llvm-svn: 124504
2011-01-28 20:59:39 +00:00
John McCall
b91ab89729
Add my new file to the CMake lists, sorry about that.
...
llvm-svn: 124503
2011-01-28 20:10:46 +00:00
Howard Hinnant
d44be13fa8
minor corrections to test, and hook is_base_of up to clang intrinsic
...
llvm-svn: 124502
2011-01-28 20:00:37 +00:00
Johnny Chen
a1a00b19b5
Add emulate_mov_rd_sp() entries to the g_arm_opcodes and g_thumb_opcodes tables.
...
For prolog instructions which set r7 or ip to the stack pointer.
llvm-svn: 124501
2011-01-28 19:57:25 +00:00
Johnny Chen
49c2245354
The restoring of sys.stdout should happen right after:
...
self.runCmd("script my.date()")
In case the self.expect() fails, the restore would not be executed.
llvm-svn: 124500
2011-01-28 19:39:06 +00:00
Johnny Chen
c03a362b16
Hardened the test_command_source() test case by actually capturing the output
...
from running the "script my.date()" lldb command and comparing it against our
expected result.
llvm-svn: 124499
2011-01-28 19:30:12 +00:00
Roman Divacky
cd9ae95ae7
Error on .code16 instead of producing wrong (32bit) code.
...
llvm-svn: 124498
2011-01-28 19:29:48 +00:00
Duncan Sands
e4b4d0c16d
This dyn_cast should be a cast. Pointed out by Frits van Bommel.
...
llvm-svn: 124497
2011-01-28 18:53:08 +00:00
Duncan Sands
65995fa2a0
Thread divisions over selects and phis. This doesn't fire much and has basically
...
zero effect on the testsuite (it improves two Ada testcases).
llvm-svn: 124496
2011-01-28 18:50:50 +00:00
Caroline Tice
163ae0986b
Add comment.
...
llvm-svn: 124495
2011-01-28 18:31:34 +00:00
Benjamin Kramer
ed3d85a7f0
Make the FreeBSD driver test more robust so it doesn't fail when there's a single lib32 path.
...
llvm-svn: 124494
2011-01-28 18:28:30 +00:00
Bob Wilson
775eec2280
PR9030: Fix disassembly of ARM "mov pc, lr" instruction.
...
Patch by Jyun-Yan You.
llvm-svn: 124492
2011-01-28 17:50:30 +00:00
Caroline Tice
c3cc59c119
Remove comments I accidentally left in before.
...
llvm-svn: 124490
2011-01-28 17:34:54 +00:00
Caroline Tice
29329ada20
Add tests for 'process launch' I/O flags.
...
llvm-svn: 124489
2011-01-28 17:31:28 +00:00
Johnny Chen
8b2c3217fd
Minor comment change.
...
llvm-svn: 124488
2011-01-28 17:22:29 +00:00
Duncan Sands
771e82a863
My auto-simplifier noticed that ((X/Y)*Y)/Y occurs several times in SPEC
...
benchmarks, and that it can be simplified to X/Y. (In general you can only
simplify (Z*Y)/Y to Z if the multiplication did not overflow; if Z has the
form "X/Y" then this is the case). This patch implements that transform and
moves some Div logic out of instcombine and into InstructionSimplify.
Unfortunately instcombine gets in the way somewhat, since it likes to change
(X/Y)*Y into X-(X rem Y), so I had to teach instcombine about this too.
Finally, thanks to the NSW/NUW flags, sometimes we know directly that "Z*Y"
does not overflow, because the flag says so, so I added that logic too. This
eliminates a bunch of divisions and subtractions in 447.dealII, and has good
effects on some other benchmarks too. It seems to have quite an effect on
tramp3d-v4 but it's hard to say if it's good or bad because inlining decisions
changed, resulting in massive changes all over.
llvm-svn: 124487
2011-01-28 16:51:11 +00:00
Oscar Fuentes
e789bdb870
Fix libffi usage when it is on a custom path.
...
llvm-svn: 124486
2011-01-28 16:49:05 +00:00
Roman Divacky
7e9e290952
Add support for parsing .float
...
llvm-svn: 124485
2011-01-28 14:20:32 +00:00
John McCall
ed1ae86ac6
Move all the cleanups framework code into a single file.
...
Pure motion.
llvm-svn: 124484
2011-01-28 11:13:47 +00:00
John McCall
cb5f77f046
Reorganize the value-dominance metaprogram and introduce a specialization
...
for CodeGen's RValue type.
llvm-svn: 124483
2011-01-28 10:53:53 +00:00
Nick Lewycky
cfb284cf96
Rename functions to follow coding standard. Also rejiggers comments. No
...
functionality change.
llvm-svn: 124482
2011-01-28 08:43:14 +00:00
John McCall
e4df6c8d96
Convert the exception-freeing cleanup over to the conditional cleanups code,
...
fixing a crash which probably nobody was ever going to see. In doing so,
fix a horrendous number of problems with the conditional-cleanups code.
Also, make conditional cleanups re-use the cleanup's activation variable,
which avoids some unfortunate repetitiveness.
llvm-svn: 124481
2011-01-28 08:37:24 +00:00
Nick Lewycky
aaf401241a
Add a doxygen comment for this class.
...
llvm-svn: 124480
2011-01-28 08:19:00 +00:00
Nick Lewycky
564fcca856
Reorder for readability. (Chris, is this what you meant?)
...
llvm-svn: 124479
2011-01-28 07:36:21 +00:00
Evan Cheng
aaa9606b2f
Revert r124462. There are a few big regressions that I need to fix first.
...
llvm-svn: 124478
2011-01-28 07:12:38 +00:00
Nico Weber
24b2a822dd
PR9037: Allow override, final, and new as an extension on inline members.
...
llvm-svn: 124477
2011-01-28 06:07:34 +00:00
John McCall
f26870c43d
Not really any point to testing control flow in this test without
...
ret duplication.
llvm-svn: 124476
2011-01-28 06:05:16 +00:00
Nick Lewycky
c5eb3733f7
Reduce the number of functions we look at in the first pass, and preallocate
...
the function equality set.
llvm-svn: 124475
2011-01-28 05:48:15 +00:00
Eric Christopher
709e1f3711
Update exceptions.m for r124462.
...
llvm-svn: 124474
2011-01-28 05:13:18 +00:00
Nick Lewycky
db34be0e31
Clean up the tests a little, make sure we match an instruction in the right
...
test.
llvm-svn: 124473
2011-01-28 05:13:17 +00:00
Nick Lewycky
0af77fd45b
Fix build with stdcxx by using llvm::next. Patch by Joerg Sonnenberger!
...
llvm-svn: 124472
2011-01-28 04:00:15 +00:00
Rafael Espindola
2f72a84284
Add a triple.
...
llvm-svn: 124471
2011-01-28 03:57:55 +00:00
Nick Lewycky
6593e6eaf6
Add missing include for ptrdiff_t. Patch by Joerg Sonnenberger!
...
llvm-svn: 124470
2011-01-28 03:52:25 +00:00
Nick Lewycky
b074e32641
Fold select + select where both selects are on the same condition.
...
llvm-svn: 124469
2011-01-28 03:28:10 +00:00
Rafael Espindola
6c17d54891
Print the visibility of declarations.
...
llvm-svn: 124468
2011-01-28 03:20:10 +00:00
Nico Weber
4ada0d9164
PR8951: Support for .equiv in integrated assembler, patch by Jörg Sonnenberger!
...
llvm-svn: 124467
2011-01-28 03:04:41 +00:00
Johnny Chen
121e448e19
Add emulate_sub_r7_ip_imm() (set frame pointer to some ip offset) and emulate_sub_ip_sp_imm() (
...
set ip to some stack offset) entries to the g_arm_opcodes table.
llvm-svn: 124466
2011-01-28 02:26:08 +00:00
Douglas Gregor
c03a1083af
Give OpaqueValueExpr a source location, because its source location
...
might be queried in places where we absolutely require a valid
location (e.g., for template instantiation). Fixes some major
brokenness in the use of __is_convertible_to.
llvm-svn: 124465
2011-01-28 02:26:04 +00:00
Jim Ingham
dd2fe7adb5
Fix a little thinko in sending down the thread name to SetName.
...
llvm-svn: 124464
2011-01-28 02:23:12 +00:00
Jim Ingham
f2c6ccf043
The thread_info changes over the life of the thread, so you can't get it once and cache it, you have to fetch it every time you want to use it.
...
llvm-svn: 124463
2011-01-28 02:21:37 +00:00
Evan Cheng
417fca86c4
- Stop simplifycfg from duplicating "ret" instructions into unconditional
...
branches. PR8575, rdar://5134905, rdar://8911460.
- Allow codegen tail duplication to dup small return blocks after register
allocation is done.
llvm-svn: 124462
2011-01-28 02:19:21 +00:00
Johnny Chen
e5b28a9e6a
Should provide more useful context info for the emulate_ldr_rd_pc_rel() impl.
...
The context being that it's a PC relative load.
llvm-svn: 124460
2011-01-28 00:32:27 +00:00
Caroline Tice
ba8df270e6
If the user specfies one of stdin, stdout or stderr, don't
...
automatically set the non-specified ones to /dev/null.
llvm-svn: 124459
2011-01-28 00:19:58 +00:00
Evan Cheng
bb8420a070
Fix PLD encoding.
...
llvm-svn: 124458
2011-01-27 23:48:34 +00:00
Douglas Gregor
59f5dc60d2
Eliminate extraneous {};
...
llvm-svn: 124456
2011-01-27 23:36:08 +00:00
Douglas Gregor
3fb22baddb
Allow elision of invocations of move constructors from temporary objects.
...
llvm-svn: 124455
2011-01-27 23:24:55 +00:00
Kevin Enderby
e9f2f0cb0b
Changed llvm-mc arm target to give an error if .syntax divided is used. Since
...
only .syntax unified is supported.
llvm-svn: 124454
2011-01-27 23:22:36 +00:00
Douglas Gregor
21d3fca917
When producing IR for a lvalue-to-rvalue cast *as an lvalue*, only
...
non-class prvalues actually require the realization of a
temporary. For everything else, we already have an lvalue (or class
prvalue) in the subexpression.
Note: we're missing some move elision in this case. I'll tackle that next.
llvm-svn: 124453
2011-01-27 23:22:05 +00:00
Howard Hinnant
e4de279009
Updated getting started directions.
...
llvm-svn: 124452
2011-01-27 23:18:19 +00:00
Fariborz Jahanian
ee504a0881
Fix an objective-c rewriter bug rewriting a __block
...
variable declaration of a struct declared type.
// rdar://8918702
llvm-svn: 124451
2011-01-27 23:18:15 +00:00