cd81d94322a39503e4a3e87b6ee03d4fcb3465fb |
21-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update LLVM for rebase to r212749. Includes a cherry-pick of: r212948 - fixes a small issue with atomic calls Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
inkModules.cpp
|
dce4a407a24b04eebc6a376f8e62b41aaa7b071f |
29-May-2014 |
Stephen Hines <srhines@google.com> |
Update LLVM for 3.5 rebase (r209712). Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
inkModules.cpp
|
36b56886974eae4f9c5ebc96befd3e7bfe5de338 |
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Update to LLVM 3.5a. Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
ndroid.mk
inkModules.cpp
|
ce9904c6ea8fd669978a8eefb854b330eb9828ff |
12-Feb-2014 |
Stephen Hines <srhines@google.com> |
Merge remote-tracking branch 'upstream/release_34' into merge-20140211 Conflicts: lib/Linker/LinkModules.cpp lib/Support/Unix/Signals.inc Change-Id: Ia54f291fa5dc828052d2412736e8495c1282aa64
|
999ffb6085a6e24261680b41d4f43ad4ba8fd250 |
09-Nov-2013 |
Adrian Prantl <aprantl@apple.com> |
Revert "Move copying of global initializers below the cloning of functions." This would cause internal symbols that are only referenced by global initializers to be removed. This reverts commit 194219. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194304 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5d5f2c37d57276c9320dd2677d355d47fa4bc5c4 |
07-Nov-2013 |
Bill Wendling <isanbard@gmail.com> |
Move copying of global initializers below the cloning of functions. The BlockAddress doesn't have access to the correct basic blocks until the functions have been cloned. This causes the BlockAddress to point to the old values. Just wait until the functions have been cloned before copying the initializers. PR13163 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194218 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b4a0ba17183e1b4aa385e81e896c2a95671a40b2 |
16-Oct-2013 |
Bill Wendling <isanbard@gmail.com> |
Add a 'deleteModule' method to the Linker class. This deletes the Module ivar instead of having the LTO code generater do it. It also sets the pointer to 'NULL', so that if it's used again it will abort quickly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192778 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e3ba15c794839abe076e3e2bdf6c626396a19d4d |
12-Oct-2013 |
Will Dietz <wdietz2@illinois.edu> |
Add missing #include's to cctype when using isdigit/alpha/etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192519 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1e3037f0be430ef2339838bbdede11f45658bd82 |
16-Sep-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Implement function prefix data as an IR feature. Previous discussion: http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-July/063909.html Differential Revision: http://llvm-reviews.chandlerc.com/D1191 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190773 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9127334dade7fa36cb5cb999fc116ceaa4f52ac9 |
04-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Error on linking appending globals with different unnamed_addr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189950 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6947f10ec467eb89d606bc96450c35864e1b4f10 |
04-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix linking of unnamed_addr in functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189945 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3acfb58b178d25b0671cbfb4fb20194e62b01a98 |
04-Sep-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix linking of unnamed_addr. This was regression from r134829. When linking we have to be conservative. If one of the symbols has a significant address, then the result should have it too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189935 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9151f6474c0c3c696e75a12a605c48f54da4665f |
12-Jun-2013 |
Stephen Hines <srhines@google.com> |
Update LLVM for merge to r183849. s/LLVM_HOSTTRIPLE/LLVM_HOST_TRIPLE Add #include<ctype.h> to LinkModules.cpp for isdigit(). Add missing libLLVMObject to llc dependencies. Android.mk updates: Remove Linker.cpp Remove JITDwarfEmitter.cpp Remove MipsDirectObjLower.cpp Add MCExternalSymbolizer.cpp Add MCRelocationInfo.cpp Add MCSymbolizer.cpp Add ARMMachORelocationInfo.cpp Add Mips16HardFloat.cpp Add MipsOptimizeMathLibCalls.cpp Add X86ELFRelocationInfo.cpp Add X86MachORelocationInfo.cpp Change-Id: I3f3dbc2b62e89ef9e303f5456c6a99f0937f6981
ndroid.mk
inkModules.cpp
|
1878f9a7874b1ff569d745c0269f49d3daf7203d |
12-Jun-2013 |
Stephen Hines <srhines@google.com> |
Merge commit '100fbdd06be7590b23c4707a98cd605bdb519498' into merge_20130612
|
a84a83bbcdfaecadfc6574094272fd3edc429a23 |
28-May-2013 |
James Molloy <james.molloy@arm.com> |
Extend RemapInstruction and friends to take an optional new parameter, a ValueMaterializer. Extend LinkModules to pass a ValueMaterializer to RemapInstruction and friends to lazily create Functions for lazily linked globals. This is a big win when linking small modules with large (mostly unused) library modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182776 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cfb320f5f97717c309832e0f92b97835526977a8 |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix a performance bug in the Linker. Now that we hava a convinient place to keep it, remeber the set of identified structs as we merge modules. This speeds up the linking of all the bitcode files in clang with the gold plugin and -plugin-opt=emit-llvm (i.e., link only, no codegen) from 5:25 minutes to 13.6 seconds! Patch by Xiaofei Wan! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181104 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2e013028f2dd99527044d50808a44ae89d6ba537 |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Implement Linker::LinkModules with Linker::linkInModule. Flipping which one is the implementation will let us optimize linkInModule. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181102 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c7c35a9b8692ca7ac7a6b4b3f46ddb234ae159c7 |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Now that Linker.cpp is almost empty, merge it into LinkModules.cpp. Also remove unused includes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181100 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
inkModules.cpp
inker.cpp
|
fca88631650af3e862f7df012f34d9c724a9ed7c |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Last batch of cleanups to Linker.h. Update comments, fix * placement, fix method names that are not used in clang, add a linkInModule that takes a Mode and put it in Linker.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181099 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
105193772d84057493968310c1d1c6dd0f1ae735 |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't construct or delete a module on the Linker. The linker is now responsible only for actually linking the modules, it is up to the clients to create and destroy them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181098 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
bcc6ac93bae207431efff90dfb3e741ffdf11469 |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't store the context in the Linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181097 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
ae8f1f3fde1d9618bfcf8f629ffd68c26015f921 |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove unused members and constructor arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181096 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
e6315cd32b4983c1c1ab900c3e28fdfc4b5d003e |
04-May-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Delete dead code from the linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181094 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
38578c4919ea18ceb27e29988b2d857afe6215bf |
03-May-2013 |
Stephen Hines <srhines@google.com> |
Merge remote-tracking branch 'upstream/master' into merge-20130502 Conflicts: lib/Support/Unix/Signals.inc unittests/Transforms/Utils/Cloning.cpp Change-Id: I027581a4390ec3ce4cd8d33da8b5f4c0c7d372c8
|
40be1e85665d10f5444186f0e7106e368dd735b8 |
01-May-2013 |
Filip Pizlo <fpizlo@apple.com> |
This patch breaks up Wrap.h so that it does not have to include all of the things, and renames it to CBindingWrapping.h. I also moved CBindingWrapping.h into Support/. This new file just contains the macros for defining different wrap/unwrap methods. The calls to those macros, as well as any custom wrap/unwrap definitions (like for array of Values for example), are put into corresponding C++ headers. Doing this required some #include surgery, since some .cpp files relied on the fact that including Wrap.h implicitly caused the inclusion of a bunch of other things. This also now means that the C++ headers will include their corresponding C API headers; for example Value.h must include llvm-c/Core.h. I think this is harmless, since the C API headers contain just external function declarations and some C types, so I don't believe there should be any nasty dependency issues here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180881 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3e39731e88f2d4f597cebc74388fd6650ca4f604 |
23-Apr-2013 |
Eric Christopher <echristo@gmail.com> |
Move C++ code out of the C headers and into either C++ headers or the C++ files themselves. This enables people to use just a C compiler to interoperate with LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180063 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d99a29e9847815d628791e246dbdd50c6371c43d |
27-Mar-2013 |
Bill Wendling <isanbard@gmail.com> |
Specutively revert r178130. This may be causing a failure on some buildbots: Referencing function in another module! tail call fastcc void @_ZL11EvaluateOpstPtRj(i16 zeroext %17, i16* %Vals, i32* %NumVals), !dbg !219 Referencing function in another module! tail call fastcc void @_ZL11EvaluateOpstPtRj(i16 zeroext %19, i16* %Vals, i32* %NumVals), !dbg !221 Broken module found, compilation aborted! Stack dump: 0. Running pass 'Function Pass Manager' on module 'ld-temp.o'. 1. Running pass 'Module Verifier' on function '@_ZL11EvaluateOpstPtRj' clang: error: unable to execute command: Illegal instruction: 4 clang: error: linker command failed due to signal (use -v to see invocation) <rdar://problem/13516485> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178156 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cfe99ef9dc734f29d4bab3cc1b91a64add4500c9 |
27-Mar-2013 |
James Molloy <james.molloy@arm.com> |
Improve performance of LinkModules when linking with modules with large numbers of functions which link lazily. Instead of creating and destroying function prototypes irrespective of if they are used, only create them if they are used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178130 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
58890d52eb6f9ba44e70c8fc651201f1d429489e |
19-Mar-2013 |
Eli Bendersky <eliben@google.com> |
The Linker interface has some dead code after the cleanup in r172749 (and possibly others). The attached patch removes it, and tries to update comments accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177406 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
inker.cpp
|
2d4629c5d7dcc6582fa7b85a517744f1a3654eba |
19-Mar-2013 |
Stephen Hines <srhines@google.com> |
Merge branch 'upstream' into merge_2013_03_18
|
d25c05efd55fe190a50965b31e04db69bd8e19de |
08-Mar-2013 |
Eli Bendersky <eliben@google.com> |
Clean up out-of-date comments and some stray whitespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176729 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2123c1c0de9e6006dfffe9123b4b992703202e3e |
06-Mar-2013 |
Stephen Hines <srhines@google.com> |
Update build rules for LLVM merge to version 176139. Change-Id: Ibb71ad9a6a2ed05dbf87f249ac42b1355e3fa41a
ndroid.mk
|
5adb136be579e8fff3734461580cb34d1d2983b8 |
06-Mar-2013 |
Stephen Hines <srhines@google.com> |
Merge commit 'b3201c5cf1e183d840f7c99ff779d57f1549d8e5' into merge_20130226 Conflicts: include/llvm/Support/ELF.h lib/Support/DeltaAlgorithm.cpp Change-Id: I24a4fbce62eb39d924efee3c687b55e1e17b30cd
|
87d0b9ed1462705dd9bf1cb7f67d0bf03af776c8 |
12-Feb-2013 |
Guy Benyei <guy.benyei@intel.com> |
Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175006 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
059800f9e3fee2852672f846d91a2da14da7783a |
21-Jan-2013 |
Stephen Hines <srhines@google.com> |
Merge remote-tracking branch 'upstream/master' into merge-llvm Conflicts: lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp lib/MC/MCAssembler.cpp lib/Support/Atomic.cpp lib/Support/Memory.cpp lib/Target/ARM/ARMJITInfo.cpp Change-Id: Ib339baf88df5b04870c8df1bedcfe1f877ccab8d
|
92d8cc636266042470532449bb1f83fb743111cd |
18-Jan-2013 |
Daniel Dunbar <daniel@zuster.org> |
[Linker] Kill Linker::LoadObject which is dead, and drop the BitReader dependency again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172838 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
inker.cpp
|
8d3c9014f922048fcb2e1f1db2150ea9f0a118ad |
18-Jan-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
The IR linker still depends on the bitcode reader. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172824 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
|
1381b9b68cef50ee43dfa684203752c50747c7eb |
17-Jan-2013 |
Daniel Dunbar <daniel@zuster.org> |
[Linker] Drop some now-dead component dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172759 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
|
634bd8512a6576f9426713b72ce98904d159fd8a |
17-Jan-2013 |
Daniel Dunbar <daniel@zuster.org> |
[Linker] Drop support for IR-level extended linking support (archives, etc.). - This code is dead, and the "right" way to get this support is to use the platform-specific linker-integrated LTO mechanisms, or the forthcoming LLVM linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172749 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
inkArchives.cpp
inkItems.cpp
inker.cpp
|
5db391c67d0922f4ab2ba57c07def19759c801a4 |
16-Jan-2013 |
Daniel Dunbar <daniel@zuster.org> |
[IR] Add 'Append' and 'AppendUnique' module flag behaviors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172659 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1e08165ae9ee3a7b654d9030bc5c86333fe6673f |
16-Jan-2013 |
Daniel Dunbar <daniel@zuster.org> |
[Linker] Change module flag linking to be more extensible. - Instead of computing a bunch of buckets of different flag types, just do an incremental link resolving conflicts as they arise. - This also has the advantage of making the link result deterministic and not dependent on map iteration order. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172634 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3d69041abe8a9833e78f645f0d4d7b95b802e3c4 |
15-Jan-2013 |
Daniel Dunbar <daniel@zuster.org> |
[Linker] Drop asserts that are embedded in cast<> and now checked by the verifier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172550 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2b8f6ae6b791099ceff8ad87bcca7f165655c5c7 |
10-Jan-2013 |
Joey Gouly <joey.gouly@arm.com> |
Fix a copy/paste error in the IR Linker, casting an ArrayType instead of a VectorType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172054 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4068e1af9ff68b6b5fdb3233f1304e53f1bf179a |
07-Jan-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Move TypeFinder.h into the IR tree, it clearly belongs with the IR library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171749 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0b8c9a80f20772c3793201ab5b251d3520b9cea3 |
02-Jan-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Move all of the header files which are involved in modelling the LLVM IR into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171366 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
d04a8d4b33ff316ca4cf961e06c9e312eff8e64f |
03-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Use the new script to sort the includes of every file under lib. Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
efd08d413c077956478fbde90fd65aa6f179bb39 |
27-Nov-2012 |
Bill Wendling <isanbard@gmail.com> |
Remove the dependent libraries feature. The dependent libraries feature was never used and has bit-rotted. Remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168694 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkModules.cpp
|
31675153bd2d7617db8cb6aeb58054934c7b9f73 |
24-Aug-2012 |
Stephen Hines <srhines@google.com> |
Merge branch 'upstream' into merge_2 Conflicts: lib/Target/ARM/ARMCodeEmitter.cpp Change-Id: I6702d340c733e9721499b5d85b13b96ad9c14eb5
|
7744acd1ab73b3eec6f1449f47083abe3fb1b527 |
03-Aug-2012 |
Shih-wei Liao <sliao@google.com> |
Merge with LLVM upstream r160668 (Jul 24th 2012) Conflicts: include/llvm/Support/ELF.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Support/Memory.cpp lib/Transforms/Instrumentation/AddressSanitizer.cpp Change-Id: Iddd658cf2eadc7165b2805b446d31af2c5c9917f
|
573e97326766359d3a9747eed7b7d47b6c33fa0f |
03-Aug-2012 |
Bill Wendling <isanbard@gmail.com> |
Move the "findUsedStructTypes" functionality outside of the Module class. The "findUsedStructTypes" method is very expensive to run. It needs to be optimized so that LTO can run faster. Splitting this method out of the Module class will help this occur. For instance, it can keep a list of seen objects so that it doesn't process them over and over again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161228 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ce718ff9f42c7da092eaa01dd0242e8d5ba84713 |
23-Jun-2012 |
Hans Wennborg <hans@hanshq.net> |
Extend the IL for selecting TLS models (PR9788) This allows the user/front-end to specify a model that is better than what LLVM would choose by default. For example, a variable might be declared as @x = thread_local(initialexec) global i32 42 if it will not be used in a shared library that is dlopen'ed. If the specified model isn't supported by the target, or if LLVM can make a better choice, a different model may be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159077 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f24fde20c8d6db5a52b50a010e831c9159d3fec7 |
09-May-2012 |
Bill Wendling <isanbard@gmail.com> |
Supply a C interface to the "LinkModules" method. Patch by Andrew Wilkins! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156469 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cf5a1461acaace0f3e7d11fbbcfbf635b8c8ea9d |
24-Apr-2012 |
Shih-wei Liao <sliao@google.com> |
Merge with LLVM upstream r155090. Conflicts: lib/Support/Unix/PathV2.inc Change-Id: I7b89833849f6cbcfa958a33a971d0f7754c9cb2c
|
d46575f1908b1fb9950e610a1f36733893ad44b1 |
22-Apr-2012 |
Bill Wendling <isanbard@gmail.com> |
Add a flag to the struct type finder to collect only those types which have names. This saves collecting types we normally don't care about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155300 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a20689fd7e7fa095276491ff238f248339d28800 |
24-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
It's possible for two types, which are isomorphic, to be added to the destination module, but one of them isn't used in the destination module. If another module comes along and the uses the unused type, there could be type conflicts when the modules are finally linked together. (This happened when building LLVM.) The test that was reduced is: Module A: %Z = type { %A } %A = type { %B.1, [7 x x86_fp80] } %B.1 = type { %C } %C = type { i8* } declare void @func_x(%C*, i64, i64) declare void @func_z(%Z* nocapture) Module B: %B = type { %C.1 } %C.1 = type { i8* } %A.2 = type { %B.3, [5 x x86_fp80] } %B.3 = type { %C.1 } define void @func_z() { %x = alloca %A.2, align 16 %y = getelementptr inbounds %A.2* %x, i64 0, i32 0, i32 0 call void @func_x(%C.1* %y, i64 37, i64 927) nounwind ret void } declare void @func_x(%C.1*, i64, i64) declare void @func_y(%B* nocapture) (Unfortunately, this test doesn't fail under llvm-link, only during an LTO linking.) The '%C' and '%C.1' clash. The destination module gets the '%C' declaration. When merging Module B, it looks at the '%C.1' subtype of the '%B' structure. It adds that in, because that's cool. And when '%B.3' is processed, it uses the '%C.1'. But the '%B' has used '%C' and we prefer to use '%C'. So the '@func_x' type is changed to 'void (%C*, i64, i64)', but the type of '%x' in '@func_z' remains '%A.2'. The GEP resolves to a '%C.1', which conflicts with the '@func_x' signature. We can resolve this situation by making sure that the type is used in the destination before saying that it should be used in the module being merged in. With this fix, LLVM and Clang both compile under LTO. <rdar://problem/10913281> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153351 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
208b6f69441293d27b61b9d16a69c9bba4d097cb |
23-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Ignore the last message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153315 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b22a166796afd06c2ccea8838220dbbe3644de81 |
23-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Revert patch. It broke the build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153314 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
12d9a9002f9fba3ea42225b8daf4f9feda52726d |
23-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Dematerialize the source functions after we're done with them. This saves a bit of memory during LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153313 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ee5a53d21eec151688376f158d5ae6832bbd1d96 |
22-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Some whitespace and comment cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153278 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6d6c6d7d2ce42af78ffa4e84a30f14e4404f5985 |
22-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Remove unneeded #ifdefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153277 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cd7193fbce32e8ed3a63e8b76672cdf9956891ca |
22-Mar-2012 |
Bill Wendling <isanbard@gmail.com> |
Add a 'dump' method to the type map. Doxygenify some of the comments and add a few comments where none existed before. Also change a function's name to match the current coding standard. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153276 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c02a5c5e8d9c1fd2a20ad4aed40f328564e95b40 |
05-Mar-2012 |
Stephen Hines <srhines@google.com> |
Merge branch 'upstream' into merge-20120305 Conflicts: lib/Support/Atomic.cpp Change-Id: I563b3bc2a82942ccbae5bed42e53b9149a8bf3a0
|
0aaf2f63699f4c99a940abf81c4c9d912fa54356 |
03-Mar-2012 |
Duncan Sands <baldrick@free.fr> |
Include cctype for isdigit. Patch by Stephen Hines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151973 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
601c094734cc5920a4e937c74447dd6922770a2d |
28-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Oops...Don't commit the other stuff.. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151618 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cb8a7ed16b905665f001a90ff15a52119aaa2bef |
28-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Modify comment to reflect the importance of this code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151617 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
348e5e763e1297870878c5cb11aadfab2e8e5e7a |
28-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Add back removed code. It still causes LLVM to miscompile. But not having it breaks other things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151594 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e9142f035d7452b502b20915b2538b8b50fb9414 |
27-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Don't use #if 0. Just remove until I can address this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151580 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c68d127b2c5a233c5e3f9dd59ca4ab335419d9dd |
27-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
The code that cleans up multiple, isomorphic types has a subtle error that manifests itself when building LLVM with LTO. <rdar://problem/10913281> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151576 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
75b3d6886762bbbc9e1805793222c29cb39fbd2f |
14-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Capitalize messages so that they appear nicely with the linker's error messages. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150466 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d34cb1e09f5e4b3feb7305346655b83ad2f67773 |
11-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
[WIP] Initial code for module flags. Module flags are key-value pairs associated with the module. They include a 'behavior' value, indicating how module flags react when mergine two files. Normally, it's just the union of the two module flags. But if two module flags have the same key, then the resulting flags are dictated by the behaviors. Allowable behaviors are: Error Emits an error if two values disagree. Warning Emits a warning if two values disagree. Require Emits an error when the specified value is not present or doesn't have the specified value. It is an error for two (or more) llvm.module.flags with the same ID to have the Require behavior but different values. There may be multiple Require flags per ID. Override Uses the specified value if the two values disagree. It is an error for two (or more) llvm.module.flags with the same ID to have the Override behavior but different values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150300 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
858143816d43e58b17bfd11cb1b57afbd7f0f893 |
07-Feb-2012 |
Craig Topper <craig.topper@gmail.com> |
Convert assert(0) to llvm_unreachable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149967 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a1f00f4d488eb5daff52faaf99c62ee652fd3b85 |
25-Jan-2012 |
Chris Lattner <sabre@nondot.org> |
use Constant::getAggregateElement to simplify a bunch of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148934 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc |
24-Jan-2012 |
Chris Lattner <sabre@nondot.org> |
add more support for ConstantDataSequential git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148802 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
603d6b56a2b72358e7b599aab743beb44823d76c |
23-Jan-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
The iteration order over a std::set<Module*> depends on the addresses of the modules. Avoid that to make the order the linker sees the modules deterministic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148676 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
3ed8815541d2118728a91bbd5bee054fbcfba71f |
06-Jan-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Link symbols with different visibilities according to the rules in the System V Application Binary Interface. This lets us use -fvisibility-inlines-hidden with LTO. Fixes PR11697. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147624 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d24397a9319a41e80169f572ad274a711f41d64e |
23-Dec-2011 |
Mon P Wang <wangmp@apple.com> |
When not destroying the source, the linker is not remapping the types. Added support to CloneFunctionInto to allow remapping for this case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147217 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9421406aada374f79ce2f8e576824463f7830981 |
23-Dec-2011 |
Dylan Noblesmith <nobled@dreamwidth.org> |
drop unneeded config.h includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147197 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inker.cpp
|
1a31f3b90c012b067f8509546e1e037051e6482d |
21-Dec-2011 |
Chris Lattner <sabre@nondot.org> |
Fix a nasty bug in the type remapping stuff that I added that is breaking kc++ on the build bot in some cases. The basic issue happens when a source module contains both a "%foo" type and a "%foo.42" type. It will see the later one, check to see if the destination module contains a "%foo" type, and it will return true... because both the source and destination modules are in the same LLVMContext. We don't want to map source types to other source types, so don't do the remapping if the mapped type came from the source module. Unfortunately, I've been unable to reduce a decent testcase for this, kc++ is pretty great that way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147010 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ea93373a0a1bf1d087f5414e566384c2af3ebf09 |
20-Dec-2011 |
Chris Lattner <sabre@nondot.org> |
Now that PR11464 is fixed, reapply the patch to fix PR11464, merging types by name when we can. We still don't guarantee type name linkage but we do it when obviously the right thing to do. This makes LTO type names easier to read, for example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146932 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
68910509fdd638727ce2f244ab7c0e4346671de1 |
20-Dec-2011 |
Chris Lattner <sabre@nondot.org> |
fix PR11464 by preventing the linker from mapping two different struct types from the source module onto the same opaque destination type. An opaque type can only be resolved to one thing or another after all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146929 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2e6119429fc521cddd7dde4f8f237ab0ec5ceb06 |
17-Dec-2011 |
Chad Rosier <mcrosier@apple.com> |
Revert 146728 as it's causing failures on some of the external bots as well as internal nightly testers. Original commit message: By popular demand, link up types by name if they are isomorphic and one is an autorenamed version of the other. This makes the IR easier to read, because we don't end up with random renamed versions of the types after LTO'ing a large app. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146838 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9646acfccfae3e5dd4fc18bbb14b0a5c9cc9563e |
16-Dec-2011 |
Chris Lattner <sabre@nondot.org> |
By popular demand, link up types by name if they are isomorphic and one is an autorenamed version of the other. This makes the IR easier to read, because we don't end up with random renamed versions of the types after LTO'ing a large app. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146728 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a1e6e241a813f81be2d2f36ab60c950ca297574b |
16-Dec-2011 |
Logan Chien <loganchien@google.com> |
Merge with LLVM upstream r146714 (Dec 16th 2011) Change-Id: Ied458adb08bf9a69250cbcee9b14b44d17e8701a
|
4ab406d7fc06b1272d02cd8be46f0c5ebe51a3da |
12-Dec-2011 |
Daniel Dunbar <daniel@zuster.org> |
LLVMBuild: Remove trailing newline, which irked me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146409 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
|
d782bae970e888572f0458ac05369bbd7752f05a |
29-Nov-2011 |
Daniel Dunbar <daniel@zuster.org> |
build/CMake: Finish removal of add_llvm_library_dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145420 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
00ade8bab0045bde35b13d2489021b8642aeb0cc |
03-Nov-2011 |
Daniel Dunbar <daniel@zuster.org> |
build: Add initial cut at LLVMBuild.txt files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143634 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
|
1a1d485363e82e2d5f2442b2abcc1cc204ca58cf |
02-Nov-2011 |
Tanya Lattner <tonic@nondot.org> |
Add support to the linker to lazily link in functions. This change only links functions marked with specific linkage (internal, private, linker_private, linker_private_weak, linker_private_weak_def_auto, linkonce, linkonce_odr, and available_externally) if they have uses in the destination module. Instead of automatically linking, these functions are placed onto a worklist to be processed in the final stage of linking. We iterate over the list and if any functions on the list have uses in the destination module, we link them in and repeat the process until no changes in the state (uses) has changed. This means that any functions in the LazilyLink worklist that have a use in the destination module will be linked in and none that don't. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143524 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
20eb19aed8f8802776c98537f6164db97115c707 |
30-Oct-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Teach ModuleLinker::getLinkageResult about materialisable functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a3a2dfd4a2a8265a9a0c962cb776e2e6ba123956 |
03-Nov-2011 |
Daniel Dunbar <daniel@zuster.org> |
build: Add initial cut at LLVMBuild.txt files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143634 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
|
9af37a3de8c8688adae383471379f0216287ce28 |
02-Nov-2011 |
Tanya Lattner <tonic@nondot.org> |
Add support to the linker to lazily link in functions. This change only links functions marked with specific linkage (internal, private, linker_private, linker_private_weak, linker_private_weak_def_auto, linkonce, linkonce_odr, and available_externally) if they have uses in the destination module. Instead of automatically linking, these functions are placed onto a worklist to be processed in the final stage of linking. We iterate over the list and if any functions on the list have uses in the destination module, we link them in and repeat the process until no changes in the state (uses) has changed. This means that any functions in the LazilyLink worklist that have a use in the destination module will be linked in and none that don't. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143524 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8895316d0489e2353c0dce289b49f5cdd41085d7 |
30-Oct-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
Teach ModuleLinker::getLinkageResult about materialisable functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2e5a5ee613fae456a8ed4282acede56860682f4f |
21-Oct-2011 |
Logan Chien <loganchien@google.com> |
Apply changes to migrate to upstream Oct 20th 2011. Change-Id: I2bb819151f3fa5ce18690ef373bf071205d3f278
ndroid.mk
|
0ebc07a576037e4e36f68bf5cece32740ca120c0 |
19-Oct-2011 |
Logan Chien <loganchien@google.com> |
Merge with LLVM upstream 2011/10/20 (r142530) Conflicts: lib/Support/Unix/Host.inc Change-Id: Idc00db3b63912dca6348bddd9f8a1af2a8d5d147
|
2b28a74bc69e33eedc60f438e4fe9ef9ae606f3c |
15-Oct-2011 |
Tanya Lattner <tonic@nondot.org> |
Allow the source module to be materialized during the linking process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142010 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f1f1a4f16128ffa2910f0b1d5c7052b3697f9fcd |
11-Oct-2011 |
Tanya Lattner <tonic@nondot.org> |
Make it possible to use the linker without destroying the source module. This is so the source module can be linked to multiple other destination modules. For all that used LinkModules() before, they will continue to destroy the source module as before. This line, and those below, will be ignored-- M include/llvm/Linker.h M tools/bugpoint/Miscompilation.cpp M tools/bugpoint/BugDriver.cpp M tools/llvm-link/llvm-link.cpp M lib/Linker/LinkModules.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141606 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5f2318e06549c0ec2bf21b3ce4690921f4a2422b |
21-Sep-2011 |
Ivan Krasin <krasin@chromium.org> |
lib/Linker: add support of deps which does not end with ".so". It happens (for example) when you want to have a dependency on the .so with the specific version, like liblzma.so.1.0.0 or libcrypto.so.0.9.8. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140201 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
1bcbf8582e94eee6f151e5e2db2d04f417abf5f7 |
12-Aug-2011 |
Chris Lattner <sabre@nondot.org> |
switch to the new struct api. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137482 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
211da8f7a96e26cc8d53a0c2ea34f6b791513021 |
04-Aug-2011 |
Devang Patel <dpatel@apple.com> |
Linke NamedMDNodes after linking global values as comment suggests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136909 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ac03e736c77bcf7e8deb515fc16a7e55d343dc8d |
29-Jul-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Rewrite the CMake build to use explicit dependencies between libraries, specified in the same file that the library itself is created. This is more idiomatic for CMake builds, and also allows us to correctly specify dependencies that are missed due to bugs in the GenLibDeps perl script, or change from compiler to compiler. On Linux, this returns CMake to a place where it can relably rebuild several targets of LLVM. I have tried not to change the dependencies from the ones in the current auto-generated file. The only places I've really diverged are in places where I was seeing link failures, and added a dependency. The goal of this patch is not to start changing the dependencies, merely to move them into the correct location, and an explicit form that we can control and change when necessary. This also removes a serialization point in the build because we don't have to scan all the libraries before we begin building various tools. We no longer have a step of the build that regenerates a file inside the source tree. A few other associated cleanups fall out of this. This isn't really finished yet though. After talking to dgregor he urged switching to a single CMake macro to construct libraries with both sources and dependencies in the arguments. Migrating from the two macros to that style will be a follow-up patch. Also, llvm-config is still generated with GenLibDeps.pl, which means it still has slightly buggy dependencies. The internal CMake 'llvm-config-like' macro uses the correct explicitly specified dependencies however. A future patch will switch llvm-config generation (when using CMake) to be based on these deps as well. This may well break Windows. I'm getting a machine set up now to dig into any failures there. If anyone can chime in with problems they see or ideas of how to solve them for Windows, much appreciated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136433 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
ebf5f0962932032481ae306b42c96c68c3a0be95 |
20-Jul-2011 |
Logan Chien <loganchien@google.com> |
Merge with LLVM upstream r135568 (Jul 20th 2011) Conflicts: lib/Bitcode/Reader/BitcodeReader.cpp Change-Id: Iebed76d2f7d281e742947e31d9a0b78174daf2d6
|
39b5abf507b43da6b92f68b86406e0015ead18e9 |
18-Jul-2011 |
Frits van Bommel <fvbommel@gmail.com> |
Migrate LLVM and Clang to use the new makeArrayRef(...) functions where previously explicit non-default constructors were used. Mostly mechanical with some manual reformatting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135390 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a71642b2a4944eaa269d881cf71b02b8e8fe5638 |
16-Jul-2011 |
Nowar Gu <nowar100@gmail.com> |
Merge upstream to r135343 at Sat. 16th July 2011.
|
2959ebd14d1f98095678ae6bd8bb52ee456313cd |
15-Jul-2011 |
Devang Patel <dpatel@apple.com> |
Link NamedMDNode before linking function bodies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135204 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f84c59d1100af416a70e475eb25741e27f3bb832 |
14-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
simplify this logic now that GlobalAlias::isDeclaration is fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135183 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1afcace3a3a138b1b18e5c6270caa8dae2261ae2 |
09-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
Land the long talked about "type system rewrite" patch. This patch brings numerous advantages to LLVM. One way to look at it is through diffstat: 109 files changed, 3005 insertions(+), 5906 deletions(-) Removing almost 3K lines of code is a good thing. Other advantages include: 1. Value::getType() is a simple load that can be CSE'd, not a mutating union-find operation. 2. Types a uniqued and never move once created, defining away PATypeHolder. 3. Structs can be "named" now, and their name is part of the identity that uniques them. This means that the compiler doesn't merge them structurally which makes the IR much less confusing. 4. Now that there is no way to get a cycle in a type graph without a named struct type, "upreferences" go away. 5. Type refinement is completely gone, which should make LTO much MUCH faster in some common cases with C++ code. 6. Types are now generally immutable, so we can use "Type *" instead "const Type *" everywhere. Downsides of this patch are that it removes some functions from the C API, so people using those will have to upgrade to (not yet added) new API. "LLVM 3.0" is the right time to do this. There are still some cleanups pending after this, this patch is large enough as-is. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134829 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8feda7ee332f1f91e4d3a42d9f7ad729012ed174 |
09-Apr-2011 |
Jush Lu <jush.msn@gmail.com> |
Merge upstream r129128
|
87fa8d12b49621a28ca0bda7a480531608df80c8 |
30-Mar-2011 |
Bill Wendling <isanbard@gmail.com> |
Set the unnamed_addr only when we're creating a new GV in the dest module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128507 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5f49c296127d41636a3b0466d64684c7c46ef45d |
30-Mar-2011 |
Bill Wendling <isanbard@gmail.com> |
Revert r128501. It caused test failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128506 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
75c7563f834b06cfc71ef53bd4c37e58d2d96ff6 |
30-Mar-2011 |
Bill Wendling <isanbard@gmail.com> |
We need to copy over the unnamed_addr attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128501 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b5530586d68bd25831a6796b5d3199cb0769a35c |
09-Mar-2011 |
Jush Lu <jush.msn@gmail.com> |
Merge upstream r127116
|
4d03e416be8cf1f0f502118826b7cbaeec0b79b2 |
28-Feb-2011 |
jush <jush.msn@gmail.com> |
Merge LLVM upstream r119309 into honey
|
4e93885bab8c3738fdad3286e99dc147157218e8 |
01-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Correctly merge available_externally and regular definitions when they have different visibilities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124650 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ba7c38c36adb65d66c129270b2813fd2167488ed |
15-Jan-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Allow unnamed_addr on declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123529 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c2a94da3134fcd5745f1b852af6b4ade7b57b4d3 |
13-Jan-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Keep unnamed_addr when linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123364 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b5fa5fcecc97168a72c9533c84cf297c018b957c |
08-Jan-2011 |
Chris Lattner <sabre@nondot.org> |
Revamp the ValueMapper interfaces in a couple ways: 1. Take a flags argument instead of a bool. This makes it more clear to the reader what it is used for. 2. Add a flag that says that "remapping a value not in the map is ok". 3. Reimplement MapValue to share a bunch of code and be a lot more efficient. For lookup failures, don't drop null values into the map. 4. Using the new flag a bunch of code can vaporize in LinkModules and LoopUnswitch, kill it. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123058 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a797ee0210902669833720f9df7c3be5e58c1401 |
30-Dec-2010 |
Chris Lattner <sabre@nondot.org> |
include the module identifier when emitting this warning, PR8865. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122637 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c7bad7760609845377d7612a41df5529e01a39b3 |
30-Dec-2010 |
Chris Lattner <sabre@nondot.org> |
print the right string, thanks for Frits for noticing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122636 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e0f6db369d09e15f752618b2346642ee65bf7b3d |
29-Dec-2010 |
Chris Lattner <sabre@nondot.org> |
improve warning message to at least say what the triples are. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122632 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
79e86252208848020e0b13d77b8c6918e92b8328 |
18-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122158 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
738550910156b5cefdc0c12923ec8cc6982fb26f |
18-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Support/PathV1: Deprecate get{Basename,Dirname,Suffix}. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122157 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fffa8635361639acadb78089c5b9b445c0aa1d30 |
18-Dec-2010 |
Owen Anderson <resistor@mac.com> |
Revert r122143 through r122140, which collectively broke the LLVMC tests on the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122149 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1d6e7d2e42e5e445cd6fcfa669388cdd03b3ea15 |
18-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122142 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b9c767cce502f016a5bdb07884625a3fffbe048c |
18-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Support/PathV1: Deprecate get{Basename,Dirname,Suffix}. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122141 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3ff9563c3e391954b2e224afcf8b2b0fcc3888aa |
16-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
333fb04506233255f10d8095c9e2de5e5f0fdc6f |
09-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
1f6efa3996dd1929fbc129203ce5009b620e6969 |
29-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Merge System into Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkModules.cpp
inker.cpp
|
edf2613d22053ae5aa717dfad86bf317ff9f42d6 |
02-Nov-2010 |
Mikhail Glushenkov <foldr@codedgers.com> |
GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT. This allows using GetDLLSuffix() with appendSuffix(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118051 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
c8aef4b2ea23f7da3668f35872ee5bd8df28bcc0 |
02-Nov-2010 |
Mikhail Glushenkov <foldr@codedgers.com> |
GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT. This allows using GetDLLSuffix() with appendSuffix(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118051 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
ae5182f220931621b060977297098a49d7752d1c |
02-Nov-2010 |
Mikhail Glushenkov <foldr@codedgers.com> |
Trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118050 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
572ec1f3c0fd2386ce8a7dbeb7c15b3ac8ab1878 |
02-Nov-2010 |
Mikhail Glushenkov <foldr@codedgers.com> |
Trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118050 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
9ebeb69b21c795d0c9f513eb40758624d56a6cfe |
22-Oct-2010 |
Zonr Chang <zonr@google.com> |
Add target build of libLLVMLinker. Adding LOCAL_MODULE_TAGS := optional, for it to pass the tag checking. This increase ~24KB on libbcc.so. Change-Id: I3dcfeb3aa843d597050663752caacf7545e09ff0
ndroid.mk
|
333968455038eb38fa5cb53839fd67897f092f92 |
19-Oct-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix PR8300 by remembering to keep the bitcast in all cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116788 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
19785995f60c6980677888985884d65dc8975b44 |
19-Oct-2010 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix PR8300 by remembering to keep the bitcast in all cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116788 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a360ddc2b3d8c82b8422b94cbc6f8377a565b2f9 |
06-Oct-2010 |
Bill Wendling <isanbard@gmail.com> |
Revert "RequiresUnique" patch. This should be handled at a lower level. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115827 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
933f9bdb00a8fe48833c4ea3ded20a6a90c405b0 |
06-Oct-2010 |
Bill Wendling <isanbard@gmail.com> |
Revert "RequiresUnique" patch. This should be handled at a lower level. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115827 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e7bf7a565fe7b72ea3b18ed03b199ee4ad9e4518 |
06-Oct-2010 |
Bill Wendling <isanbard@gmail.com> |
Change RequiresMerge to RequiresUnique. It's a better description of what this fix is trying to accomplish. This code could still use some polishing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115759 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c7a012e581ad11b2464afa71f43e32fc79f143c9 |
06-Oct-2010 |
Bill Wendling <isanbard@gmail.com> |
Change RequiresMerge to RequiresUnique. It's a better description of what this fix is trying to accomplish. This code could still use some polishing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115759 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bfcc3ddb9b73b8ea9eca8b3b4e086aee44818f10 |
06-Oct-2010 |
Bill Wendling <isanbard@gmail.com> |
If the destination module all ready has a copy of the global coming from the source module *and* it must be merged (instead of simply replaced or appended to), then merge instead of replacing or adding another global. The ObjC __image_info section was being appended to because of this failure. This caused a crash because the linker expects the image info section to be a specific size. <rdar://problem/8198537> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115753 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7f5124829ffcf75f598b024ec40cc83753eb72d4 |
06-Oct-2010 |
Bill Wendling <isanbard@gmail.com> |
If the destination module all ready has a copy of the global coming from the source module *and* it must be merged (instead of simply replaced or appended to), then merge instead of replacing or adding another global. The ObjC __image_info section was being appended to because of this failure. This caused a crash because the linker expects the image info section to be a specific size. <rdar://problem/8198537> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115753 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f318164d18455fe44fcc9e03329036917f303edc |
14-Sep-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally." This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113819 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
3a210e2d302758101ac06946e86027b327c7d0f3 |
14-Sep-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally." This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113819 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
a95f589c757c8c857096a07e0d376ca9aaec6c2c |
11-Sep-2010 |
Shih-wei Liao <sliao@google.com> |
Apply changes on LLVM r112364 after merge. Change-Id: I9688675d46dca0d564206616c40b005669269010
ndroid.mk
|
da61c1662bd86ea1f7fad601e9966f1b700636c1 |
11-Sep-2010 |
Shih-wei Liao <sliao@google.com> |
Merge commit '69494cf8102cf872e9cb76662e9960be7c112112' into HEAD Conflicts: lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/ARM/ARMCodeEmitter.cpp lib/Target/ARM/ARMJITInfo.cpp lib/Target/ARM/ARMRelocations.h lib/Transforms/IPO/MergeFunctions.cpp Change-Id: I23d40983717e072fa49334c1fa54f2cf961476c7
|
338c97baad1444a4158a7d99162e0e654f058c43 |
10-Sep-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113632 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
4e9c939312ff73bd0c6a6485fd5f97012f5910fa |
10-Sep-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113632 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
ae0b63f44ba4719fea8032d2d2db016ccc49692f |
01-Sep-2010 |
Chris Lattner <sabre@nondot.org> |
dead code patrol git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112713 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0b5b18340b9c57e8c97172b3190bb97371b72e08 |
01-Sep-2010 |
Chris Lattner <sabre@nondot.org> |
dead code patrol git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112713 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ac8e12c0904eb6a0a463c3396088f6a23e4ef2fe |
26-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Reapply r112091 and r111922, support for metadata linking, with a fix: add a flag to MapValue and friends which indicates whether any module-level mappings are being made. In the common case of inlining, no module-level mappings are needed, so MapValue doesn't need to examine non-function-local metadata, which can be very expensive in the case of a large module with really deep metadata (e.g. a large C++ program compiled with -g). This flag is a little awkward; perhaps eventually it can be moved into the ClonedCodeInfo class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112190 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6cb8c23db1c3becdce6dfbf1b7f1677faca4251e |
26-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Reapply r112091 and r111922, support for metadata linking, with a fix: add a flag to MapValue and friends which indicates whether any module-level mappings are being made. In the common case of inlining, no module-level mappings are needed, so MapValue doesn't need to examine non-function-local metadata, which can be very expensive in the case of a large module with really deep metadata (e.g. a large C++ program compiled with -g). This flag is a little awkward; perhaps eventually it can be moved into the ClonedCodeInfo class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112190 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e8106f5429cdab30a1cd89dca765a2863a5b61cd |
26-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Revert r112091, "Remap metadata attached to instructions when remapping individual ...", which depends on r111922, which I am reverting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112157 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fd406f1ee2d94bafcb4943e4b21c2f4ea4bd8f3a |
26-Aug-2010 |
Daniel Dunbar <daniel@zuster.org> |
Revert r112091, "Remap metadata attached to instructions when remapping individual ...", which depends on r111922, which I am reverting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112157 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1bff171da02a8cedbe5d615636851576d8870e93 |
25-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Remap metadata attached to instructions when remapping individual instructions, not when remapping modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112091 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ce934260dc4ce12bd59f15aaa5ef28520214ad4f |
25-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Remap metadata attached to instructions when remapping individual instructions, not when remapping modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112091 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4bc5279d9be2d35d7260e0385a15ef6c273c72a8 |
24-Aug-2010 |
Bill Wendling <isanbard@gmail.com> |
- Add the LinkerPrivateWeakDefAutoLinkage to the Ada bindings. - Support the LinkerWeak*Linkage types in llvm-nm and in LinkModules.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111952 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4e34d502727df36cc2caa59307953444b1ee9914 |
24-Aug-2010 |
Bill Wendling <isanbard@gmail.com> |
- Add the LinkerPrivateWeakDefAutoLinkage to the Ada bindings. - Support the LinkerWeak*Linkage types in llvm-nm and in LinkModules.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111952 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e832f0aa7c909953a852a397814e62b118fab8e9 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Link NamedMDNodes after linking GlobalValues, so that MDNodes which reference GlobalValues are properly remapped. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111949 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e422d1b16238ad4d9d7ef3b074715e795ab3ddc0 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Link NamedMDNodes after linking GlobalValues, so that MDNodes which reference GlobalValues are properly remapped. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111949 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0bd32810d4d4fce379efef567ed4fae51a82ec10 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
When linking NamedMDNodes, remap their operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111948 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e5835fbe7fb3d87b8cd110b24f0f9772384a5212 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
When linking NamedMDNodes, remap their operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111948 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
65f6c9da7c7caa60c61aedd5171af0ac6f9d5a86 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Use MapValue in the Linker instead of having a private function which does the same thing. This eliminates redundant code and handles MDNodes better. MDNode linking still doesn't fully work yet though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111941 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
05ea54e8869a81b8dd846397175f218f97968907 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Use MapValue in the Linker instead of having a private function which does the same thing. This eliminates redundant code and handles MDNodes better. MDNode linking still doesn't fully work yet though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111941 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
29b7f3907544111352bfb5c66272293e67d2fb6f |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Don't cast away qualifiers with C-style casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111933 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c47a474802172608f0ddb68948e766155b5e40d4 |
24-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Don't cast away qualifiers with C-style casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111933 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
28c238c9ded0b5c91e122c94b5a02d76a5245c11 |
20-Aug-2010 |
Ying Wang <wangying@google.com> |
Fix sim build. Note that this only makes the sim build green, but the built images won't work for sure: No libbcc.so, which depends on something else that can not build in sim mode. No x86 bitcode is generated as well, I believe. Change-Id: Idca8378427196622ac77cd56a38c6a160f03ba22
ndroid.mk
|
fe9d1861007c97b2e581bb90f6c94b2c815c5cba |
15-Aug-2010 |
Argiris Kirtzidis <akyrtzi@gmail.com> |
Revert r111082. No warnings for this common pattern. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111102 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8c8b9ee8c8646aa1a79c782d4da9abdf3eb4eefe |
15-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Revert r111082. No warnings for this common pattern. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111102 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
158d1250a85fac210013125a7e78379cf880b36a |
14-Aug-2010 |
Argiris Kirtzidis <akyrtzi@gmail.com> |
Add ATTRIBUTE_UNUSED to methods that are not supposed to be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111082 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7268d97ae6c1680be96e5758c33cdd46efb6ce54 |
14-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Add ATTRIBUTE_UNUSED to methods that are not supposed to be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111082 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
79bb121f9d1cb711d91ca0ffe0ce5425cfaa3d0c |
22-Jul-2010 |
Dan Gohman <gohman@apple.com> |
Make NamedMDNode not be a subclass of Value, and simplify the interface for creating and populating NamedMDNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109061 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
17aa92c92a925b4a674440c7ef088c223990e854 |
22-Jul-2010 |
Dan Gohman <gohman@apple.com> |
Make NamedMDNode not be a subclass of Value, and simplify the interface for creating and populating NamedMDNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109061 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
db54406fa346e8a08cb200f490baf2dc6671dcf5 |
13-Jul-2010 |
Shih-wei Liao <sliao@google.com> |
Add llvm-link for host. Change-Id: I3ad477cc963c2ae3910b50e272a95f1c4f752306
ndroid.mk
|
e066d26445ddf4114e2738021273126206cc4822 |
30-Jun-2010 |
Bill Wendling <isanbard@gmail.com> |
Revert r107205 and r107207. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107215 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
07d317711781d8c9268f7d6afcf1ba7eadf1d127 |
30-Jun-2010 |
Bill Wendling <isanbard@gmail.com> |
Revert r107205 and r107207. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107215 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f8b6137ea514c38511dbeedde9c02e27c937cad3 |
29-Jun-2010 |
Bill Wendling <isanbard@gmail.com> |
Introducing the "linker_weak" linkage type. This will be used for Objective-C metadata types which should be marked as "weak", but which the linker will remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107205 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
207855cff9b4811004b9720f28a5bd0adf3784b7 |
29-Jun-2010 |
Bill Wendling <isanbard@gmail.com> |
Introducing the "linker_weak" linkage type. This will be used for Objective-C metadata types which should be marked as "weak", but which the linker will remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107205 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
68a5e23e8beedb20b4bf3610f6346b077fbcd44b |
27-May-2010 |
Dan Gohman <gohman@apple.com> |
Add basic error checking to MemoryBuffer::getSTDIN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104855 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
30377e780918aacda1befa47054c61b0155c194c |
27-May-2010 |
Dan Gohman <gohman@apple.com> |
Add basic error checking to MemoryBuffer::getSTDIN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104855 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
006b5a9203ffc2c07c6b90df7533cc8d2b2e0146 |
27-May-2010 |
Dan Gohman <gohman@apple.com> |
Use the return value of getMagicNumber instead of using a separate canRead() call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104853 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
95131fcb671f13b931ea3cbb6bbd3fd735f1c5dc |
27-May-2010 |
Dan Gohman <gohman@apple.com> |
Use the return value of getMagicNumber instead of using a separate canRead() call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104853 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
e4454320b3cfffe926a487c33fbeb454366de2f8 |
07-Apr-2010 |
Shih-wei Liao <sliao@google.com> |
libbcc Change-Id: Ieaa3ebd5a38f370752495549f8870b534eeedfc5
inkModules.cpp
|
1e6932c4b9c29e091a49231272a790a4102fa4aa |
16-Feb-2010 |
Duncan Sands <baldrick@free.fr> |
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some methods to try to have the type predicates be more logically positioned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
47c5188789bc40671504ed1fa3a44765cefba44f |
16-Feb-2010 |
Duncan Sands <baldrick@free.fr> |
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some methods to try to have the type predicates be more logically positioned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e264f62ca09a8f65c87a46d562a4d0f9ec5d457e |
10-Feb-2010 |
Shih-wei Liao <sliao@google.com> |
Check in LLVM r95781.
MakeLists.txt
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
akefile
|
8ffd5e35b6a1b1b302d377597f25fc8aba36359e |
06-Feb-2010 |
Victor Hernandez <vhernandez@apple.com> |
Linker should not remap null operands of metadata git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95468 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c8d7b85ba133f6e590d1c3ac78d47c88914aedea |
06-Feb-2010 |
Victor Hernandez <vhernandez@apple.com> |
Linker should not remap null operands of metadata git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95468 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
30011e6304d2e2f7861181d989dd65b5be4a5e85 |
27-Jan-2010 |
Victor Hernandez <vhernandez@apple.com> |
Need to recurse for all operands of function-local metadata; and handle Instructions (which map to themselves) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94691 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7bf5cf401f27ac7cafe3e2c097cf14b7bb30a653 |
27-Jan-2010 |
Victor Hernandez <vhernandez@apple.com> |
Need to recurse for all operands of function-local metadata; and handle Instructions (which map to themselves) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94691 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
62de4e7b460f8ffbe0ee71a5a09503790102943f |
27-Jan-2010 |
Jeffrey Yasskin <jyasskin@google.com> |
Kill ModuleProvider and ghost linkage by inverting the relationship between Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94686 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
f0356fe140af1a30587b9a86bcfb1b2c51b8ce20 |
27-Jan-2010 |
Jeffrey Yasskin <jyasskin@google.com> |
Kill ModuleProvider and ghost linkage by inverting the relationship between Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94686 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
8cb92c22f030025e2838ee3e32e7a27ebb06768e |
27-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
merge two ifs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0a65a1441731c5fcf08647e95c9802844da68514 |
27-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
merge two ifs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e66800758df77e790ad23ca12158aeef67487e3b |
27-Jan-2010 |
Victor Hernandez <vhernandez@apple.com> |
Linker needs to do deep-copy of function-local metadata to update references to function arguments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94632 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2c9ad13b14de9fcc98f868d301950f0f386f2545 |
27-Jan-2010 |
Victor Hernandez <vhernandez@apple.com> |
Linker needs to do deep-copy of function-local metadata to update references to function arguments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94632 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e9a40677cd1fd95ed7e9b75a1df19449f432ad9e |
24-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
43b5f9312d56be400af031f7487a99b75b7b0f97 |
24-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
0a0ea051700e1f6287df39c16ebfffb6c3782eac |
22-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Remove MetadataBase class because it is not adding significant value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94243 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bc5201f8371f9041e79efcca3b158335da5c2604 |
22-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Remove MetadataBase class because it is not adding significant value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94243 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5c804558fe5a69a7534b8a3bb7420ec1a483a1c8 |
22-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
Stop building RTTI information for *most* llvm libraries. Notable missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
e73a31f667ad2fe03e25c97ac45b58c30d7f07c3 |
22-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
Stop building RTTI information for *most* llvm libraries. Notable missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
75108313ab4bf3fd132ca5eb3e5bf769521e7b8a |
09-Jan-2010 |
David Chisnall <csdavec@swan.ac.uk> |
Fixed linking of modules containing aliases to constant bitcasts. Existing behaviour first tried to replace the aliases with the global that they aliased (rather than the bitcast), causing a crash on an assert because the types didn't match. When this was fixed, it then did the same thing creating the new alias (creating an alias with a different type to its aliasee). Linking modules containing aliases to GEPs is still not quite right. GEPs that are equivalent to bitcasts will be replaced by bitcasts, GEPs that are not will just break. Aliases to GEPs that are not equivalent to bitcasts are horribly broken anyway (it might be worth adding an assert when creating the alias to prevent these being created; they just cause problems later). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93052 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3472246edee4e120e3eb1ec4ad443ba884bc7ac7 |
09-Jan-2010 |
David Chisnall <csdavec@swan.ac.uk> |
Fixed linking of modules containing aliases to constant bitcasts. Existing behaviour first tried to replace the aliases with the global that they aliased (rather than the bitcast), causing a crash on an assert because the types didn't match. When this was fixed, it then did the same thing creating the new alias (creating an alias with a different type to its aliasee). Linking modules containing aliases to GEPs is still not quite right. GEPs that are equivalent to bitcasts will be replaced by bitcasts, GEPs that are not will just break. Aliases to GEPs that are not equivalent to bitcasts are horribly broken anyway (it might be worth adding an assert when creating the alias to prevent these being created; they just cause problems later). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93052 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2c9d30097bc658e73975b7786c076c10fe369984 |
05-Jan-2010 |
David Greene <greened@obbligato.org> |
Change this back to errs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92674 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
2abc1ec2dd57511638b478c34729b9ca6f1d6ebc |
05-Jan-2010 |
David Greene <greened@obbligato.org> |
Change this back to errs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92674 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
9847993164e4e881b0062fee09dddea44cc30821 |
05-Jan-2010 |
David Greene <greened@obbligato.org> |
Change errs() to dbgs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92628 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0fbf0e3d5e8f45925fc879b705ae0320f8bc76f8 |
05-Jan-2010 |
David Greene <greened@obbligato.org> |
Change errs() to dbgs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92628 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2ecf5fd206d816a606dc4e15bcfe0e281819e91c |
05-Jan-2010 |
David Greene <greened@obbligato.org> |
Change errs() to dbgs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92626 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
c2e0974afb86c2ae07137c6e486db95c46023f44 |
05-Jan-2010 |
David Greene <greened@obbligato.org> |
Change errs() to dbgs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92626 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
ece76b00b4343749f7d3fcf16ce9437248d7aff5 |
31-Dec-2009 |
Chris Lattner <sabre@nondot.org> |
rename "elements" of metadata to "operands". "Elements" are things that occur in types. "operands" are things that occur in values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92322 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5d0cacdbb6577f2449986f345858db17dc1bcf59 |
31-Dec-2009 |
Chris Lattner <sabre@nondot.org> |
rename "elements" of metadata to "operands". "Elements" are things that occur in types. "operands" are things that occur in values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92322 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c174cea62774232369726c7aa22f24033be4b7aa |
28-Dec-2009 |
Bill Wendling <isanbard@gmail.com> |
Remove dead store. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92192 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e90c545aeb53bacdad1206bbceb72087c78a2283 |
28-Dec-2009 |
Bill Wendling <isanbard@gmail.com> |
Remove dead store. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92192 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
80ab6551aafc61c32f496dcce7531a4621be653b |
10-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a lame API. Also, Stringrefify some more MemoryBuffer functions, and add two performance FIXMEs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86630 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
d65267ee625bb9cf8dc655a0c0409760e2b76c71 |
10-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a lame API. Also, Stringrefify some more MemoryBuffer functions, and add two performance FIXMEs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86630 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
5993faa112338898200ae47e6d9de0071b8ebde3 |
09-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
random tidy git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86511 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
570a0b8d74b6b4044622f0536ca1152f28ce389b |
09-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
random tidy git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86511 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
fa188de533488e8238ca4b9346b9deb3b9a5a8af |
09-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
remove a redundant printout, LinkInArchive prints this as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86510 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
49e27a5375b20e3f422730fd77425baf5abd4e68 |
09-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
remove a redundant printout, LinkInArchive prints this as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86510 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
de46a5b60ea8cf3db0b613172667a7038470c578 |
06-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Pass StringRef by value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86251 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
2928c83b010f7cfdb0f819199d806f6942a7d995 |
06-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Pass StringRef by value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86251 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
26cc8cd188e185295429c72ccda6fb3b5003d4cf |
01-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
implement linker support for BlockAddress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85700 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2a749d36475bda8964e996725ea101aec3ee15cf |
01-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
implement linker support for BlockAddress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85700 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f1df5fea30bfd9fc1b9691dab547277aba769dcd |
13-Sep-2009 |
Dan Gohman <gohman@apple.com> |
Remove unnecessary #include. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81636 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
be6d1fd5f42b6039d2af664dbd0ab95cfbd08452 |
13-Sep-2009 |
Dan Gohman <gohman@apple.com> |
Remove unnecessary #include. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81636 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9f876cd88bcf8204ec52dfb03a474a154ad60617 |
03-Sep-2009 |
Devang Patel <dpatel@apple.com> |
There is not any need to copy metadata while merging modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80941 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
faf8fa566493a3aefb18f784cf706aae6a1e569f |
03-Sep-2009 |
Devang Patel <dpatel@apple.com> |
There is not any need to copy metadata while merging modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80941 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b1aa85bcfad6245bed0a0c43adcca9efb51fcf79 |
24-Aug-2009 |
Chris Lattner <sabre@nondot.org> |
Prune #includes from llvm/Linker.h and llvm/System/Path.h, forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79869 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
74382b7c699120fbec5cb5603c9cf4212eb37f06 |
24-Aug-2009 |
Chris Lattner <sabre@nondot.org> |
Prune #includes from llvm/Linker.h and llvm/System/Path.h, forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79869 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
8a6411ca14e6216192ccddb18c5196a26e98e1b3 |
23-Aug-2009 |
Chris Lattner <sabre@nondot.org> |
eliminate the "Value" printing methods that print to a std::ostream. This required converting a bunch of stuff off DOUT and other cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79819 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bdff548e4dd577a72094d57b282de4e765643b96 |
23-Aug-2009 |
Chris Lattner <sabre@nondot.org> |
eliminate the "Value" printing methods that print to a std::ostream. This required converting a bunch of stuff off DOUT and other cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79819 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0e361fbeb329cb0f8e56e2d7f1b8b70512d92875 |
11-Aug-2009 |
Devang Patel <dpatel@apple.com> |
Link NamedMDNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78696 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ab67e705f59d567afded845465f358b8a66ab62e |
11-Aug-2009 |
Devang Patel <dpatel@apple.com> |
Link NamedMDNodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78696 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
121fb74a58292e49c25c844635d131f00bce1aa4 |
11-Aug-2009 |
Devang Patel <dpatel@apple.com> |
Link metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78652 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ae709eaeb12e4a293e812c61514a9ebd9e24fe14 |
11-Aug-2009 |
Devang Patel <dpatel@apple.com> |
Link metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78652 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
aac2837c17cafaf4ff6487a54bab42e6618b5945 |
31-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are metadata related, which I'm waiting on to avoid conflicting with Devang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77721 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a7235ea7245028a0723e8ab7fd011386b3900777 |
31-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are metadata related, which I'm waiting on to avoid conflicting with Devang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77721 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6b6e2d9392782724c48110bcca4bee2c8fbbd7b9 |
30-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move types back to the 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77516 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
debcb01b0f0a15f568ca69e8f288fade4bfc7297 |
30-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move types back to the 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77516 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5666e684f4a22393526786ce6cd8c354b0a30ced |
29-Jul-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Remove now unused Context variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77495 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6c1e983a1756e914b328644e6cab7b4a39eb7853 |
29-Jul-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Remove now unused Context variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77495 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71 |
29-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move ConstantExpr to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
baf3c404409d5e47b13984a7f95bfbd6d1f2e79e |
29-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move ConstantExpr to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2f422e06e096ae765ced5d4c67ac063c3e216424 |
28-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Return ConstantVector to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
af7ec975870f92245f1f1484ac80a1e2db6a0afa |
28-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Return ConstantVector to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7b4f9f8b74cd8f8d476787763ea02030762b00e7 |
28-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Change ConstantArray to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77347 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1fd7096407d5e598ed3366a1141548e71273f1c5 |
28-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Change ConstantArray to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77347 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9c9f10e3c7667d9104b1ed98090cf0c84e90f8e0 |
28-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move ConstantStruct back to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77266 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8fa3338ed2400c1352b137613d2c2c70d1ead695 |
28-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Move ConstantStruct back to 2.5 API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77266 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e03513b6e418341df9f2c18559c3e3557ac9b695 |
26-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove Value::{isName, getNameRef}. Also, change MDString to use a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
03d7651c3652e1f0cc86e79b26585d86818da9cf |
26-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove Value::{isName, getNameRef}. Also, change MDString to use a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a49de6f516599d54e99b30ac7597dfa9c2972d58 |
25-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Finish migrating VMCore to StringRef/Twine based APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77051 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
92ccf70ad448eb02f9f273d2c70ae4708b3bd0f2 |
25-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Finish migrating VMCore to StringRef/Twine based APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77051 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
e3572baab5f601c194de60077cec5e022a926b2e |
25-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Initial update to VMCore to use Twines for string arguments. - The only meat here is in Value.{h,cpp} the rest is essential 'const std::string &' -> 'const Twine &'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77048 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6e0d1cb30957a636c53158d3089e6fb88348a57a |
25-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Initial update to VMCore to use Twines for string arguments. - The only meat here is in Value.{h,cpp} the rest is essential 'const std::string &' -> 'const Twine &'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77048 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e2db823b3f0483a199eeda4c4220cb616e616c9b |
23-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Switch ValueSymbolTable to StringRef based API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76894 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bc8d813f715e47afd27b73b0b7abd00978e0ba51 |
23-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Switch ValueSymbolTable to StringRef based API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76894 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
175b6540352920afd47979cecb8c2667a3f7fdd3 |
22-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Get rid of the Pass+Context magic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76702 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e922c0201916e0b980ab3cfe91e1413e68d55647 |
22-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Get rid of the Pass+Context magic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76702 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
41a0785fdd228e1563e606f650cef9b3617ab29e |
20-Jul-2009 |
Bill Wendling <isanbard@gmail.com> |
Add plumbing for the `linker_private' linkage type. This type is meant for "private" symbols which the assember shouldn't strip, but which the linker may remove after evaluation. This is mostly useful for Objective-C metadata. This is plumbing, so we don't have a use of it yet. More to come, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76385 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3d10a5a75794356a0a568ce283713adc3a963200 |
20-Jul-2009 |
Bill Wendling <isanbard@gmail.com> |
Add plumbing for the `linker_private' linkage type. This type is meant for "private" symbols which the assember shouldn't strip, but which the linker may remove after evaluation. This is mostly useful for Objective-C metadata. This is plumbing, so we don't have a use of it yet. More to come, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76385 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bd448e3ca993226084d7f53445388fcd8e46b996 |
14-Jul-2009 |
Edwin Török <edwintorok@gmail.com> |
llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75640 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkModules.cpp
|
c23197a26f34f559ea9797de51e187087c039c42 |
14-Jul-2009 |
Torok Edwin <edwintorok@gmail.com> |
llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75640 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkModules.cpp
|
675d56222b6b98d2c22a17aaf69a036e57d5426a |
11-Jul-2009 |
Edwin Török <edwintorok@gmail.com> |
assert(0) -> LLVM_UNREACHABLE. Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75379 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkModules.cpp
|
c25e7581b9b8088910da31702d4ca21c4734c6d7 |
11-Jul-2009 |
Torok Edwin <edwintorok@gmail.com> |
assert(0) -> LLVM_UNREACHABLE. Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75379 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkModules.cpp
|
e17fc1d7a2bcc05efc0ebe943254b273c99d77fd |
08-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75025 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e9b11b431308f4766b73cda93e38ec930c912122 |
08-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75025 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e0f136d9637981bbc5096ca396e4df383c59eafe |
08-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Push LLVMContext through GlobalVariables and IRBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74985 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3d29df3e8a203b167d8071ea6f805b21db18a5af |
08-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Push LLVMContext through GlobalVariables and IRBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74985 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
943fdf173aa6b3e52adbe28d6366c4ffe64d10d7 |
07-Jul-2009 |
Owen Anderson <resistor@mac.com> |
LLVM Context-ification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74948 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c9ab7bf98f6a0261220e4b2380db2df8ee29829b |
07-Jul-2009 |
Owen Anderson <resistor@mac.com> |
LLVM Context-ification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74948 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
92adb18f63b3e007acf7cde59318c595ed9d3d40 |
02-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the moment, that I will need to make far-reaching changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
4434ed44c45c87a72b7a0bf2f91211f895022b91 |
02-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the moment, that I will need to make far-reaching changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
a148fdd8312c060c65bacf8fe61a6db5b2add6a5 |
01-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Hold the LLVMContext by reference rather than by pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74640 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
31895e73591d3c9ceae731a1274c8f56194b9616 |
01-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Hold the LLVMContext by reference rather than by pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74640 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
25209b40cbff14093adc4f0b47f0060e44e18752 |
01-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74614 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inker.cpp
|
8b477ed579794ba6d76915d56b3f448a7dd20120 |
01-Jul-2009 |
Owen Anderson <resistor@mac.com> |
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74614 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inker.cpp
|
266c7bbbbcc4b326dea82e577de1a415d6acc23e |
13-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Add a new "available_externally" linkage type. This is intended to support C99 inline, GNU extern inline, etc. Related bugzilla's include PR3517, PR3100, & PR2933. Nothing uses this yet, but it appears to work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68940 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6843344e1399eee254f39c3660e2b227c2511a9e |
13-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Add a new "available_externally" linkage type. This is intended to support C99 inline, GNU extern inline, etc. Related bugzilla's include PR3517, PR3100, & PR2933. Nothing uses this yet, but it appears to work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68940 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a05ef5e107943478ad02bc0cd5170a3894076bc4 |
08-Mar-2009 |
Duncan Sands <baldrick@free.fr> |
Apply ODR linkage changes accidentally dropped during final cleaning. This fixes a bunch of testsuite failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66380 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
874bb63ca36c18590e65687291b8c8ea432ff2a8 |
08-Mar-2009 |
Duncan Sands <baldrick@free.fr> |
Apply ODR linkage changes accidentally dropped during final cleaning. This fixes a bunch of testsuite failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66380 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
667d4b8de6dea70195ff12ef39a4deebffa2f5c7 |
07-Mar-2009 |
Duncan Sands <baldrick@free.fr> |
Introduce new linkage types linkonce_odr, weak_odr, common_odr and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66339 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
19d161f714b83cd850fe489aa3fdaa3d3744157b |
07-Mar-2009 |
Duncan Sands <baldrick@free.fr> |
Introduce new linkage types linkonce_odr, weak_odr, common_odr and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66339 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c834bbf55832c45f90b1163f920472fefbf77bc1 |
03-Mar-2009 |
Mikhail Glushenkov <foldr@codedgers.com> |
Oops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65942 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0e65857392c8661b7df689bb184dde4b9e17a2f8 |
03-Mar-2009 |
Mikhail Glushenkov <foldr@codedgers.com> |
Oops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65942 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
eba2cb0d5aef5a8229facae5624c65d9fd65e9d1 |
03-Mar-2009 |
Mikhail Glushenkov <foldr@codedgers.com> |
80-column violation + trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65936 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
47d032bc5d152110d3dab3acf8f9ca0efd8dc38b |
03-Mar-2009 |
Mikhail Glushenkov <foldr@codedgers.com> |
80-column violation + trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65936 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bb46f52027416598a662dc1c58f48d9d56b1a65b |
15-Jan-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add the private linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62279 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkModules.cpp
|
a168fc98dedfc8cac01c34f84b699fe5f48ad76d |
15-Jan-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add the private linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62279 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkModules.cpp
|
9b8f542e2746b28721b3ec603c3aaaa10ea708fc |
09-Jan-2009 |
Misha Brukman <brukman+llvm@gmail.com> |
Removed trailing whitespace from Makefiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61991 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
e025bcca322301af5c4a5178b1a64080cb900ec1 |
09-Jan-2009 |
Misha Brukman <brukman+llvm@gmail.com> |
Removed trailing whitespace from Makefiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61991 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
5d9759bd04f2aa9f95067ea32f67a8ad5cac4c8f |
25-Oct-2008 |
Dan Gohman <gohman@apple.com> |
Make comments and code for QuietWarnings and QuietErrors actually correspond to what their names suggest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58146 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
b4bc09bfe744bf6fa697b5addb88d1b6b8ec494a |
25-Oct-2008 |
Dan Gohman <gohman@apple.com> |
Make comments and code for QuietWarnings and QuietErrors actually correspond to what their names suggest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58146 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
d13726f1e91218bc3f7103adf6cd98676bc477e2 |
15-Oct-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Also properly handle linking of strong alias and weak global git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57595 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6b92acf80d5e909c2b1b75ca61bc7583d0a366d5 |
15-Oct-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Also properly handle linking of strong alias and weak global git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57595 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e655e3703280d001375ffa44093f8f4ec879c77b |
15-Oct-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly handle linking of strong alias with weak function, this fixes PR2883 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57594 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
29004182ec7144448dcabc3f168ad10eb4fb8040 |
15-Oct-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly handle linking of strong alias with weak function, this fixes PR2883 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57594 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5df3186f598163258fabf3448d9372843804d1ab |
29-Sep-2008 |
Duncan Sands <baldrick@free.fr> |
Rename isWeakForLinker to mayBeOverridden. Use it instead of hasWeakLinkage in a bunch of optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56782 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
eb3f45fbeb3d009f9861f3c4ff82931b8aefe239 |
29-Sep-2008 |
Duncan Sands <baldrick@free.fr> |
Rename isWeakForLinker to mayBeOverridden. Use it instead of hasWeakLinkage in a bunch of optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56782 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3d01fc7de86c75926e4e5ac7cc49f0116018893d |
22-Sep-2008 |
Oscar Fuentes <ofv@wanadoo.es> |
Initial support for the CMake build system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56419 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
00905d5339fd277781c7393112f80febe86b2945 |
22-Sep-2008 |
Oscar Fuentes <ofv@wanadoo.es> |
Initial support for the CMake build system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56419 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
|
19e861a4ffb896f16a691d5ac869e894df3cd464 |
09-Sep-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Make safer variant of alias resolution routine to be default git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56005 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c7b9091a9b49563aaf8a6ca14b6f31f34ffbe044 |
09-Sep-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Make safer variant of alias resolution routine to be default git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56005 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
832b2a9cd8870211bf2d347d7b435beacbb06c8d |
09-Sep-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Fix incorrect linker behaviour: we shouldn't resolve weak aliases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55997 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9435245d3473e850ab60618bd63ad799d1406fe9 |
09-Sep-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Fix incorrect linker behaviour: we shouldn't resolve weak aliases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55997 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6157e383c4a15ffb6e7f27cdb153daa9caa15ca5 |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
Reimplement LinkFunctionProtos in terms of GetLinkageResult. This fixes the second half of link-global-to-func.ll and causes some minor changes in messages. There are two TODOs here. First, this causes a regression in 2008-07-06-AliasWeakDest.ll, which is now failing (so I xfailed it). Anton, I would really appreciate it if you could take a look at this. It should be a matter of adding proper alias support to GetLinkageResult, and was probably already a latent bug that would manifest with globals. The second todo is to reimplement LinkAlias in the same pattern as function and global linking. This should be pretty straight-forward for someone who knows aliases, but isn't a requirement for correctness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53548 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
910c614f2011060951e0ac3fb4022c8e237df760 |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
Reimplement LinkFunctionProtos in terms of GetLinkageResult. This fixes the second half of link-global-to-func.ll and causes some minor changes in messages. There are two TODOs here. First, this causes a regression in 2008-07-06-AliasWeakDest.ll, which is now failing (so I xfailed it). Anton, I would really appreciate it if you could take a look at this. It should be a matter of adding proper alias support to GetLinkageResult, and was probably already a latent bug that would manifest with globals. The second todo is to reimplement LinkAlias in the same pattern as function and global linking. This should be pretty straight-forward for someone who knows aliases, but isn't a requirement for correctness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53548 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ae1132d2b8ae07afd2fe9a7cb434d849f884bfa0 |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
don't do any linkage, not even type resolution, of symbols that have internal linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53547 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
08d002af303b78653ec11f175d79b8407cedb3d3 |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
don't do any linkage, not even type resolution, of symbols that have internal linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53547 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d1ec48c641f76d4c0e5b7cb357a1333d4fb75c4a |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
implement linking of globals to functions, in one direction (replacing a function with a global). This is needed when building llvm itself with LTO on darwin, because of the EXPLICIT_SYMBOL hack in lib/system/DynamicLibrary.cpp. Implementation of linking the other way will need to wait for a cleanup of LinkFunctionProtos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53546 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0763d4176f704acb0769acf3606f29f62910a669 |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
implement linking of globals to functions, in one direction (replacing a function with a global). This is needed when building llvm itself with LTO on darwin, because of the EXPLICIT_SYMBOL hack in lib/system/DynamicLibrary.cpp. Implementation of linking the other way will need to wait for a cleanup of LinkFunctionProtos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53546 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0bb8757997392ee18ca9de0f1fab29463f8e7aeb |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
wrap long lines, remove some code from a non-assert build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53545 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cb13a018c5229f08ea8c2640502f98f1b7e48529 |
14-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
wrap long lines, remove some code from a non-assert build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53545 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5ed2ba26680f06846e7602ce65432b0a723b1273 |
10-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
The source and dest of an alias are *not* required to have the same type, though that would be nice and make sense :). Patch by Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53387 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e97603bd8b73cbc4e0b065b40f1dc12017d757fa |
10-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
The source and dest of an alias are *not* required to have the same type, though that would be nice and make sense :). Patch by Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53387 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6b345ee9b2833cf1b2f79dc16d06d4060bec36ef |
07-Jul-2008 |
Dan Gohman <gohman@apple.com> |
Make DenseMap's insert return a pair, to more closely resemble std::map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53177 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
55d1966e9afdeeb33e7611bc0ac9b4b4268d68d3 |
07-Jul-2008 |
Dan Gohman <gohman@apple.com> |
Make DenseMap's insert return a pair, to more closely resemble std::map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53177 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
80585f1daac3570f19cd255c5006dfcf2ff65a89 |
06-Jul-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Add convenient helper for checking whether global is weak in linker sense having weak or linkonce or common or extweak LLVM linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53158 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
46aa9c11795d8472f0dd01dac6d4961f3e24cf3f |
06-Jul-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Add convenient helper for checking whether global is weak in linker sense having weak or linkonce or common or extweak LLVM linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53158 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f88bc65932e5cf41ba6ca706cd1b1b1f65300248 |
06-Jul-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Override weak stuff during linking of aliases. This fixes PR2463. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53156 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cfc5911b75584c89f50ece727d129827b18100ae |
06-Jul-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Override weak stuff during linking of aliases. This fixes PR2463. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53156 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
194c2cef8a0036dd4e6295d048f37d6130f92389 |
06-Jul-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly link alias and function decls. This fixes PR2146 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53154 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fdeba113ac38aa3caaa858a34fbfdb32c5bdeb6f |
06-Jul-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly link alias and function decls. This fixes PR2146 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53154 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a534b0f7bf0248bf90afe97110a34777e972f325 |
27-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
when linking globals, make sure to preserve the address space of the global. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52810 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
29ae6c5979f1c3508ff37f1c897aea0395b59f1e |
27-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
when linking globals, make sure to preserve the address space of the global. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52810 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ec91ccba3ca92d5e1f19fb0cb6e57a7d4a3f3195 |
20-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Fix an error handling redefinition of linkonce functions where the types differ. Patch by Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52527 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a518cc9d62433f473875664f18f2485f6b28a9b0 |
20-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Fix an error handling redefinition of linkonce functions where the types differ. Patch by Nathan Keynes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52527 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fc196f9ee909ac35837f6f771a42aa0dec817584 |
17-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Add a missing ~ (dtor became ctor) which caused crashes on a bunch of stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52374 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a932649581be2192828ed13e0fcb8f85b9d503b2 |
17-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Add a missing ~ (dtor became ctor) which caused crashes on a bunch of stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52374 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a4477f9b31ce0b6fadc5365ff9355679c1ecb954 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
stop making PATypeHolder's so crazily. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52364 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b2d8a03e045024f197a67407db89755319e417ac |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
stop making PATypeHolder's so crazily. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52364 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
62a81a1eba019ab570b002f8e1686494139785a1 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
use a real associative container for type association instead of using a vector with a linear search. This speeds up the linking testcase in PR1860 from 0.965s to 0.385s on my system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52357 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0b228bf4315ee36f591046c309cb213f7c1197c0 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
use a real associative container for type association instead of using a vector with a linear search. This speeds up the linking testcase in PR1860 from 0.965s to 0.385s on my system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52357 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
56539659eb1b192d493aa333b60213889129b9f1 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
bail out sooner if we have two concrete but different types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52351 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e174d3257abf4ebc765e9122a392ee56bab62fdc |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
bail out sooner if we have two concrete but different types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52351 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9ddf2c898f5227ca137aef7abc3051e16bd60025 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52350 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
41fed26d6e6d6044403a53fc97b601e1bce82244 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52350 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
849dcd928a58290447a710b856bdd487aac44d24 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Apply a patch from Nathan Keynes, which speeds up llvm-link on the testcases in PR1860 from taking more than 1 hour (when I killed it) to taking 1s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52347 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e2d8b3543f87966fe2296000f06abf0df22a5a14 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Apply a patch from Nathan Keynes, which speeds up llvm-link on the testcases in PR1860 from taking more than 1 hour (when I killed it) to taking 1s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52347 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f6f4f7a149e2864cc0441afcbed5fd99ff4b9587 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
handle vectors. Any integers that got here would necessarily be different already. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52341 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6b9bdb7cf105c7fd3be43c5d9b02ad062e1a0f99 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
handle vectors. Any integers that got here would necessarily be different already. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52341 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bc1c82a0f73eda86cf24416cebc83b4690fcd76a |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Simplify ResolveTypes by pulling the null case out into the one client that cares and simplifying its control flow. Remove the DestST argument to ResolveTypes and RecursiveResolveTypes* which are dead now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52340 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
06638ab14055d37d39c5d912965cd885abbf0286 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Simplify ResolveTypes by pulling the null case out into the one client that cares and simplifying its control flow. Remove the DestST argument to ResolveTypes and RecursiveResolveTypes* which are dead now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52340 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
371ca83d8b7875d30743d9e72fd16a85baacbe63 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify RecursiveResolveTypes and ResolveTypes by pulling the naming out of ResolveTypes into the one place that needs it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52338 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e05b43a910d664e8b04a37eae90947f360966eb0 |
16-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify RecursiveResolveTypes and ResolveTypes by pulling the naming out of ResolveTypes into the one place that needs it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52338 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
822143e6f7271c6546434d2d0b3da7a29711020d |
09-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
use 'continue' to make the function linker simpler. When linking a strong function into a weak function, zap the weak function body so that the strong one overrides it. This fixes PR2410 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52135 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c082fd458e078daa363441b2d56e65178de0692a |
09-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
use 'continue' to make the function linker simpler. When linking a strong function into a weak function, zap the weak function body so that the strong one overrides it. This fixes PR2410 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52135 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
824684982968244050e56357e736b9940c23e77d |
09-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
minor changes to short circuit the 'no linkage' case earlier for function bodies. We now don't try to unify types or handling type mismatches if when linking an internal foo to an external foo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52134 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1426bfa3e18e42919de0a4b415e88bf4f2f13c1b |
09-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
minor changes to short circuit the 'no linkage' case earlier for function bodies. We now don't try to unify types or handling type mismatches if when linking an internal foo to an external foo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52134 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
bc3d1c7e4c290a35df801000222b8f4b2d51ef20 |
09-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify function visibility handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52133 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f7e8419816cbd5209c9049cdce1f93858c8863a3 |
09-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify function visibility handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52133 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
28c3cff8250b3fe2adc6479306fe7dbdb48a1bdb |
26-May-2008 |
Duncan Sands <baldrick@free.fr> |
Factor code to copy global value attributes like the section or the visibility from one global value to another: copyAttributesFrom. This is particularly useful for duplicating functions: previously this was done by explicitly copying each attribute in turn at each place where a new function was created out of an old one, with the result that obscure attributes were regularly forgotten (like the collector or the section). Hopefully now everything is uniform and nothing is forgotten. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51567 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0cc9058a792d86876b5ea532eb8be6842b407123 |
26-May-2008 |
Duncan Sands <baldrick@free.fr> |
Factor code to copy global value attributes like the section or the visibility from one global value to another: copyAttributesFrom. This is particularly useful for duplicating functions: previously this was done by explicitly copying each attribute in turn at each place where a new function was created out of an old one, with the result that obscure attributes were regularly forgotten (like the collector or the section). Hopefully now everything is uniform and nothing is forgotten. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51567 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b1dbcd886a4b5597a839f299054b78b33fb2d6df |
15-May-2008 |
Gabor Greif <ggreif@gmail.com> |
Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51143 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b91ea9d5ae92622ca2100feb19af1bc7e784abbd |
15-May-2008 |
Gabor Greif <ggreif@gmail.com> |
Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51143 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
aafce77b17d340aace52bcd49d1944109d82f14a |
14-May-2008 |
Dale Johannesen <dalej@apple.com> |
Add CommonLinkage; currently tentative definitions are represented as "weak", but there are subtle differences in some cases on Darwin, so we need both. The intent is that "common" will behave identically to "weak" unless somebody changes their target to do something else. No functional change as yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51118 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
49c441222d19a0ae12ef357ec90d82da89e08a94 |
14-May-2008 |
Dale Johannesen <dalej@apple.com> |
Add CommonLinkage; currently tentative definitions are represented as "weak", but there are subtle differences in some cases on Darwin, so we need both. The intent is that "common" will behave identically to "weak" unless somebody changes their target to do something else. No functional change as yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51118 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
caa8ae8125124822b01ac21a8de186c13fcdd8f3 |
10-May-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Fix linking of internal aliases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50950 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1b4f1f71ec19318db9e157ee0054361865701b1f |
10-May-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Fix linking of internal aliases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50950 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0b12ecf6ff6b5d3a144178257b6206f0c4788792 |
08-May-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Turn StripPointerCast() into a method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50836 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
48fc88fa541d9084daf3ade6e4df2046ad9736e2 |
08-May-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Turn StripPointerCast() into a method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50836 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
149a3153694f8b75f8f2f1754575e6a52b45214a |
07-May-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
If weak GlobalVariable was bitcast'ed to different type during linking we will need to strip all casts for intializer lookup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50776 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2b38320ea90bddfea16e3b3633124799bb73f4f6 |
07-May-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
If weak GlobalVariable was bitcast'ed to different type during linking we will need to strip all casts for intializer lookup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50776 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6bc41e8a74d1756da0003641bfebd02a3d6d9586 |
14-Apr-2008 |
Owen Anderson <resistor@mac.com> |
Revert r49614. As Dan pointed out, some of these aren't correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49657 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ab567f8b58e0777a70a64351e2330f40900888f2 |
14-Apr-2008 |
Owen Anderson <resistor@mac.com> |
Revert r49614. As Dan pointed out, some of these aren't correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49657 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
386ea355e730a1e92acf84e7a3f2ad95c3d6165b |
13-Apr-2008 |
Owen Anderson <resistor@mac.com> |
Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2), which is significantly more efficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49614 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e34c667fa392fbdb646f72743a414b84c8d1fb1e |
13-Apr-2008 |
Owen Anderson <resistor@mac.com> |
Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2), which is significantly more efficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49614 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
051a950000e21935165db56695e35bade668193b |
06-Apr-2008 |
Gabor Greif <ggreif@gmail.com> |
API changes for class Use size reduction, wave 1. Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49277 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d6da1d0d17e2605363504f044664696f4d85b30f |
06-Apr-2008 |
Gabor Greif <ggreif@gmail.com> |
API changes for class Use size reduction, wave 1. Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49277 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
038112a4e0a9afd656f415ab397a230ae5921627 |
01-Apr-2008 |
Chris Lattner <sabre@nondot.org> |
Change the MemoryBuffer::getFile* methods to take just a pointer to the start of a filename, not a filename+length. All clients can produce a null terminated name, and the system api's require null terminated strings anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49041 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
fc0036120cbfae4edfa372c36fb05f2756f5f0ee |
01-Apr-2008 |
Chris Lattner <sabre@nondot.org> |
Change the MemoryBuffer::getFile* methods to take just a pointer to the start of a filename, not a filename+length. All clients can produce a null terminated name, and the system api's require null terminated strings anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49041 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
5241957b1f6876452705f94e0ed60dd2c33a5c84 |
11-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Ultimately resolve aliases during linking, if possible git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48259 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8219262b9d2c0a936377c9287545ddf14b1b460d |
11-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Ultimately resolve aliases during linking, if possible git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48259 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7fcb6b65c97f6e2e96643967fca735df528dab8e |
11-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Fix thinko: alias always defines new symbol. Even is aliasee itself is undefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48203 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
574c0f8225d3b2ccb2c6eebb0c30e45bfeda539c |
11-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Fix thinko: alias always defines new symbol. Even is aliasee itself is undefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48203 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
ed61c0bc76a7b9001d7639a908c955d0fae35bac |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Add sanity checks git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48184 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0a67e053fc7ccb6c0639de021f0c47140f8e722d |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Add sanity checks git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48184 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b8cdaf7099898d7c0eef4769bf6a89f39e7decc2 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Typo: 'function' => 'alias' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48183 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
552ccce86a66c19691c71036c269cf85724a79d4 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Typo: 'function' => 'alias' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48183 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
817bf2aeb22db13d03beb15e9bf17c425d0c694d |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Syntactic sugar'ify stuff :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48182 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ef1eb5e2d84954b550222f445eaea7da961ac416 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Syntactic sugar'ify stuff :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48182 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
aeb09967fdb2ff074c91ce8039ebd1917a2f6060 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Always run 'make check' :) Fix fallout from prev. commit: query for possible alias destination only if we don't have anything to link to git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48181 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
702d1cd358e2bb7cfdca2a2795706d18d881e275 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Always run 'make check' :) Fix fallout from prev. commit: query for possible alias destination only if we don't have anything to link to git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48181 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1438b9dd82887b8faa2c4670dca45965609a43c6 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Make error messages to have common style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48180 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
82a21e4cfbf0eb3eea040ae355bee12cd6ed45ed |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Make error messages to have common style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48180 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
01f69399352380532d480f6749daed660f50b15c |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly link globals with aliases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48179 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
30dd716f8ca5b65406c34827e0ceb4977dcc27cc |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly link globals with aliases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48179 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
968e39a5aba998a126278425da8287aae358e7a7 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Remove the LinkGlobal weirderness in common linking phase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48177 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ebb5850c39cca94fcc7e5186f246bb90eb9ba5cb |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Remove the LinkGlobal weirderness in common linking phase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48177 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2b48ef0450944c2c46633aec9baf6be835a3b503 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48176 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
15520982d862798afd8cc36eda6802358f8475b0 |
10-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48176 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
58d5e051574339106ce4139697ebadd21e34dbc0 |
09-Mar-2008 |
Ted Kremenek <kremenek@apple.com> |
Fix some compilation errors on msvc: - "Redefinition of I" (iterator masks previous definition) - include missing header file Patch by Argiris Kirtzidis! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48115 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d40cdd29d09900bf2749cb8f7cc5a69a1e612ac0 |
09-Mar-2008 |
Ted Kremenek <kremenek@apple.com> |
Fix some compilation errors on msvc: - "Redefinition of I" (iterator masks previous definition) - include missing header file Patch by Argiris Kirtzidis! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48115 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
75c7915c3a24f8063c274ccffe2dc9b7bc8bce1f |
07-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Clarify some important bits git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48010 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4da527cab66eff907a5fe6333e736afb0916531f |
07-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Clarify some important bits git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48010 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e20c814518e3322f5bf5f83e9ca42bd6bdd40745 |
07-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Small cleanup: propagate thread-localness via generic routine. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48009 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2bde2d8caf8e0ddb35060305719fb0224b94c887 |
07-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Small cleanup: propagate thread-localness via generic routine. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48009 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9f2ee703663d8ca7d91cfdaf773fc70273e9e482 |
06-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Missed patch from my last commit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47977 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fdad2d8095e80d5a5ceac0435c72546e1ace65ee |
06-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Missed patch from my last commit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47977 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3db9191baf5f5229a2f4d204c6332ba27fff81d0 |
06-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Resolve aliases to aliasees, where possible git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47975 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a68796cd7ee3ea742ecf74275ca43557508b92c0 |
06-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Resolve aliases to aliasees, where possible git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47975 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b5a4bd86df527c7d164197906861d2ca6f48678d |
06-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Handle functions as targets during linking of aliases as well git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47974 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cdf208a490c72e250be7f3a1ee7f3f4b7896cbb2 |
06-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Handle functions as targets during linking of aliases as well git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47974 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
58887bc59316bcaf0c0675a45ddecd6994f3fbc6 |
05-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Try hard to link aliases. Checks can be too strict by now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47968 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d039156e80bd44d1ba5c4195b3857fa6b8c66312 |
05-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Try hard to link aliases. Checks can be too strict by now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47968 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4fb2873bb46330da18f413cec661ce2fd0f9f37c |
05-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Remember the source->dest mapping when copying aliases. This fixes PR2054 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47945 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3cfecfde268532c903322fc53b9228d152be7c4b |
05-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Remember the source->dest mapping when copying aliases. This fixes PR2054 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47945 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1c01a72d4d29897763a85a9dd56a3457607ff2ef |
05-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Clarify the state-of-the-art git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47944 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2d4fd78e3d5370e4d5d462121d6d77cfbeabe4fb |
05-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Clarify the state-of-the-art git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47944 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
eba04156009222b7b3dad3cd51c8810cc6a2ac40 |
04-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly populate lists of defined/undefined symbols in presence of aliases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47900 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
555f071a9972a7d8403b3d0a2604f8c89aa436e9 |
04-Mar-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
Properly populate lists of defined/undefined symbols in presence of aliases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47900 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
6b0f14b96ae5fdc21904de33c8d07ec02e75d4e3 |
27-Feb-2008 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
Emit an error when a library is not found. It is the GNU ld behavior and it is expected by the configure scripts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47674 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
06c4268c551e6d9bed313661a93ca410906d903c |
27-Feb-2008 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
Emit an error when a library is not found. It is the GNU ld behavior and it is expected by the configure scripts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47674 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
a27694d7aac1bfcec2b776df460719b4a165a79a |
20-Feb-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
And final pack of warnings silencing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47372 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fb782ce954671ea444714a3fa493275e12217bdb |
20-Feb-2008 |
Anton Korobeynikov <asl@math.spbu.ru> |
And final pack of warnings silencing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47372 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f27dfcb210fec571d79bc881f5463e0b405707c0 |
19-Feb-2008 |
Chris Lattner <sabre@nondot.org> |
random cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47334 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
85dd49c5fb3b965bd63c5a0ca2c3f139489e18b2 |
19-Feb-2008 |
Chris Lattner <sabre@nondot.org> |
random cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47334 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4ee451de366474b9c228b4e5fa573795a715216d |
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
Remove attribution from file headers, per discussion on llvmdev. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
081ce940e7351e90fff829320b7dc6738a6b3815 |
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
Remove attribution from file headers, per discussion on llvmdev. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
fc643c5e88c596f217750dd91fcc66488dfed73d |
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
remove attribution from lib Makefiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45415 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
80455b86f2c6c56b56f690db3c1fdd3a401f9df3 |
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
remove attribution from lib Makefiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45415 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
650d5053bfb388bc81aecd202f16d2e128e1f23e |
28-Dec-2007 |
Anton Korobeynikov <asl@math.spbu.ru> |
Ignore functions with internal linkages during linking. This snipped mimics the behaviour of LinkGlobals() function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45375 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b06f0136548d59d9509a2174662d8337b75cda9e |
28-Dec-2007 |
Anton Korobeynikov <asl@math.spbu.ru> |
Ignore functions with internal linkages during linking. This snipped mimics the behaviour of LinkGlobals() function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45375 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
194c90ed2a8e74b5a1c5184835f84c572d524dad |
25-Dec-2007 |
Gordon Henriksen <gordonhenriksen@mac.com> |
Fixing several transforms which would drop the collector attribute when copying functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45356 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3e7ea1e79f0bdb067ad0f983bdacdfb00b0b19ad |
25-Dec-2007 |
Gordon Henriksen <gordonhenriksen@mac.com> |
Fixing several transforms which would drop the collector attribute when copying functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45356 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
dc024674ff96820d6020757b48d47f46d4c07db2 |
27-Nov-2007 |
Duncan Sands <baldrick@free.fr> |
Fix PR1146: parameter attributes are longer part of the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44359 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f5588dc4ec43da1e4423e5ff2394669c0f000350 |
27-Nov-2007 |
Duncan Sands <baldrick@free.fr> |
Fix PR1146: parameter attributes are longer part of the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44359 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c318329a1098a19137398af4d880f4d8cdd9cd8d |
08-Oct-2007 |
Dan Gohman <gohman@apple.com> |
Use correct parentheses with the '&& "..."' idiom in an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42750 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
930191fd0c453774208b4c91038592d1100cba75 |
08-Oct-2007 |
Dan Gohman <djg@cray.com> |
Use correct parentheses with the '&& "..."' idiom in an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42750 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
97f8b0900abddfa72fd59e777399280adb4ca0a6 |
20-Aug-2007 |
Chris Lattner <sabre@nondot.org> |
Fix PR1611 - Visibility should be ignored for a declaration when a definition's visibility is different. Likewise, the visibility of two declarations mismatching is not an error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41174 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b69fcb89052b3d468e8cf03a7cb76ec5aa25bee5 |
20-Aug-2007 |
Chris Lattner <sabre@nondot.org> |
Fix PR1611 - Visibility should be ignored for a declaration when a definition's visibility is different. Likewise, the visibility of two declarations mismatching is not an error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41174 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
49068bf31113e9f048bac5eda372835ed63e4f84 |
16-Aug-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Improve error handling in the linker by: 1. Eliminate redundant error messages. LinkInFile and LinkInArchive already call the error() method in each case so there's no use telling the user again that an item couldn't be linked in. 2. Improve the formatting of error messages (separating content). 3. Change the wording for the warning about unrecognized files. Make it clear that the file is being ignored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41121 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
6d89fc61ad3a0aeff36cafd22df3f16320d85ee8 |
16-Aug-2007 |
Reid Spencer <reid@x10sys.com> |
Improve error handling in the linker by: 1. Eliminate redundant error messages. LinkInFile and LinkInArchive already call the error() method in each case so there's no use telling the user again that an item couldn't be linked in. 2. Improve the formatting of error messages (separating content). 3. Change the wording for the warning about unrecognized files. Make it clear that the file is being ignored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41121 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
af11dc00a0c70fde950f70bd13a43e7cbb98ef72 |
16-Aug-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Ensure that error messages a propagated from calls to LinkInModule so they get reported to the end user. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41117 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
88133c084907f64e336a0d579c07711e22235e1d |
16-Aug-2007 |
Reid Spencer <reid@x10sys.com> |
Ensure that error messages a propagated from calls to LinkInModule so they get reported to the end user. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41117 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
53424ad141bc1298c3d1cbd28d5c823950541788 |
08-Aug-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Allow the filename "-" to be a place holder for stdin. This allows directing stdin through llvm-ld and llvm-link. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40938 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
da37243d0709379d71028ce96e03a1cc316b5554 |
08-Aug-2007 |
Reid Spencer <reid@x10sys.com> |
Allow the filename "-" to be a place holder for stdin. This allows directing stdin through llvm-ld and llvm-link. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40938 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
858dd546bb48542f4568cd8f5530388a7b9a3d62 |
22-Jul-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Report an error if one occurs in releaseModule. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40405 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
0a21de61705bacec92ca526db5eed5da75ec4150 |
22-Jul-2007 |
Reid Spencer <reid@x10sys.com> |
Report an error if one occurs in releaseModule. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40405 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc |
18-Jul-2007 |
Dan Gohman <djg@cray.com> |
It's not necessary to do rounding for alloca operations when the requested alignment is equal to the stack alignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
akefile
|
e75ca3d809ff17260efa320a949cb91ea2b3981e |
06-Jul-2007 |
Gabor Greif <ggreif@gmail.com> |
eliminate residual cruft related to recognizing bytecode files. bitcode files are the only LLVM format left. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37945 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
a99be51bf5cdac1438069d4b01766c47704961c8 |
05-Jul-2007 |
Gabor Greif <ggreif@gmail.com> |
Here is the bulk of the sanitizing. Almost all occurrences of "bytecode" in the sources have been eliminated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37913 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inker.cpp
|
00d8a84b4432bedc3050f012454cbf6ef1b05461 |
28-Jun-2007 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
Fix a bug in my previous patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37778 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
31ed0fb804dd86fb15093e114701932119914400 |
28-Jun-2007 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
When linking two modules, we should copy the alias. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37776 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9613e871d26f123789d98c61879b4dbe944a6d31 |
07-Jun-2007 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
Propagate alignment, section name and visibility when linking "appending global values". Fix noinline linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37482 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4bcca0f2ac85c918fc8617e34b7642e5e5233460 |
06-May-2007 |
Chris Lattner <sabre@nondot.org> |
switch this to bitcode instead of bytecode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36867 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inker.cpp
|
1a019e5ffd0d8643ddffc7ed5736eb78065c5f88 |
06-May-2007 |
Chris Lattner <sabre@nondot.org> |
add bitcode support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36855 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inker.cpp
|
c9a83e4f19519e19469efa0ed39d81ed60b94401 |
30-Apr-2007 |
Reid Spencer <rspencer@reidspencer.com> |
If an archive is not recognized as an LLVM bytecode archive then declare that it is native so that the linker will pass it on downstream. This avoids a problem where the native link line fails because there is both a .so and a .a file. The .a file gets processed as bytecode and then dropped from the command line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36584 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
|
126b1b868309659e124f7706bc8161943cfc0290 |
30-Apr-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Dependent libraries could be native too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36582 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
9cd3ccf5065a8a139e458d016c88a8512471598b |
29-Apr-2007 |
Anton Korobeynikov <asl@math.spbu.ru> |
Implement visibility checking during linking. Also implement protected visibility support for bitcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36577 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c763552299165b88d34a7d4f2d76ff413cbc7f67 |
12-Apr-2007 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
Implement the "thread_local" keyword. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35950 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
18da0720887527ed570e9703ae5f290beb491ee1 |
11-Apr-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1146: Put the parameter attributes in their own ParamAttr name space. Adjust the rest of llvm as a result. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35877 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
c07cfdda023b168c085f0b5c9a78a90b22fa98eb |
04-Apr-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1302: Use local variable names that match the function parameter name that it is passed to so the code is more clear, to wit: is_bytecode -> is_native git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35656 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
c8539731bd7ef7dae1dfc267446f734380f929c9 |
04-Apr-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1302: Implement file tests for both LinkInLibrary and LinkInFile to determine if the file is native. Don't generate warnings if the file is native. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35653 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e |
15-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1195: Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34293 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
33f294930e0affa51c3818405741abd80cc90316 |
11-Feb-2007 |
Chris Lattner <sabre@nondot.org> |
simplify this code by using value::takename git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34172 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f2e292ce58ca07d9bbe3cad75f8baa35bd85964a |
07-Feb-2007 |
Chris Lattner <sabre@nondot.org> |
push bytecode decompressor out through APIs. Now the bytecode reader api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34012 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
688b0490e22eb67623f5aaa24406209be74efcb2 |
05-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR411: Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33922 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
ef9b9a793949469cdaa4ab6d0173136229dcab7b |
05-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR411: This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33918 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
619f024cc315b9edcc6bc71ebea68fd44d85aeaf |
04-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Fix some comments and other minor sundry things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33873 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
471feac1b297b9458de18d973af371bf7f10296b |
04-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Ensure that visibility and section are properly propagated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33872 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8bef0373f1b8fab20b9acd277377ca01d72bac7e |
04-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Back out last revision which was committed by accident. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33871 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3dad8dc367dc511318a3eb136982c13c77db7b04 |
04-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Make sure that section and visibility are properly propagated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33870 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5dfbaf1fe3fa6914095cc55cde20b1ed25187b56 |
01-Feb-2007 |
Andrew Lenharth <andrewl@lenharth.org> |
preserve sections of globals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33756 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5cbf985dcbc89fba3208e7baf8b6f488b06d3ec9 |
30-Jan-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid confusion with external linkage types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33663 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkModules.cpp
|
ec9bfdc152a870d3c62377ed6855fb3bff69511c |
29-Jan-2007 |
Chris Lattner <sabre@nondot.org> |
Read from the right place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33611 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c36357c406911ded5a0e2924998d885815370fdb |
29-Jan-2007 |
Chris Lattner <sabre@nondot.org> |
Fix PR1139 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33610 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
26f238589f9bb372d24b6fb2bc32edbf046fd9ee |
26-Jan-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR761: The Module::setEndianness and Module::setPointerSize methods have been removed. Instead you can get/set the DataLayout. Adjust thise accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33530 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a54b7cbd452b3adb2f51346140d996b29c2cdb30 |
12-Jan-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1064: Implement the arbitrary bit-width integer feature. The feature allows integers of any bitwidth (up to 64) to be defined instead of just 1, 8, 16, 32, and 64 bit integers. This change does several things: 1. Introduces a new Derived Type, IntegerType, to represent the number of bits in an integer. The Type classes SubclassData field is used to store the number of bits. This allows 2^23 bits in an integer type. 2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and 64-bit integers. These are replaced with just IntegerType which is not a primitive any more. 3. Adjust the rest of LLVM to account for this change. Note that while this incremental change lays the foundation for arbitrary bit-width integers, LLVM has not yet been converted to actually deal with them in any significant way. Most optimization passes, for example, will still only deal with the byte-width integer types. Future increments will rectify this situation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33113 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
78d033e086e19e016273de014f9214aa6f3f844b |
06-Jan-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR411: Take an incremental step towards type plane elimination. This change separates types from values in the symbol tables by finally making use of the TypeSymbolTable class. This yields more natural interfaces for dealing with types and unclutters the SymbolTable class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32956 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8753c447a5f8eec1421331c40ffbb72c6d411f78 |
15-Dec-2006 |
Andrew Lenharth <andrewl@lenharth.org> |
extern_weak linkage. fixes PR1038 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32603 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4da49122f3f3c8da68a52723d846b88c72166a68 |
12-Dec-2006 |
Reid Spencer <rspencer@reidspencer.com> |
Change inferred getCast into specific getCast. Passes all tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32469 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1a097e30d39e60303ae2b19f7a56e813f3e3c18e |
08-Dec-2006 |
Bill Wendling <isanbard@gmail.com> |
Don't use <sstream> in Streams.h but <iosfwd> instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32340 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e81561909d128c6e2d8033cb5465a49b2596b26a |
07-Dec-2006 |
Bill Wendling <isanbard@gmail.com> |
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are now cerr, cout, and NullStream resp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
inker.cpp
|
78ee7b78c3c47b71c4b7a1475438d6574216a64b |
01-Dec-2006 |
Anton Korobeynikov <asl@math.spbu.ru> |
Introducing external weak linkage. Darwin codegen should be added later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32052 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
41edad7e4b8872414564dea5fb41fa6194375355 |
27-Nov-2006 |
Bill Wendling <isanbard@gmail.com> |
Removed #include <iostream> and replaced with llvm_* streams. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31936 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
inker.cpp
|
0288d18bb68b3072c9d5f08a0c5b45041f900baa |
11-Nov-2006 |
Reid Spencer <rspencer@reidspencer.com> |
Remvoe a do-nothing else block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31687 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
4952143236afe43b974798c45ed265bb175c9d7f |
11-Nov-2006 |
Reid Spencer <rspencer@reidspencer.com> |
For PR998: Fix an infinite loop in the Linker and a few other assorted link problems. Patch contributed by Scott Michel. Thanks, Scott! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31680 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
|
b324bd735ff5c99a52cd3c3f5d01c0e1398a2d3a |
09-Nov-2006 |
Chris Lattner <sabre@nondot.org> |
silence warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31587 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
3ed469ccd7b028a030b550d84b7336d146f5d8fa |
02-Nov-2006 |
Reid Spencer <rspencer@reidspencer.com> |
For PR786: Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31380 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
b74ed07bfd3af42331b1964c24c39912610a08f4 |
14-Sep-2006 |
Anton Korobeynikov <asl@math.spbu.ru> |
Adding dllimport, dllexport and external weak linkage types. DLL* linkages got full (I hope) codegeneration support in C & both x86 assembler backends. External weak linkage added for future use, we don't provide any codegeneration, etc. support for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30374 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkModules.cpp
|
501d529ccc77a092ca7fc1b21db72933a4c5859a |
29-Jul-2006 |
Chris Lattner <sabre@nondot.org> |
Remove a redundant syscall. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29405 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
27d672136a57519095a3ef20161697749cffb57c |
15-Jul-2006 |
Chris Lattner <sabre@nondot.org> |
eliminate some ugly code, using ConstantExpr::getWithOperands instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29149 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8d8a7ffe580c622e7e43f1426bca64e517de0d06 |
07-Jul-2006 |
Reid Spencer <rspencer@reidspencer.com> |
Finish removal of EH usage from the Archive library. The REQUIRES_EH flag in lib/Bytecode/Archive/Makefile is now removed. One small step closer to a smaller LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29067 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
1127315562b221010040925980040fd4f65bdb1c |
16-Jun-2006 |
Chris Lattner <sabre@nondot.org> |
Fix Regression/Linker/2006-06-15-GlobalVarAnment.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28812 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
620fd68b1086b4d99b23951357299bee357aa62a |
01-Jun-2006 |
Chris Lattner <sabre@nondot.org> |
Fix linking of inline asm objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28640 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9273b0403e992bbdf4f9e7c48f990c7658610b8a |
08-Apr-2006 |
Chris Lattner <sabre@nondot.org> |
Add shufflevector support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27515 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
39c61fd5274509f34766073f10aaa20c99068804 |
07-Apr-2006 |
Evan Cheng <evan.cheng@apple.com> |
Add code to RemapOperand() to handle Instruction::ExtractElement and Instruction::InsertElement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27477 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6631601eeda2300abdce11fbd7a7a3daa2694d39 |
24-Jan-2006 |
Chris Lattner <sabre@nondot.org> |
Rename method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25571 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e1b2e14f92e8e9da1eb4854511a881cf9c22af3c |
24-Jan-2006 |
Chris Lattner <sabre@nondot.org> |
Add support for linking inline asm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25560 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a88eb9287eb14ba62ca6324b2b249e0ae9fe3309 |
20-Jan-2006 |
Chris Lattner <sabre@nondot.org> |
add support for ConstantPacked to the linker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25467 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
43da9c65f26d2c2211f1028f70320a65d7868cab |
17-Jan-2006 |
John Criswell <criswell@uiuc.edu> |
Fixed style of curly brace. No functionality changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25414 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
f4484f3e16e19377af27f062ca8a0450616d319a |
10-Jan-2006 |
Reid Spencer <rspencer@reidspencer.com> |
For PR521: With these patches we implement the ability for the Linker library to keep track of which libraries were actually bytecode files (not archives) and cause their users to remove such files from the list of libraries to pass to the native linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25169 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
3e5e127f2986ac177bc16f5970ae0dc4dee8acec |
10-Jan-2006 |
Reid Spencer <rspencer@reidspencer.com> |
Be a little more explanatory in a comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25168 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
328ead9fce26b505857234de0e3508b3372e2e6d |
13-Dec-2005 |
Reid Spencer <rspencer@reidspencer.com> |
Adjust the constructor to the Linker class to take an argument that names the module being constructed. This is used to correctly name the module. Previously the name of the linker tool was used which produces confusing output when the module identifier is used in an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24699 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
ed74a4ef3b813bed0c0f4bb5af42229d50133da2 |
06-Dec-2005 |
Chris Lattner <sabre@nondot.org> |
Fix test/Regression/Linker/2005-12-06-AppendingZeroLengthArrays.ll and PR662. Thanks to Markus for providing me with a ton of files to reproduce the problem! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24619 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f36aeedaa30b34b044c20e8ef5d43bd8c6c0e342 |
24-Oct-2005 |
Chris Lattner <sabre@nondot.org> |
DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23940 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
dd04df0ec33a903ee7fc747701bafde622f77d8b |
08-Jul-2005 |
Reid Spencer <rspencer@reidspencer.com> |
For PR495: Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22349 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
inker.cpp
|
c7f083297cd796c2fadb534307e4ef406fd68945 |
07-Jul-2005 |
Reid Spencer <rspencer@reidspencer.com> |
For PR495: Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22345 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inker.cpp
|
cb9048a6e813ca0c89f59375f3aa15ae49e153b4 |
09-May-2005 |
Chris Lattner <sabre@nondot.org> |
Preserve CC's when linking modules git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21799 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f976c856fcc5055f3fc7d9f070d72c2d027c1d9d |
22-Apr-2005 |
Misha Brukman <brukman+llvm@gmail.com> |
Remove trailing whitespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21422 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkItems.cpp
inkModules.cpp
inker.cpp
|
c72e57314a0ca7fe35ad45ce86bf074addf79883 |
16-Mar-2005 |
Chris Lattner <sabre@nondot.org> |
fix some 80 column violations Add support for programs that define main in a .a file, such as f2c'd programs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20631 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
fc82ef67971403c01f19e672b6af8d2a5caf8a30 |
15-Mar-2005 |
Chris Lattner <sabre@nondot.org> |
consolidate LinkFiles into LinkItems, use lib_* iterators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20630 91177308-0d34-0410-b5e6-96231b3b80d8
inkFiles.cpp
inkItems.cpp
|
ad988f397d63c99cf141eee0f9e6743f53543842 |
15-Mar-2005 |
Chris Lattner <sabre@nondot.org> |
consolidate LinkLibraries into LinkItems git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20629 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
inkLibraries.cpp
|
e4d5c441e04bdc00ccf1804744af670655123b07 |
15-Mar-2005 |
Chris Lattner <sabre@nondot.org> |
This mega patch converts us from using Function::a{iterator|begin|end} to using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20597 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkModules.cpp
|
97716a47a1929c57f6ce2c34d76141fd51071ce1 |
19-Feb-2005 |
Chris Lattner <sabre@nondot.org> |
Add support for ".so" files compiled with LLVM which contain LLVM bytecode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20253 91177308-0d34-0410-b5e6-96231b3b80d8
inkLibraries.cpp
inker.cpp
|
b9476d9b45025905146f40370056a985f305bc8e |
19-Feb-2005 |
Chris Lattner <sabre@nondot.org> |
Eliminate silly warnings from the linker of the form: WARNING: Type conflict between types named 'union.._604.'. Src=' %union.._604.'. Dest=' %union.._604.' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20252 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
12945acd4aa40b40b1517bcf785622ab9671893f |
13-Feb-2005 |
Chris Lattner <sabre@nondot.org> |
Minor cleanup. No need to explicitly tell the compiler the template arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20153 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
50c301b9bbf80c00d26e49129a2a5d02132b9b2b |
13-Feb-2005 |
Chris Lattner <sabre@nondot.org> |
Print something useful for gccld -v with an archive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20148 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
e6f8c5a71682ffcc33d3c83a40821ded8f2c8033 |
12-Feb-2005 |
Chris Lattner <sabre@nondot.org> |
Allow globals to be of different const'nesses when we link. This finally resolves PR502, PR450, and test/Regression/Linker/2005-02-12-ConstantGlobals{,-2}.ll correctly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20135 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4ca8e710681cd932775ef2f10af81a018b253770 |
20-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Remove un-needed #includes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19061 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
a834f5d79330b7f8b0327343a7ebc774f76628e0 |
16-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Fix a compile error. config.h is now needed because DataTypes.h doesn't include it any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18993 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
903f21dd3939a5c1e0bf1190cd5f851da883e60e |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
* Fix header block. * Fix loop style per standards * Don't create a new Module when the Linker's module is released. * Add/fix function comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18871 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
ff5f3ab9fe5c2396dff0dad531db5ce53f702c5e |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Add missing space in a comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18870 91177308-0d34-0410-b5e6-96231b3b80d8
inkLibraries.cpp
|
04f5412496b077fb4eaff7a0d3f8557e669d5ec9 |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Fix header and function comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18867 91177308-0d34-0410-b5e6-96231b3b80d8
inkFiles.cpp
|
de4cedca140bfdf2c4c2cd059f61d7ab964ec6fa |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
This file contains basic Linker facilities needed by all tools git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18860 91177308-0d34-0410-b5e6-96231b3b80d8
inker.cpp
|
0ba9e211bed7813949aaca97e6b15579c8188e05 |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Make LinkModules a static member function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18859 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7a87ce043b0c15401750f4621a90bfd3221caab5 |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
This file contains only the Linker's library linking support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18858 91177308-0d34-0410-b5e6-96231b3b80d8
inkLibraries.cpp
|
e84de29663f4b8fc0540218540b93b74ca145e1b |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
For PR351: \ * Remove redundant static function LinkOneLibrary. \ * Remove unneded #includes \ * Convert FileSupport usage to sys::Path instead git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18857 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
3ece6397cbb3179b15bb7446a97bbe9883cbbed6 |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
This file contains only the Linker's file linking support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18856 91177308-0d34-0410-b5e6-96231b3b80d8
inkFiles.cpp
|
7dde0e3b056e1fadf25c4ef208bd2cdcb6b06de0 |
13-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
For PR351: \ * Convert functions to Linker:: methods. \ * Remove unneeded #includes \ * Utilize sys::Path utilities not FileSupport utilities \ * Move File & Library linking functions to other source files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18855 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
152f19ac6514ec29e183ddcdf2ea71599638dc4c |
10-Dec-2004 |
Chris Lattner <sabre@nondot.org> |
Make sure to link the target-triple as well, so it ends up in the .llvm.bc file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18774 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b2abb26fe150f790f23e6777b24a2aac349349a8 |
08-Dec-2004 |
Chris Lattner <sabre@nondot.org> |
Turn this error back into a warning, fixing the povray regression git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18655 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
d37a75b9be3a31691c9e492508bf0c389ad2024d |
08-Dec-2004 |
Chris Lattner <sabre@nondot.org> |
Revert this disgusting hack, John has a much nicer solution git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18611 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a6a2bdd0e023192b8fb31679dbde6bbb1b584547 |
08-Dec-2004 |
Chris Lattner <sabre@nondot.org> |
Add a disgusting hack to work around a libstdc++ issue. This code should be removed when PR400 is resolved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18610 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4bdf1c9855f3755aae927c390df61b5bf507aa60 |
05-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Fix PR139: \ Implement LinkItems and BuildLinkItems interfaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18547 91177308-0d34-0410-b5e6-96231b3b80d8
inkItems.cpp
|
c8ef1edc63508d21bf8e38112fc125cde01fdbb9 |
04-Dec-2004 |
Chris Lattner <sabre@nondot.org> |
Fix linkage of mismatched weak globals. This unbreaks 300.twolf git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18494 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
aee38ea5698fd770bb41d01d06542cb849e131a4 |
03-Dec-2004 |
Chris Lattner <sabre@nondot.org> |
Significantly rework linker support for global variables, allowing it to correctly link globals whose LLVM types do not match. This fixes several of the F2C SPEC FP benchmarks, which were failing this due to the implementation of common blocks used by f2c. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18465 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
be0b356593c5d87c93e83250a99878878fc62c31 |
02-Dec-2004 |
Reid Spencer <rspencer@reidspencer.com> |
PR466: * Make the linker find lib*.bca files now instead of lib*.bc since those are what the makefiles now generate for bytecode archives. * Make sure the linker only links archives when LinkLibraries is called. Previously if it found a lib*.bc file and that file was a bytecode file, it would link in the entire bytecode. This could make -lc -lc fail with duplicate symbols error but it shouldn't as searching multiple libraries, even the same one more than once, is permitted. * Now that the above problems are corrected, implement the dependent libs feature. After the module is linked with all specified libraries, the LinkLibraries function will obtain the set of dependent libraries from the linked modules and attemp to find and link against those libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18428 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
0022b834914ba49d11a43c0c06c47edfdc59524f |
30-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Revert version 1.39. It breaks the ordering of the library processing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18399 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
a564845f838cb9e56e6df5106ad57d91552e6568 |
29-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Shared library extension is now in LTDL_SHLIB_EXT git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18353 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
53c4c5672c2db81a2d85fcf4e8d95028fc0d535d |
25-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Implement dependent library linking. It is no longer required that -lstdc++ -lstdsup++ no -lc be passed on the command line to llvm linkers if the progam being linked was compiled with the C/C++ Front End or Stacker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18243 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
719012d6254ee425464f034250176283fb96793b |
25-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Remove blank comment lines for uniformity. Make sure lines don't exceed 80 cols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18242 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b9371ce55251da034ac5afad2bc33d9b8f8ff9b4 |
19-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Eliminate unsightly ;; git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17979 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
3cf2c32202c9bccfa3005c5b1edcecc69dd64598 |
19-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Reduce the amount of work in LinkInArchive by not searching the archive for symbols it has already identified as not defining. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17975 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
a63acbfeab516203849fced87a036f236babcea5 |
16-Nov-2004 |
Chris Lattner <sabre@nondot.org> |
Don't increment a dead iterator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17904 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0033baf94e049e075f3ba4700c109779e2d7c131 |
16-Nov-2004 |
Chris Lattner <sabre@nondot.org> |
Simplify the remapper by only needing one map, since the body of the functions being linked do not need to be remapped any longer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17900 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4bbfbff119acab90fc67cd3d01b156bf88832286 |
16-Nov-2004 |
Chris Lattner <sabre@nondot.org> |
Take advantage of the fact that we are allowed to clobber the input module by splicing function bodies from the src module to the destination module. This speeds up linking quite a bit, e.g. gccld time on 176.gcc from 26s -> 20s when forming the .rbc file, with a profile build. One of the really strange but cool effects of this patch is that it speeds up the optimizers as well, from 12s -> 10.7s, presumably because of better locality??? In any case, this is just a first step. We can trivially get rid of the LocalMap now and do other simplifications. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17893 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
99d3604acf7eaa2ce11b29fc5a005047148cc9d9 |
16-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Per code review:\ * Adjust indentation\ * Ensure memory do not leak if exceptions happen (std::auto_ptr use) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17885 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
242e525edcb965d54c73d016ccdaa4baaa9f083c |
16-Nov-2004 |
Chris Lattner <sabre@nondot.org> |
The second arg may be clobbered by this function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17880 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
a4d0c6fb94003609d1e00a96887c9db12d6f1936 |
16-Nov-2004 |
Chris Lattner <sabre@nondot.org> |
use an autoptr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17875 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
6238a85e4f6931a9572e5d327c3ffa7ce1087d50 |
15-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Remove a forgotten debug output line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17810 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
7cc371a7958c7a049c679a59023c3c8c83f6cc83 |
15-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Linker.h moved to include/llvm from include/llvm/Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17807 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
605b9e2c5bd1b0c151a0b15d01e6df3aba93d52f |
15-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Linker.h has a new home. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17801 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
a455cca62fd122279252cfaef0d473f932ee19e2 |
14-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Don't bother with a re-linked library, ensure archive library is built. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17773 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
8bbb17abe6c85d86e86a4f55265875ab9a4524a7 |
14-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
*Adjust prototypes for public interface. *Rewrite LinkInArchive to use symbol tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17772 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
5c911ab6f14de4f891f25e08a3977548917c8ec6 |
12-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Makefile for lib/Linker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17695 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
|
7f49602e5ac7186c9505a0496393dd624515b459 |
12-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
This file originated in lib/VMCore/Linker.cpp but now lives in lib/Linker/LinkModules.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17694 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c408c45900dfcf469631dcde2abc9a893f42249c |
12-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
This file originated in tools/gccld/Linker.cpp but now lives in lib/Linker/LinkArchives.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17693 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
669b52439916645b37d01c360c35d86b46617743 |
09-Nov-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
Output the program name (in this case, gccld) with warning about invalid files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17638 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
eda20f933b85472573bde54550e1ffef66aecfa7 |
08-Nov-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
Don't silently ignore invalid files: tell the user! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17633 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
07adb2836b8aa7a3872e33c285958f5937662b50 |
05-Nov-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Stop propagating method names that violate the coding standard git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17498 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b976e668165e1875a8f1eb7af800e33bb1e4393d |
16-Oct-2004 |
Chris Lattner <sabre@nondot.org> |
Add support for undef and unreachable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17041 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d4984cca0ec95b3602955b8e41260d0d8b882129 |
05-Oct-2004 |
Chris Lattner <sabre@nondot.org> |
Make sure the const bit gets inherited correctly when linking declarations of disagreeing constness. This fixes test/Regression/Linker/ConstantGlobals[123].ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16692 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
57a0efa32240ef03ea318f9ba7680fd2b8609c6e |
11-Sep-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Implement support for dependent libraries. The "source" module's dependent libraries list is merged into the "destination" module's list. Also, if the source module is one of the dependent libraries, it is removed from the list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16282 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
551ccae044b0ff658fe629dd67edd5ffe75d10e8 |
02-Sep-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Changes For Bug 352 Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
72cf7df6a364c213a94d01e1f0f8d918940c8416 |
21-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
Fix a nasty bug that Nate ran into. In particular, instead of emitting a 2+MB error message, print out: llvm-link: error linking in 'g.2.rbc': Global Variable Collision on ' %struct.D_Reduction* %d_reduction_10_gram' - External linkage globals have different initializers That's a bit more concise, huh? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15958 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
aad2deb17c3e624cae4ebc1ed51fc5264fa1c0b8 |
05-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
Fix another minor problem that exists if you ahve multiple functions with nonunifiable types but the same name. Down with PR411! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15511 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
82b5b219dd3b9035442389ddcd58e6f859aae039 |
05-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
Fix a typeo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15510 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
868bbf35b079a7f356f6b2fbd9df7e66552bc57e |
04-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
Fix a major regression in my previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15486 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
cc7ba49d85b66955516ff0d9574a70e1637dea36 |
04-Aug-2004 |
Alkis Evlogimenos <alkis@evlogimenos.com> |
Stop using getValues(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15485 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5a837defff581accc09048bea1cd839009e374a7 |
04-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
FindGlobalNamed used to take 2.92s out of 8.39s running a profile build of gccld -disable-opt on 252.eon. This patch deletes it and replaces it with a map. The proper fix for this is to fix PR411, but this will do in the short term. gccld on eon now takes 5.51s, which is 50% faster than before this patch. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15480 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7b0c84dcf59b6ac3a27843fd8162ab36928fba35 |
04-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
I swear I compiled this, really I did. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15467 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c003628a612d3687fb77088a5894314210a65385 |
04-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
Factor some code out, no substantial change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15466 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fe41069070f1a4b2d58a996b1f82ff747d076435 |
04-Aug-2004 |
Chris Lattner <sabre@nondot.org> |
Concisify some code Do not call FindGlobalNamed when we know we will ignore the result (because we are not going to link a static symbol anyway). This speeds up gccld -disable-opt on 252.eon from 8.63s to 8.39s. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15465 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
47b14a4a6a455c7be169cfd312fcbe796f0ad426 |
29-Jul-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
Fix #includes of i*.h => Instructions.h as per PR403. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15334 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
00dc4796132933e76fe2b834ca087e42621c175a |
18-Jul-2004 |
Reid Spencer <rspencer@reidspencer.com> |
bug 122: - Replace ConstantPointerRef usage with GlobalValue usage - Correct isa<Constant> for GlobalValue subclass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14930 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c28a224c68adf0464c275778af4bce762ad25d37 |
04-Jul-2004 |
Reid Spencer <rspencer@reidspencer.com> |
- #include <iostream> since its not in Value.h any more. - constify use of Type* returned from symbol table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14615 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
008248f2c098f7680b5b393d6e3006cd7d974b77 |
23-Jun-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
Linker.h moved to include/llvm/Support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14351 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
c837dd93cd20b7e37f70d9496ef63e213e4b4713 |
23-Jun-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
Linker.h moved to include/llvm/Support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14349 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f70c22b019494723d0e706f93d6542dfaa6e73a5 |
17-Jun-2004 |
Chris Lattner <sabre@nondot.org> |
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14201 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0ebee7410f2b826d624fa81acb8c2e4e09c491ab |
02-Jun-2004 |
Chris Lattner <sabre@nondot.org> |
Move some functions out of gccld.cpp to GenerateCode.cpp. This allows us to reduce the inter-file interface in the gccld tool and gets some uninteresting code out of gccld.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13942 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
bed85ff010b95923646ed4e187a5d432cedf67da |
27-May-2004 |
Chris Lattner <sabre@nondot.org> |
Header file moved git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13813 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
567bc2cc1ed4d610daceecbb4ff7f92ebde1b530 |
25-May-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Convert to SymbolTable's new lookup and iteration interfaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13751 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7a46e4c62b0c8bf62b278d8c279440b220e52307 |
15-Apr-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
Don't use invalid HTML in a doxygen comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12962 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
1438102576b94d6dac9bb18e8df291c4d632572d |
31-Mar-2004 |
Chris Lattner <sabre@nondot.org> |
Fix linking of constant expr casts due to type resolution changes. With this and the other patches 253.perlbmk links again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12565 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c38aa6dd7952cbc0d890387a8e728412711d9044 |
23-Feb-2004 |
Alkis Evlogimenos <alkis@evlogimenos.com> |
Include Config/config.h for SHLIBEXT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11779 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
57cb9883aa4c82357594d4186858f175135be3b1 |
17-Feb-2004 |
Chris Lattner <sabre@nondot.org> |
Fix PR245: Linking weak and strong global variables is dependent on link order git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11565 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
de512b5b2edebe9c9021a92c7c7a9ae9fbc380d6 |
15-Feb-2004 |
Chris Lattner <sabre@nondot.org> |
Adjustments to support the new ConstantAggregateZero class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11474 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7f7d16b62f9789c378a489a65ad51d50687c4c36 |
26-Jan-2004 |
John Criswell <criswell@uiuc.edu> |
Fixes for PR214. Use the SHLIBEXT variable instead of hardcoding .so into every file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10976 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
c6646ebdb957a3c613d389be8b0135271b8b8ece |
12-Jan-2004 |
Chris Lattner <sabre@nondot.org> |
Remove use of ConstantExpr::getShift git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10792 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f7703df4968084c18c248c1feea9961c19a32e6a |
09-Jan-2004 |
Chris Lattner <sabre@nondot.org> |
Finegrainify namespacification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
368751f2b721c09f827d73b929ab87969514cc07 |
23-Dec-2003 |
John Criswell <criswell@uiuc.edu> |
Modified the logic so that library objects with main() are only linked in if the program currently has main undefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10597 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
1715ce00e424afcc03eea25edec441ae14392304 |
23-Dec-2003 |
John Criswell <criswell@uiuc.edu> |
Modified the linker so that it always links in an object from an archive that defines the symbol "main." This is a hack that ensures that programs that place their main function in a library and then link it in (i.e. Apache 2.x) get their main function linked in. There is probably a more correct way to do this, but this works for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10594 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
6cc8ca92291c8b18d8aa88d43c50dd25d0740ca4 |
28-Nov-2003 |
Chris Lattner <sabre@nondot.org> |
* The return value of LinkLibraries is ignored, so remove it. * Finegrainify namespacification of Linker.cpp * If linking a library in fails, do not STOP LINKING IN LIBRARIES AND CONTINUE ANYWAY! Instead, just output the warning, and keep going. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10249 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
84fbc653ce78919196acea9bed9bb7288d461ee7 |
20-Nov-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
Add ability to search only for native shared object, and expose the functionality to the rest of gccld. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10113 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
adbc0b5287bf36893cdcae2440d48b3cb3489e38 |
20-Nov-2003 |
Chris Lattner <sabre@nondot.org> |
Spew symbolic types! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10110 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2282ae1ebdd58541f73b4482e51bce7f67c5b4ee |
17-Nov-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
When we find a module we want, in an archive, in verbose mode, print out the module's identifier (which should now contain the name of both the archive and the module.) Wrap some lines at 80 cols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10039 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
d0fde30ce850b78371fd1386338350591f9ff494 |
11-Nov-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
Put all LLVM code into the llvm namespace, as per bug 109. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
inkModules.cpp
|
0d723acf15b0326e2df09ecb614b02a617f536e4 |
11-Nov-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
Move IsArchive, IsBytecode to FileUtilities. Fix up some method comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9902 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
ee8adb1955fde8d8e9f36b07b2d7f3f15314d051 |
11-Nov-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
This version of Linker.cpp works a lot better, but it's a little messy. Sorry. Use FileOpenable() instead of FileExists(). Create IsBytecode() predicate -- like IsArchive(), but for bytecode files. Use IsBytecode() before trying to load any file as a bytecode file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9893 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
3b3640a3733c6ecdba4a8ca2ca9d28a6ce957769 |
05-Nov-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
Shorten and correct some function-header comments. Make "verbose" output MUCH nicer. Now it tells you when you are linking a bytecode file, or an archive, and whether it's because you called it by name, or because you gave it a -l option, and it says "Trying" before it takes action and prints a message in the past tense afterwards. Make LinkFiles not skip the first file in Files. Make LinkFiles warn you if it can't find a file and LLVM_LIB_SEARCH_PATH is unset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9747 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
d981f8af79be9ea647d593531091740a3a27a85f |
05-Nov-2003 |
Chris Lattner <sabre@nondot.org> |
Further fixes for PR93 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9738 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
700867bb69ae1469f2b20005a79fd133e83fd552 |
04-Nov-2003 |
John Criswell <criswell@uiuc.edu> |
Checking in Chris's suggestions: Added assert() to ensure symbol table is well formed. Added code to remember the value that was found; resolving types can change the symbol table and invalidate the value of the iterator. Added comments to the ResolveTypes() function (mainly for my own benefit). Please feel free to correct the comments if they are not accurate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9693 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
35956558e26e655aaa2e8ad6ee405365271869a4 |
27-Oct-2003 |
Chris Lattner <sabre@nondot.org> |
Fix test: Linker/2003-10-27-LinkOncePromote.ll Fix PR58 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9530 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
aeb18ce9c012f8554f48bae9bb32351c6eeaa26c |
22-Oct-2003 |
Chris Lattner <sabre@nondot.org> |
Fix bug: Linker/2003-10-21-ConflictingTypesTolerance.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9357 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f85770c9a670dc5c360015125389c389ae9592c7 |
21-Oct-2003 |
Chris Lattner <sabre@nondot.org> |
Fix message to make more sense and confuse Chris less git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9354 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f1fce0881f90e8ec6a47703cbc90db5feebaef7a |
21-Oct-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
Fix off-by-one error in processing of libraries named on command line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9351 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
b576c94c15af9a440f69d9d03c2afead7971118c |
20-Oct-2003 |
John Criswell <criswell@uiuc.edu> |
Added LLVM project notice to the top of every C++ source file. Header files will be on the way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
1dd27b157bbe7d9e44fa72abbc8b0f08eba804ec |
20-Oct-2003 |
Chris Lattner <sabre@nondot.org> |
fix file header git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9294 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
7c0e022c5c4be4b11e199a53f73bbdd84e34aa80 |
20-Oct-2003 |
John Criswell <criswell@uiuc.edu> |
Added copyright header to all C++ source files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9291 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
72ac148d4964fbff950fe11a0eeeda73973b849b |
16-Oct-2003 |
Chris Lattner <sabre@nondot.org> |
Add support for 'weak' linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9171 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
82a036fd192ac71b1326f6a4e67cef5c0514f476 |
10-Oct-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
Don't include "Config/stdlib.h". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9037 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
cf00c4ab3ba308d45d98c5ccab87362cf802facb |
10-Oct-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
Fix spelling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9027 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
608e75c604a0454f51d514e23b3d70254b832a10 |
08-Oct-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
Make more error messages have gccld's name in them. Add a newline after "Cannot find <library>". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8968 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
5208ba1292efae29b37e8f268a07802493e3e8b7 |
30-Sep-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
Doxygen-ified comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8778 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
61087cc023128946e50deeb544f88c78ea96fda7 |
30-Sep-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
Made code more terse: * Deleted empty comment lines * No single begin-braces '{' on a line by themselves git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8773 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
e98ddfce7edbcdcce0e60d4162da1306228c3f4a |
30-Sep-2003 |
Brian Gaeke <gaeke@uiuc.edu> |
1. Use better error messages in LinkFiles(). 2. I think the caller of LinkFiles() should not ignore a true return value. (If you have a good reason why it ought to, feel free to revert this. It's just something that's been bugging me for a while.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8760 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
a58d2be76f90aaeeccd89e9794ccd053f370cf8e |
30-Sep-2003 |
Chris Lattner <sabre@nondot.org> |
Update file headers for renamed files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8758 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
e676313966c3ede37644dbf2e49aa06f0c8b242a |
30-Sep-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
Tersified code: * Removed space between function name and its argument list * Removed space between '&' and variable name * Removed empty comment lines: `//' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8750 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
17dc4ce5a7a6b383a06a86756f5fc20565984e73 |
30-Sep-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
* Ordered includes according to LLVM programmers' guide * Made code layout more verbose: no more '{' on a line by itself * Pruned extra whitespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8748 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
71478b7f72399d48469b7508fba4dea9bf696c98 |
19-Sep-2003 |
John Criswell <criswell@uiuc.edu> |
Removed linking functionality from gccld.cpp and moved it to linker.cpp. Renamed functions that were all lower-case. Moved functions from util.cpp into linker.cpp or gccld.cpp. Removed util.h and created gccld.h. Refactored the linker functionality in linker.cpp so that it is easier to follow, easier to modify, and it's library/object file search behavior is easier to understand and document. Added code to include library paths when doing native linking, but this causes problems and is currently #ifdef'd out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8609 91177308-0d34-0410-b5e6-96231b3b80d8
inkArchives.cpp
|
841e00b96295a2b66cb7573e961656d28a6cb12b |
28-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Fix bug where we considered function types equivalent even if they had differing numbers of arguments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8178 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
77c5f733ac51c122ee3f75b8cc247b923d472909 |
24-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Fix bug: Linker/2003-08-23-GlobalVarLinking.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8130 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
873c5e7859c1534bf92c9e2747f2b70685059598 |
24-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Implement: Linker/2003-08-24-InheritPtrSize.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8129 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f44c6051e02ddb207d5928b4ef3cde956d2b5025 |
23-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Do not consider any types that exist in the global symbol table! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8084 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e3092c94ad2e3af96f37a0a8186149acbbd9700a |
23-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Fix bug: Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8083 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
fcd0234de65fc07fb06f3245b60e82bdba78c745 |
23-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Implement Linker/2003-08-23-GlobalVarLinking.ll, which should fix 176.gcc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8080 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9732be769e57f1dec03f046ab957053048f60e40 |
22-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Fix typeo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8059 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
43f4ba8c7d19664bb5de73a7b391b67061f25d22 |
22-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
The process of linking types can cause their addresses to become invalid. For this reason, we must use TypeHandles! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8057 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e76c57ad467ed57f09f2a3ef51628d4b6eb2b304 |
22-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Implement Linker/2003-08-20-OpaqueTypeResolve.ll Hopefully this will fix the 176.gcc spec test as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8051 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4c00e53b81de81ecf4ba0c4e287ea230c79e82ae |
15-May-2003 |
Chris Lattner <sabre@nondot.org> |
Fix Bug: Linker/2003-05-15-TypeProblem.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6225 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
f41464618f41b92cf0a0bd14ccc57bce727fb33d |
14-May-2003 |
Chris Lattner <sabre@nondot.org> |
Fix major problem with appending linkage changes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6185 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8166e6eef6518da6f1f805e0d5e2bb22c15dd49c |
13-May-2003 |
Chris Lattner <sabre@nondot.org> |
Implement linkage of appending global variables! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6178 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c2b97d43a074445c6856d69538a95de09450c26e |
23-Apr-2003 |
Chris Lattner <sabre@nondot.org> |
Fix Bug: Linker/2003-04-23-LinkOnceLost.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5879 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
43a9994c0164848d44527060da72985c75183a48 |
22-Apr-2003 |
Chris Lattner <sabre@nondot.org> |
Add warning when linking modules with disagreeing target properties git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5845 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2719bac90525985f4ebb97324b4c087d47b54384 |
21-Apr-2003 |
Chris Lattner <sabre@nondot.org> |
Fix bug: 2003-01-30-LinkerRename.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5828 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
0fec08eb58dd9fffeb72c584aa61a59d71111c8d |
21-Apr-2003 |
Chris Lattner <sabre@nondot.org> |
Fix linking a function with qualifiers to a external function declaration: Fixed bug: Linker/2003-04-21-Linkage.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5827 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
4ad02e726d9b634372b037d4b352d8b63bb9e849 |
16-Apr-2003 |
Chris Lattner <sabre@nondot.org> |
Add new linkage types to support a real frontend git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5786 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2f6bb2bce13084dfc4c8acf47f9eae0578267aaa |
30-Jan-2003 |
Chris Lattner <sabre@nondot.org> |
* Fix linking of opaque types and their non-opaque versions * Fix bug: Linker/2003-01-30-LinkerTypeRename.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5441 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5c2d335d86579941b71816196a95a64b277e8963 |
30-Jan-2003 |
Chris Lattner <sabre@nondot.org> |
Eliminate using decls git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5439 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b91b657e026e86082b665cc875c2881ed075b68d |
03-Dec-2002 |
Chris Lattner <sabre@nondot.org> |
Fix big bug introduced with symbol table changes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4885 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6e6026b46569b01f8f6d4dcdb6c899c3a9c76b3e |
20-Nov-2002 |
Chris Lattner <sabre@nondot.org> |
- Eliminated the deferred symbol table stuff in Module & Function, it really wasn't an optimization and it was causing lots of bugs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4779 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
69da5cf26143e4542d4bf8c78ffac6d079efe5c9 |
13-Oct-2002 |
Chris Lattner <sabre@nondot.org> |
- Change Function's so that their argument list is populated when they are constructed. Before, external functions would have an empty argument list, now a Function ALWAYS has a populated argument list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4149 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
d149c053cdbb406b7b5dff24127b4c509420893e |
23-Sep-2002 |
Chris Lattner <sabre@nondot.org> |
Insert resolved constants into the global map so they are reused correctly. This bug was exposed linking the SPEC benchmark suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3888 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b319faff77a5bb12e753c45662f6c532b77f0b91 |
20-Aug-2002 |
Chris Lattner <sabre@nondot.org> |
fixed bug: test/Regression/Linker/2002-08-20-ConstantExpr.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3412 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ad333484ea5ae976b83e35ccd3f6cfa6e71290e2 |
14-Aug-2002 |
Chris Lattner <sabre@nondot.org> |
Remove support for Not ConstantExpr. This simplifies the unary case to only have to support the cast instruction, so the function is renamed to getCast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3328 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e8e4605021141d689493132a9c7c6fce6294937f |
30-Jul-2002 |
Chris Lattner <sabre@nondot.org> |
Cleanup ConstantExpr handling: * Correctly delete TypeHandles in AsmParser. In addition to not leaking memory, this prevents a bug that could have occurred when a type got resolved that the constexpr was using * Check for errors in the AsmParser instead of hitting assertion failures deep in the code * Simplify the interface to the ConstantExpr class, removing unneccesary parameters to the ::get* methods. * Rename the 'getelementptr' version of ConstantExpr::get to ConstantExpr::getGetElementPtr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3160 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
ad772a7188d21f21e9b92d70755018a083a6efa2 |
30-Jul-2002 |
Chris Lattner <sabre@nondot.org> |
Remove FIXME's that aren't really needed after all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3158 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
b1443b17491163db6a207959d10e6d6d83cd28fd |
25-Jul-2002 |
Chris Lattner <sabre@nondot.org> |
*** empty log message *** git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3072 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e306d94782b1c608857738279852dcc050c66004 |
18-Jul-2002 |
Chris Lattner <sabre@nondot.org> |
* Rewrite loop to be slightly more efficient (arguably) * Fix a MAJOR thinko that was causing bad links to happen on Spec git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2953 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6cdf1971bdf88ddd9a7d46b5f5f975497d68c38e |
18-Jul-2002 |
Chris Lattner <sabre@nondot.org> |
Implement linking of ConstExprs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2946 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
18961504fc2b299578dba817900a0696cf3ccc4d |
25-Jun-2002 |
Chris Lattner <sabre@nondot.org> |
*** empty log message *** git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2777 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c8cc4cb03bd90f89be7fe1649542a2d5ae689632 |
07-May-2002 |
Chris Lattner <sabre@nondot.org> |
Updates to move some header files out of include/llvm/Transforms into the Scalar and Utils subdirectories git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2523 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
31bcdb822fe9133b1973de51519d34e5813a6184 |
28-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
Split ConstantVals.h into Constant.h and Constants.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
73e214244f2403b5ba0ef81b8839600f3c8ffebc |
09-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
Move FunctionArgument out of iOther.h into Argument.h and rename class to be 'Argument' instead of FunctionArgument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2216 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
87182ae6baf28ca6da6ee4bc00cf1857f293acfe |
08-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
Eliminate explicit use of Writer library, using debug dump output instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2147 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
6bfd6a578a3a4fa95c585c988ee712ba880f9923 |
29-Mar-2002 |
Chris Lattner <sabre@nondot.org> |
s/Method/Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2034 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
79df7c0aaa18129e55968c8783ef8346807bd4af |
26-Mar-2002 |
Chris Lattner <sabre@nondot.org> |
Change references from Method to Function change references from MethodARgument to FunctionArgument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1991 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9b638019ca8870f418e3b42b39dd34dc7deebb2d |
15-Mar-2002 |
Chris Lattner <sabre@nondot.org> |
Cleanup error message output a bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1879 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
221d688a5ef21a22c2368c9fff0e92d7966c95e5 |
12-Feb-2002 |
Chris Lattner <sabre@nondot.org> |
Method.h no longer includes BasicBlock.h Method::inst_* is now in llvm/Support/InstIterator.h GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1746 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
697954c15da58bd8b186dbafdedd8b06db770201 |
20-Jan-2002 |
Chris Lattner <sabre@nondot.org> |
Changes to build successfully with GCC 3.02 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
7a1767520611d9ff6face702068de858e1cadf2c |
04-Dec-2001 |
Chris Lattner <sabre@nondot.org> |
Renamed inst_const_iterator -> const_inst_iterator Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e9bb2df410f7a22decad9a883f7139d5857c1520 |
03-Dec-2001 |
Chris Lattner <sabre@nondot.org> |
Rename ConstPoolVal -> Constant Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
e4d25aad16bfc2a26595f6255fc2bfdaa6c532a7 |
26-Nov-2001 |
Chris Lattner <sabre@nondot.org> |
Implement support for internal methods git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1380 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
161aa5ad930bcde8b4e97c843880fbb0509ea83c |
07-Nov-2001 |
Chris Lattner <sabre@nondot.org> |
Add #includes to enable buiding in Release mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1174 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2c236f3e20a0fb84b5948efa6bb7bb60d759cb32 |
03-Nov-2001 |
Chris Lattner <sabre@nondot.org> |
Don't forget to link type names together too. Fix for Olden/mst benchmark git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1094 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2d3e8bba628843bf2dffa21f69d9b45098d3bfc4 |
03-Nov-2001 |
Chris Lattner <sabre@nondot.org> |
Add extra code for debugging linker problems git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1091 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
43a6f2e332eb54796a2e85188aa89c0dfee03ef3 |
29-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Pull method symbols over when linking. Otherwise the result of the link will appear stripped git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1033 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
2301a070f6fde287db167e134d53b203fc259e58 |
28-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Remove non linking related stuff git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1015 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
9466f5113ba859677a28887c3c7143065e702019 |
28-Oct-2001 |
Vikram S. Adve <vadve@cs.uiuc.edu> |
Added name-mangling routines for future use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1003 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c2d774b6c1d38421c435b6d3cfaa10402c900aeb |
23-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Fix problem linking in a method prototype when a method body exists git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@965 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
c18545dc9e5c8d98ea9089af8702a6cf563a8dfd |
15-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get tired typing that much git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@822 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
8d2de8a82cce67513debee7a3fa5aca0189b4105 |
15-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Implement linking of global variable constant references git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@817 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
5c377c524a6929cdaa683f3f034b3fc01526b264 |
15-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Implement linker. It's 95% working now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@810 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|
52f7e908cb634f9b9b539d5c6670b8a065478915 |
13-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
Start of a linker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@775 91177308-0d34-0410-b5e6-96231b3b80d8
inkModules.cpp
|