| Commit message (Collapse) | Author | Age | Files | Lines | 
| ... |  | 
| | 
| 
| 
|  | 
llvm-svn: 196654
 | 
| | 
| 
| 
|  | 
llvm-svn: 196641
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by Andy Kaylor, with minor edits to resolve merge conflicts.
llvm-svn: 196639
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
getSymbolWithGlobalValueBase use is to create a name of a new symbol based
on the name of an existing GV. Assert that and then remove the last call
to pass true to isImplicitlyPrivate.
This gives the mangler API a 1:1 mapping from GV to names, which is what we
need to drop the mangler dependency on the target (and use an extended
datalayout instead).
llvm-svn: 196472
 | 
| | 
| 
| 
|  | 
llvm-svn: 195911
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Instead of processing relocation for branch to stubs right away, emit a
modified relocation and add it to queue to be resolved later when final load
address is known.
This resolves seven MIPS MCJIT issues that were caused by missing relocation
fixups at the end.
llvm-svn: 195157
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This patch removes most of the trivial cases of weak vtables by pinning them to
a single object file. The memory leaks in this version have been fixed. Thanks
Alexey for pointing them out.
Differential Revision: http://llvm-reviews.chandlerc.com/D2068
Reviewed by Andy
llvm-svn: 195064
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This change is incorrect. If you delete virtual destructor of both a base class
and a subclass, then the following code:
  Base *foo = new Child();
  delete foo;
will not cause the destructor for members of Child class. As a result, I observe
plently of memory leaks. Notable examples I investigated are:
ObjectBuffer and ObjectBufferStream, AttributeImpl and StringSAttributeImpl.
llvm-svn: 194997
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This patch removes most of the trivial cases of weak vtables by pinning them to
a single object file.
Differential Revision: http://llvm-reviews.chandlerc.com/D2068
Reviewed by Andy
llvm-svn: 194865
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by Keno Fischer!
llvm-svn: 194859
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Summary: Make identify_magic to recognize COFF import file.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2165
llvm-svn: 194852
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by James Lyon!
llvm-svn: 194832
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
ExecutionEngine.
Patch by Dale Martin!
llvm-svn: 194831
 | 
| | 
| 
| 
|  | 
llvm-svn: 194808
 | 
| | 
| 
| 
| 
| 
|  | 
RuntimeDyldImpl::resolveExternalSymbols
llvm-svn: 194415
 | 
| | 
| 
| 
|  | 
llvm-svn: 193402
 | 
| | 
| 
| 
|  | 
llvm-svn: 193324
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Without this, customers of the MCJIT were leaking memory like crazy.
It's not really clear what the *right* memory management is here, so I'm
not trying to add lots of tests or other logic, just trying to get us
back to a better baseline. I'll follow up on the original commit to
figure out the right path forward.
llvm-svn: 193323
 | 
| | 
| 
| 
| 
| 
|  | 
Patch co-developed with Yaron Keren.
llvm-svn: 193291
 | 
| | 
| 
| 
|  | 
llvm-svn: 193131
 | 
| | 
| 
| 
|  | 
llvm-svn: 193094
 | 
| | 
| 
| 
|  | 
llvm-svn: 193034
 | 
| | 
| 
| 
|  | 
llvm-svn: 193033
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by Dmitry Stogov
llvm-svn: 192809
 | 
| | 
| 
| 
|  | 
llvm-svn: 192773
 | 
| | 
| 
| 
|  | 
llvm-svn: 192756
 | 
| | 
| 
| 
|  | 
llvm-svn: 192754
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by Yaron Keren
llvm-svn: 192753
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Some background: One can pass compiled resource files (.res files) directly
to the linker on Windows. If a resource file is given, the linker will run
"cvtres" command in background to convert the resource file to a COFF file
to link it.
What I'm trying to do with this patch is to make the linker to recognize
the resource file by file magic, so that it can run cvtres command.
Differential Revision: http://llvm-reviews.chandlerc.com/D1943
llvm-svn: 192742
 | 
| | 
| 
| 
|  | 
llvm-svn: 192737
 | 
| | 
| 
| 
|  | 
llvm-svn: 192732
 | 
| | 
| 
| 
|  | 
llvm-svn: 192504
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
Support for exception handling in the legacy JIT was removed in r181354 and
this code was dead since then.
Thanks to Yaron Keren for noticing it.
llvm-svn: 192101
 | 
| | 
| 
| 
| 
| 
|  | 
Patch by Ashok Thirumurthi
llvm-svn: 192020
 | 
| | 
| 
| 
|  | 
llvm-svn: 191938
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
APIs, both in C++ and C land.
It's useful for the memory managers that are allocating a section to know what the name of the section is.  
At a minimum, this is useful for low-level debugging - it's customary for JITs to be able to tell you what 
memory they allocated, and as part of any such dump, they should be able to tell you some meta-data about 
what each allocation is for.  This allows clients that supply their own memory managers to do this.  
Additionally, we also envision the SectionName being useful for passing meta-data from within LLVM to an LLVM 
client.
This changes both the C and C++ APIs, and all of the clients of those APIs within LLVM.  I'm assuming that 
it's safe to change the C++ API because that API is allowed to change.  I'm assuming that it's safe to change 
the C API because we haven't shipped the API in a release yet (LLVM 3.3 doesn't include the MCJIT memory 
management C API).
llvm-svn: 191804
 | 
| | 
| 
| 
|  | 
llvm-svn: 191780
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
Tests to follow.
PIC with small code model and  EH frame handling will not work with multiple modules.  There are also some rough edges to be smoothed out for remote target support.
llvm-svn: 191722
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
This makes it consistent with other function pointers used in llvm-c
Differential Revision: http://llvm-reviews.chandlerc.com/D1712
llvm-svn: 191693
 | 
| | 
| 
| 
| 
| 
|  | 
This reverts r191030
llvm-svn: 191075
 | 
| | 
| 
| 
| 
| 
|  | 
Differential Revision: http://llvm-reviews.chandlerc.com/D1715
llvm-svn: 191030
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
undef constatnt for structure and test for these functions.
done by Yuri Veselov (mailto:Yuri.Veselov@intel.com)
llvm-svn: 190599
 | 
| | 
| 
| 
| 
| 
|  | 
+ formatting fixes.
llvm-svn: 190523
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
The work on this project was left in an unfinished and inconsistent state.
Hopefully someone will eventually get a chance to implement this feature, but
in the meantime, it is better to put things back the way the were.  I have
left support in the bitcode reader to handle the case-range bitcode format,
so that we do not lose bitcode compatibility with the llvm 3.3 release.
This reverts the following commits: 155464, 156374, 156377, 156613, 156704,
156757, 156804 156808, 156985, 157046, 157112, 157183, 157315, 157384, 157575,
157576, 157586, 157612, 157810, 157814, 157815, 157880, 157881, 157882, 157884,
157887, 157901, 158979, 157987, 157989, 158986, 158997, 159076, 159101, 159100,
159200, 159201, 159207, 159527, 159532, 159540, 159583, 159618, 159658, 159659,
159660, 159661, 159703, 159704, 160076, 167356, 172025, 186736
llvm-svn: 190328
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
This patch implements vector support for  select instruction and adds specific vector instructions : shuffle and insertelement. (tests are also included)
and functions lle_X_memset, lle_X_memcpy added.
Done by Veselov, Yuri (mailto:Yuri.Veselov@intel.com)
llvm-svn: 189735
 | 
| | 
| 
| 
|  | 
llvm-svn: 189728
 | 
| | 
| 
| 
| 
| 
|  | 
if the target is iOS and Linux.
llvm-svn: 189604
 | 
| | 
| 
| 
| 
| 
|  | 
Thanks to Luca Falavigna for the help and most of the patch.
llvm-svn: 189324
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
Object/MachOFormat.h over to Support/MachO.h."
This reverts commits r189319 and r189315. r189315 broke some tests on what I
believe are big-endian platforms.
llvm-svn: 189321
 | 
| | 
| 
| 
|  | 
llvm-svn: 189315
 |