Ted Kremenek
33f7ecabd4
Temporarily stop recovering resources in CrashRecoveryContext while I investigate further why this works on my machine and not on others.
...
llvm-svn: 128065
2011-03-22 02:06:32 +00:00
Ted Kremenek
371ad9a265
Rework CrashRecoveryContextCleanup to provide a simpler way to create cleanup objects, and provide a new cleanup for
...
decrementing reference counts of objects with intrusive reference counts.
llvm-svn: 128055
2011-03-22 01:15:10 +00:00
Ted Kremenek
a686187713
Relax access control on 'Release' method of RefCountedBase.
...
llvm-svn: 128054
2011-03-22 01:15:07 +00:00
Jim Grosbach
e19f7261d5
Hook up the MCJIT to the RuntimeDyld library.
...
Lots of cleanup to make the interfaces prettier, use the JITMemoryManager,
handle multiple functions and modules, etc.. This gets far enough that
the MCJIT compiles and runs code, though.
llvm-svn: 128052
2011-03-22 01:06:42 +00:00
Jakob Stoklund Olesen
ac3cdb2811
Clear map after use.
...
This is likely to fix the segfault in llvm-gcc-x86_64-darwin10-cross-mingw32.
llvm-svn: 128051
2011-03-22 01:03:24 +00:00
Jim Grosbach
454b60d042
Initialize HasError.
...
llvm-svn: 128049
2011-03-22 00:42:19 +00:00
Matt Beaumont-Gay
7aa8a7d216
Avoid -Wunused-variable in -asserts builds
...
llvm-svn: 128048
2011-03-22 00:37:28 +00:00
Jakob Stoklund Olesen
fc9e8a04c3
Dont emit 'DBG_VALUE %noreg, ...' to terminate user variable ranges.
...
These ranges get completely jumbled by the post-ra scheduler, and it is not
really reasonable to expect it to make sense of them.
Instead, teach DwarfDebug to notice when user variables in registers are
clobbered, and terminate the ranges there.
llvm-svn: 128045
2011-03-22 00:21:41 +00:00
Dan Gohman
a83323bca5
Fix fast-isel address mode folding to avoid folding instructions
...
outside of the current basic block. This fixes PR9500, rdar://9156159.
llvm-svn: 128041
2011-03-22 00:04:35 +00:00
Owen Anderson
1264624890
Add support for Thumb interworking addresses for symbol offsets that get constant folded very early.
...
This fixes SPASS with -integrated-as. <rdar://problem/9165399>
llvm-svn: 128037
2011-03-21 23:13:43 +00:00
Devang Patel
595c1b34f8
Try again to make this test darwin only.
...
llvm-svn: 128036
2011-03-21 23:11:08 +00:00
Oscar Fuentes
a2dca8505f
Build the new RuntimeDyld library.
...
llvm-svn: 128035
2011-03-21 23:07:53 +00:00
Oscar Fuentes
0e9aa3de87
Removed workaround for unspecified build problem on MinGW.
...
Tested that MinGW/MSYS builds fine without that.
llvm-svn: 128033
2011-03-21 22:53:51 +00:00
Jim Grosbach
9ad8d572e9
Library-ize the dyld components of llvm-rtdyld.
...
Move the dynamic linking functionality of the llvm-rtdyld program into an
ExecutionEngine support library. Update llvm-rtdyld to just load an object
file into memory, use the library to process it, then run the _main()
function, if one is found.
llvm-svn: 128031
2011-03-21 22:15:52 +00:00
Devang Patel
05641a9b85
Simplify.
...
llvm-svn: 128030
2011-03-21 22:04:45 +00:00
Nick Lewycky
e8f6eb49ee
Fix INT_MIN gotcha pointed out by Eli Friedman.
...
llvm-svn: 128028
2011-03-21 21:40:32 +00:00
Devang Patel
bf35de8849
Force x86_64.
...
llvm-svn: 128027
2011-03-21 21:37:52 +00:00
Bill Wendling
52c4596a0f
Call static functions so that they aren't left unused.
...
llvm-svn: 128020
2011-03-21 21:08:27 +00:00
Devang Patel
4a5e013ca8
Enable this test only for Darwin.
...
llvm-svn: 128017
2011-03-21 20:32:56 +00:00
Ted Kremenek
a462a53e0b
Provide a means for CrashRecovery clients to determine if code is currently running while crash recovery cleanups are being processed.
...
llvm-svn: 128008
2011-03-21 18:38:03 +00:00
Ted Kremenek
58a4560569
Allow a client to clear an IntrustiveRefCntPtr (deliberately leaking the referenced object).
...
llvm-svn: 128007
2011-03-21 18:37:59 +00:00
Eric Christopher
ed687f1e8b
Fix unused param warning.
...
llvm-svn: 128005
2011-03-21 18:06:32 +00:00
Eric Christopher
44e3d3c26e
Grammar-o.
...
llvm-svn: 128004
2011-03-21 18:06:21 +00:00
Jay Foad
3d4a8cab78
Fix typos in assert messages.
...
llvm-svn: 128002
2011-03-21 16:38:22 +00:00
Anders Carlsson
41cc428751
More cleanups to the OptimizeEmptyGlobalCXXDtors GlobalOpt function.
...
llvm-svn: 127997
2011-03-21 14:54:40 +00:00
Bill Wendling
9adf1c9edd
A WIP commit of the InstAlias printing cleanup. This code will soon replace the
...
code below it. Even though it looks very similar, it will match more precisely
and geneate better functions in the long run.
llvm-svn: 127991
2011-03-21 08:59:17 +00:00
Bill Wendling
4cdb29548b
Add the IAPrinter class.
...
This is a helper class that will make it easier to say which InstAliases can be
printed and which cannot (because of ambiguity).
llvm-svn: 127990
2011-03-21 08:40:31 +00:00
Bill Wendling
e3b0820ad4
* Add classes that support the "feature" information.
...
* Move the code that emits the reg in reg class matching into its own function.
llvm-svn: 127988
2011-03-21 08:31:53 +00:00
Bill Wendling
a2eec46242
We need to pass the TargetMachine object to the InstPrinter if we are printing
...
the alias of an InstAlias instead of the thing being aliased. Because we need to
know the features that are valid for an InstAlias.
This is part of a work-in-progress.
llvm-svn: 127986
2011-03-21 04:13:46 +00:00
Anders Carlsson
59d24b6777
As suggested by Nick Lewycky, ignore debugging intrinsics when trying to decide whether a destructor is empty or not.
...
llvm-svn: 127985
2011-03-21 02:42:27 +00:00
Nick Lewycky
2f6da949e9
Fix comments
...
llvm-svn: 127984
2011-03-21 02:26:01 +00:00
Eli Friedman
0da0b4aed0
This README entry was fixed recently.
...
llvm-svn: 127982
2011-03-21 01:33:03 +00:00
Evan Cheng
dd99a0a548
Re-apply r127953 with fixes: eliminate empty return block if it has no predecessors; update dominator tree if cfg is modified.
...
llvm-svn: 127981
2011-03-21 01:19:09 +00:00
Anders Carlsson
097f3f44a8
Don't try to eliminate invokes to __cxa_atexit.
...
llvm-svn: 127976
2011-03-20 20:21:33 +00:00
Anders Carlsson
07922b7344
Don't segfault on mutual recursion, as pointed out by Frits.
...
llvm-svn: 127975
2011-03-20 20:16:43 +00:00
Anders Carlsson
1b29d560bf
Address comments from Frits van Bommel.
...
llvm-svn: 127974
2011-03-20 19:51:13 +00:00
Jakob Stoklund Olesen
7f9de06cc4
Process all dead defs after rematerializing during splitting.
...
llvm-svn: 127973
2011-03-20 19:46:23 +00:00
Rafael Espindola
b5c6ae67ac
Write the section table and the section data in the same order that
...
gun as does. This makes it a lot easier to compare the output of both
as the addresses are now a lot closer.
llvm-svn: 127972
2011-03-20 18:44:20 +00:00
Anders Carlsson
afcc55f09c
Add an optimization to GlobalOpt that eliminates calls to __cxa_atexit, if the function passed is empty.
...
llvm-svn: 127970
2011-03-20 17:59:11 +00:00
Benjamin Kramer
dd8cb156c1
Avoid initializing posix_spawn_file_actions_t if not used.
...
- glibc falls back to fork+exec if a file actions object is present.
- On BSDs this saves a malloc.
llvm-svn: 127969
2011-03-20 15:52:24 +00:00
Argyrios Kyrtzidis
f906dcc618
If a class inherits from RefCountedBaseVPTR allow all its subclasses to be used with IntrusiveRefCntPtr.
...
llvm-svn: 127966
2011-03-20 06:14:56 +00:00
Jakob Stoklund Olesen
6bc47435a9
Also eliminate redundant spills downstream of inserted reloads.
...
This can happen when multiple sibling registers are spilled after live range
splitting.
llvm-svn: 127965
2011-03-20 05:44:58 +00:00
Jakob Stoklund Olesen
911619d9e2
Change an argument to a LiveInterval instead of a register number to save some redundant lookups.
...
llvm-svn: 127964
2011-03-20 05:44:55 +00:00
Daniel Dunbar
4b49a1e2c3
Disable test in a way that keeps lit happy.
...
llvm-svn: 127962
2011-03-20 00:04:51 +00:00
Jakob Stoklund Olesen
916b11e88b
Replace a broken LiveInterval::MergeValueInAsValue() with something simpler.
...
llvm-svn: 127960
2011-03-19 23:02:49 +00:00
Jakob Stoklund Olesen
bf1a7cb32d
Add debug output.
...
llvm-svn: 127959
2011-03-19 23:02:47 +00:00
Oscar Fuentes
8419f80e50
Make llvm-config.in configuration more MSYS-friendly.
...
Some of those POSIX <-> Windows command line conversions ended on
failure.
llvm-svn: 127958
2011-03-19 22:52:33 +00:00
Oscar Fuentes
94b5de9966
CMake: store TARGET_TRIPLE on llvm-config.in.
...
llvm-svn: 127957
2011-03-19 22:52:25 +00:00
Oscar Fuentes
1f85966c0e
Update CMake library dependencies.
...
llvm-svn: 127956
2011-03-19 22:52:13 +00:00
Daniel Dunbar
34c65737c3
Revert r127953, "SimplifyCFG has stopped duplicating returns into predecessors
...
to canonicalize IR", it broke a lot of things.
llvm-svn: 127954
2011-03-19 21:47:14 +00:00