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
/external/llvm/lib/VMCore/Module.cpp
|
2a9d3b79db1f192dba43b8b16755a7822b05f798 |
|
28-May-2012 |
Chris Lattner <sabre@nondot.org> |
simplify code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
85d043d6f6b59518bdaa20ae1957cbf645fd0cd6 |
|
23-Apr-2012 |
Bill Wendling <isanbard@gmail.com> |
Cleanup whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
098c595dd2862769f9ad26c59e35b88de479a303 |
|
23-Apr-2012 |
Bill Wendling <isanbard@gmail.com> |
Limit the number of times we recurse through this algorithm. All of the intructions are processed. So there's no need to look at them if they're used as operands of other instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
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
/external/llvm/lib/VMCore/Module.cpp
|
c827834d496568da936f6a8b48798a98956fc8af |
|
21-Apr-2012 |
Bill Wendling <isanbard@gmail.com> |
Revert r155241, which is causing some breakage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
64c7af89008c5c38e92c963ffe1d0de7f6526dcc |
|
20-Apr-2012 |
Bill Wendling <isanbard@gmail.com> |
If we discover all of the named structs in a module, then don't bother to process any more Values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
cf84d867619b68be17bb1c12bd9831fdd73a88e4 |
|
17-Apr-2012 |
Eric Christopher <echristo@apple.com> |
Typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
e6bd7a805808a05e9869fbf067581855a8b2a2c2 |
|
16-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
s/ModAttrBehavior/ModFlagBehavior/g to be consistent with how module flags are named elsewhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
426f21573219eeba8f6981d7ddb4f1d2445b6343 |
|
16-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Use the enum instead of 'unsigned'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150632 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
f20f281368f75239c852fe99c3b3a19278ba38fd |
|
15-Feb-2012 |
Bill Wendling <isanbard@gmail.com> |
Add a module flags accessor method which returns the flags in a vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
53b2b7364385b2f2d98c0052df73a637a81c2288 |
|
13-Aug-2011 |
Nick Lewycky <nicholas@mxc.ca> |
Remove the last improper use of getGlobalContext() from LLVM. This caused a race condition where a thread calls ~LLVMContextImpl which calls Module::dropAllReferences which calls begin() on an empty ilist that would create the sentinel, which racily accesses the global context. This can not be fixed by locking inside createSentinel because the lock would need to be shared with all users of the global context, including those that reside outside LLVM's own code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
c30a38f34bdfecb99ce49e3ffa479039c9bf0209 |
|
21-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
move tier out of an anonymous namespace, it doesn't make sense to for it to be an an anon namespace and be in a header. Eliminate some extraenous uses of tie. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135669 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
db125cfaf57cc83e7dd7453de2d509bc8efd0e5e |
|
18-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
land David Blaikie's patch to de-constify Type, with a few tweaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
939f616e635e6d94ccf4baaf18682466e9a06d6d |
|
14-Jul-2011 |
Chris Lattner <sabre@nondot.org> |
DebugLoc's don't hide any interesting types for TypeFinder to find. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135174 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
5fdd6c8793462549e3593890ec61573da06e3346 |
|
12-Jul-2011 |
Jay Foad <jay.foad@gmail.com> |
Second attempt at de-constifying LLVM Types in FunctionType::get(), StructType::get() and TargetData::getIntPtrType(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
2280ebd61416b73d0b6137f275b25af82e268d1f |
|
12-Jul-2011 |
Bill Wendling <isanbard@gmail.com> |
Revert r134893 and r134888 (and related patches in other trees). It was causing an assert on Darwin llvm-gcc builds. Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.llvm-gcc-i386-darwin9-RA/llvm.src/lib/VMCore/Instructions.cpp, li\ ne 2067. etc. http://smooshlab.apple.com:8013/builders/llvm-gcc-i386-darwin9-RA/builds/2354 --- Reverse-merging r134893 into '.': U include/llvm/Target/TargetData.h U include/llvm/DerivedTypes.h U tools/bugpoint/ExtractFunction.cpp U unittests/Support/TypeBuilderTest.cpp U lib/Target/ARM/ARMGlobalMerge.cpp U lib/Target/TargetData.cpp U lib/VMCore/Constants.cpp U lib/VMCore/Type.cpp U lib/VMCore/Core.cpp U lib/Transforms/Utils/CodeExtractor.cpp U lib/Transforms/Instrumentation/ProfilingUtils.cpp U lib/Transforms/IPO/DeadArgumentElimination.cpp U lib/CodeGen/SjLjEHPrepare.cpp --- Reverse-merging r134888 into '.': G include/llvm/DerivedTypes.h U include/llvm/Support/TypeBuilder.h U include/llvm/Intrinsics.h U unittests/Analysis/ScalarEvolutionTest.cpp U unittests/ExecutionEngine/JIT/JITTest.cpp U unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp U unittests/VMCore/PassManagerTest.cpp G unittests/Support/TypeBuilderTest.cpp U lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp U lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp U lib/VMCore/IRBuilder.cpp G lib/VMCore/Type.cpp U lib/VMCore/Function.cpp G lib/VMCore/Core.cpp U lib/VMCore/Module.cpp U lib/AsmParser/LLParser.cpp U lib/Transforms/Utils/CloneFunction.cpp G lib/Transforms/Utils/CodeExtractor.cpp U lib/Transforms/Utils/InlineFunction.cpp U lib/Transforms/Instrumentation/GCOVProfiling.cpp U lib/Transforms/Scalar/ObjCARC.cpp U lib/Transforms/Scalar/SimplifyLibCalls.cpp U lib/Transforms/Scalar/MemCpyOptimizer.cpp G lib/Transforms/IPO/DeadArgumentElimination.cpp U lib/Transforms/IPO/ArgumentPromotion.cpp U lib/Transforms/InstCombine/InstCombineCompares.cpp U lib/Transforms/InstCombine/InstCombineAndOrXor.cpp U lib/Transforms/InstCombine/InstCombineCalls.cpp U lib/CodeGen/DwarfEHPrepare.cpp U lib/CodeGen/IntrinsicLowering.cpp U lib/Bitcode/Reader/BitcodeReader.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134949 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
f362affa3a695164a94d275fb44d18f44ebb855a |
|
11-Jul-2011 |
Jay Foad <jay.foad@gmail.com> |
De-constify Types in FunctionType::get(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
30268be89df6444f5ffb585439b3fbfec9055197 |
|
08-Sep-2010 |
Owen Anderson <resistor@mac.com> |
Clarify the ownership model of LLVMContext and Module. Namely, contexts own modules are instantiated in them. If the context is deleted, all of its owned modules are also deleted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
d98af0a5b86425fdc723bb54fc59247c585d63ab |
|
04-Aug-2010 |
Dan Gohman <gohman@apple.com> |
Eliminate unnecessary empty string literals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
a762b093107ac3aa438815627006425d0b13a236 |
|
22-Jun-2010 |
Devang Patel <dpatel@apple.com> |
Use single interface, using twine, to get named metadata. getNamedMetadata(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106518 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
54eee524f192a0e7395d057481e8d4240729d7b4 |
|
19-Jun-2010 |
Bob Wilson <bob.wilson@apple.com> |
Tidy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
2f7d5291de87bfa195884e84dc0efe9705c2215c |
|
16-Jun-2010 |
Devang Patel <dpatel@apple.com> |
Use separate named MDNode to hold each function's local variable info. This speeds up local variable handling in DwarfDebug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
a495c7232d63d4eeab394791397ee384620f6864 |
|
23-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
fix an infinite loop in Module::getEndianness, PR6684 patch by Alex Mac! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99330 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
26028f27ddd132b3284943e11aca130c2911abc4 |
|
12-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Use ilist_tratis to autoinsert and remove NamedMDNode from MDSymbolTable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93247 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
d4f195999a7774611e5f9e457a86f14d5e257324 |
|
11-Jan-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Reimplement getToken and SplitString as "StringRef helper functions" - getToken is modeled after StringRef::split but it can split on multiple separator chars and skips leading seperators. - SplitString is a StringRef::split variant for more than 2 elements with the same behaviour as getToken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
87df867fd7f23cd2128a7ee38f4cebeb85e948a2 |
|
09-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Delete NamedMDSymTable while destrucing Module. Disable copy ctor and operator= for NamedMDSymTable. Hide typedef that should be public. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
0386f01e061513094504bc11f8352a40173cada7 |
|
07-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Use separate namespace for named metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
081134741b40b342fb2f85722c9cea5d412489a8 |
|
29-Dec-2009 |
Chris Lattner <sabre@nondot.org> |
Final step in the metadata API restructuring: move the getMDKindID/getMDKindNames methods to LLVMContext (and add convenience methods to Module), eliminating MetadataContext. Move the state that it maintains out to LLVMContext. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
c63ca0a71b299ee0b8fc7dc8405d7f3c856ecfa3 |
|
19-Dec-2009 |
John McCall <rjmccall@apple.com> |
Qualify a bunch of explicit template instantiations to satisfy clang++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
7b550ccfc5a3346c17e0390a59e2d6d19bc52705 |
|
06-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
remove a bunch of extraneous LLVMContext arguments from various APIs, addressing PR5325. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
1d0be15f89cb5056e20e2d24faa8d6afb1573bca |
|
13-Aug-2009 |
Owen Anderson <resistor@mac.com> |
Push LLVMContexts through the IntegerType APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
49fe6c914c5f356a97619046384d7ceb2cb5187e |
|
31-Jul-2009 |
Devang Patel <dpatel@apple.com> |
Add getOrInsertNamedMetadata(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77646 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
76dd4e894184f1e25396cc9eb1fd5fb584aaf551 |
|
30-Jul-2009 |
Devang Patel <dpatel@apple.com> |
Do not use getNamedValue() to lookup NamedMDNode. NamedMDNode is not a GlobalValue. Thanks Benjamin Kramer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77619 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
28bc9d88260a3e153ead4311c9129e3d3ad07736 |
|
29-Jul-2009 |
Devang Patel <dpatel@apple.com> |
Keep track of named mdnodes in a Module using an ilist. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77476 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
c341f1c62d1b46b64fb70890fffed87a3136cc2d |
|
09-Jul-2009 |
Owen Anderson <resistor@mac.com> |
LLVMContext-ification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75072 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
d257f7d96b414682834f1eb5aa4d9ea00f6761be |
|
27-Mar-2009 |
Gabor Greif <ggreif@gmail.com> |
"ghostify" the ilist<Function> sentinel git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
7afd3e1599222dc691cca9e601800878c8546663 |
|
07-Mar-2009 |
Gabor Greif <ggreif@gmail.com> |
further simplifications arising from peruse of the more declarative interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
f56ec6423cc8116136cfef314b9f3a519e37d3f9 |
|
06-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add Module::getNamedValue; use to normalize access to Module symbol table. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66289 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
49de98214b82fefeb8f16efbf8cdd8813a85469b |
|
05-Feb-2009 |
Dale Johannesen <dalej@apple.com> |
Reapply 63765. Patches for clang and llvm-gcc to follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
4d452de1506344bf1d28bb4a8c4ddb78c51a28c8 |
|
04-Feb-2009 |
Dale Johannesen <dalej@apple.com> |
Reverting 63765. This broke the build of both clang and llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63786 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
d24479730a8790d82c4859dc477bc2416d7a6bda |
|
04-Feb-2009 |
Nate Begeman <natebegeman@mac.com> |
New feature: add support for target intrinsics being defined in the target directories themselves. This also means that VMCore no longer needs to know about every target's list of intrinsics. Future work will include converting the PowerPC target to this interface as an example implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63765 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
1186bf1350145474bb7f0ab4d38ec33dae5c79d2 |
|
04-Jan-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Add a mechanism to specify attributes in getOrInsertFunction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
b4b130f0b10184efd34f76c0287943b02da5688b |
|
06-Nov-2008 |
Bill Wendling <isanbard@gmail.com> |
Add comments to function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58781 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
b7c2c1246f10972d5a8f55499226872608eb10f9 |
|
04-Nov-2008 |
Bill Wendling <isanbard@gmail.com> |
- Add a "getOrInsertGlobal" method to the Module class. This acts similarly to "getOrInsertFunction" in that it either adds a new declaration of the global and returns it, or returns the current one -- optionally casting it to the correct type. - Use the new getOrInsertGlobal in the stack protector code. - Use "splitBasicBlock" in the stack protector code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58727 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
944fac71e082cc2664cc71b4d3f6c72bab7143fb |
|
24-Aug-2008 |
Chris Lattner <sabre@nondot.org> |
Switch the asmprinter (.ll) and all the stuff it requires over to use raw_ostream instead of std::ostream. Among other goodness, this speeds up llvm-dis of kc++ with a release build from 0.85s to 0.49s (88% faster). Other interesting changes: 1) This makes Value::print be non-virtual. 2) AP[S]Int and ConstantRange can no longer print to ostream directly, use raw_ostream instead. 3) This fixes a bug in raw_os_ostream where it didn't flush itself when destroyed. 4) This adds a new SDNode::print method, instead of only allowing "dump". A lot of APIs have both std::ostream and raw_ostream versions, it would be useful to go through and systematically anihilate the std::ostream versions. This passes dejagnu, but there may be minor fallout, plz let me know if so and I'll fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
48cd712d4c84507d3098e795aebce8bd5ad05b14 |
|
27-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
simplify some code to avoid string thrashing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52837 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
bb0e2487185e401c7fca63d55e59343e060912a2 |
|
27-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Add a new version of Module::getFunction that takes a const char* instead of a std::string. This avoids copying the string to the heap in common cases. Patch by Pratik Solanki! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
e1ff8ec36f1d99bbe110d3ef8888809c91ec9c00 |
|
11-Mar-2008 |
Dan Gohman <gohman@apple.com> |
Remove an unnecessary #include git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
97cf759b822818414f9604c74d3bcfe75a91520b |
|
29-Jan-2008 |
Dan Gohman <gohman@apple.com> |
Fix 80-col violations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
43ad6b3e0d6ada51e9b23aab3e061187f1f5710c |
|
17-Dec-2007 |
Christopher Lamb <christopher.lamb@gmail.com> |
Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
a80e1181b78183dc36ec6568559d38faa86981f0 |
|
28-Apr-2007 |
Anton Korobeynikov <asl@math.spbu.ru> |
Implement review feedback. Aliasees can be either GlobalValue's or bitcasts of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
8b0a8c84da2030ee8f4440d5b60a8033de691222 |
|
25-Apr-2007 |
Anton Korobeynikov <asl@math.spbu.ru> |
Implement aliases. This fixes PR1017 and it's dependent bugs. CFE part will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36435 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
f8dfef74376dd85f37601855f7519d8256700dab |
|
17-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
The (negative) offset from a SymbolTableListTraits-using ilist to its container object is always constant. As such, evaluate it at compile time instead of storing it as an ivar in SymbolTableListTraits. This shrinks every SymbolTableListTraits ilist by a word, shrinking BasicBlock from 44->40 bytes, Function from 96->88 bytes, and Module from 60->52 bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36189 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
17fcdd5e1b78b829068ca657c97357a39d6e768b |
|
17-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
Refactor SymbolTableListTraits to only have a single pointer in it, instead of two. This shrinkifies Function by 8 bytes (104->96) and Module by 8 bytes (68->60). On a testcase of mine, this reduces the memory used to read a module header from 565680b to 561024, a little over 4K. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36188 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
8129a3921e970a546c8108290dcfa10e050e71f0 |
|
09-Apr-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1146: Simplify construction of FunctionType to use default arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
6734b57d1bcd743491b627979f7801f94c97a970 |
|
04-Feb-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR1163: Make the Module's dependent library use a std::vector instead of SetVector adjust #includes in .cpp files because SetVector.h is no longer included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
f00c595bf59ddd956606cb600ac7495ea827f9f0 |
|
26-Jan-2007 |
Reid Spencer <rspencer@reidspencer.com> |
For PR761: Remove the setEndianess and setPointerSize methods. These are now handled via the setDataLayout method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33527 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
70d130516a38013ef6262dd2da5accbea7932e30 |
|
07-Jan-2007 |
Chris Lattner <sabre@nondot.org> |
Change the interface to Module::getOrInsertFunction to be easier to use, to resolve PR1088, and to help PR411. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32988 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
79e21d338c60b4b5a5746fc45e37ea0310606aee |
|
31-Dec-2006 |
Reid Spencer <rspencer@reidspencer.com> |
For PR950: Change signed integer type names to unsigned equivalents. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32780 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
832171cb9724d2d31c8dfb73172e2be8f6dd13ee |
|
07-Dec-2006 |
Bill Wendling <isanbard@gmail.com> |
Removing even more <iostream> includes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32320 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
0b2375edfe6b32f361b3fe19c5c26bddc041fabb |
|
31-May-2006 |
Reid Spencer <rspencer@reidspencer.com> |
Make the getNamedFunction and getNamedGlobal methods be const. They don't change the module in any way and we should enforce that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28588 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
ac4c75ba8253dbd918d0cb5aa8614d8f4f7d7ad7 |
|
18-May-2006 |
Owen Anderson <resistor@mac.com> |
Fix some think-o's in my last commit. Thanks to Chris for pointing them out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
1d8b8535ec6ccbf07b0e83c5be6aec51feed1d45 |
|
18-May-2006 |
Owen Anderson <resistor@mac.com> |
Change Module to use TargetData-compatible strings internally. This is part of the on-going work on PR 761. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
9d25824e4ca45b7269aacaa92f02a5e9fa8a8e5c |
|
08-Mar-2006 |
Chris Lattner <sabre@nondot.org> |
add a new helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
863517aea0b06770c809396be985c1c4cc50d3c4 |
|
25-Jan-2006 |
Chris Lattner <sabre@nondot.org> |
Change inline asms to be uniqued like constants, not embedded in a Module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
cc041ba03aed685400197fb938b7a583713d25af |
|
24-Jan-2006 |
Chris Lattner <sabre@nondot.org> |
Initial checkin of the InlineAsm class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25570 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
30614675f45809c43d44c7243d8b747b39403155 |
|
05-Dec-2005 |
Chris Lattner <sabre@nondot.org> |
Add a flag to Module::getGlobalVariable to allow it to return vars with internal linkage. Patch provided by Evan Jones, thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24604 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
fd93908ae8b9684fe71c239e3c6cfe13ff6a2663 |
|
22-Apr-2005 |
Misha Brukman <brukman+llvm@gmail.com> |
Remove trailing whitespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21427 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
bca81448ac8e19c588c9a4ad16fc70732b76327c |
|
30-Jan-2005 |
Chris Lattner <sabre@nondot.org> |
Improve conformance with the Misha spelling benchmark suite git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19930 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
3cf8e6857e1e5545048fc6fb6d834d50a7b7cf8e |
|
29-Jan-2005 |
Chris Lattner <sabre@nondot.org> |
Adjust to ilist changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19923 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
1c7b907325e9cf3a0713ceab5029fef04d9e498c |
|
14-Sep-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Okay, the list of link-time passes wasn't such a hot idea. Its prone to error. We'll strategize on this when we have multiple front ends to deal with. For now llvm-ld just runs a standard set of transforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
e59eaf407a675845e278c2769e3dbed9f1daae8c |
|
14-Sep-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Add support for the link-time pass list to Modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
801db47373bc5edda469276ac62e0d9e37b92fb7 |
|
25-Jul-2004 |
Reid Spencer <rspencer@reidspencer.com> |
bug 263: Ensure the list of libraries is cleared. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
0f7eea5d0401a3aaff27d2fdb34044e5983db3d1 |
|
18-Jul-2004 |
Reid Spencer <rspencer@reidspencer.com> |
bug 122: - Module doesn't need to manage ConstantPointerRefs any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
3ba415a77040dc9d00e60a6e4ea8376af71c4654 |
|
10-Jul-2004 |
Reid Spencer <rspencer@reidspencer.com> |
Replace use of defunct Type::setName method with SymbolTable::insert. Patch found and provided by Vladimir Merzliakov. Thanks Vladimir! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14732 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
e2fac77ad355b732da347e51234f02579da62bb6 |
|
04-Jul-2004 |
Reid Spencer <rspencer@reidspencer.com> |
- #include <iostream> since its not in Value.h any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14617 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
af76cfb0fb70f0bec8581c2be1a60dc56bd3f285 |
|
21-Apr-2004 |
Misha Brukman <brukman+llvm@gmail.com> |
I'm allergic to the word `stuff'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
2c56b55cf054f472ff644d15e4a7a7974bd1dab3 |
|
08-Mar-2004 |
Chris Lattner <sabre@nondot.org> |
Remove Module::mutateConstantPointerRef, which is now thankfully dead! This is one small step towards the complete obliteration of ConstantPointerRef's entirely!! Woot! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
60837821e2bb179c6dd239ecb4d72df37560d3bb |
|
31-Dec-2003 |
Chris Lattner <sabre@nondot.org> |
Add some comments, add new getGlobalVariable method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
6d28a268c32860e76efc85cd2ab59176601b23c6 |
|
31-Dec-2003 |
Chris Lattner <sabre@nondot.org> |
* Make Module::getTypeName const * Add new Module::getTypeByName method * Group methods in Module.cpp better git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10668 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
31f8499e83dc4dccbb57ea7e76d1fd49b7010d0c |
|
21-Nov-2003 |
Chris Lattner <sabre@nondot.org> |
Finegrainify namespacification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
e860e0d69c9c155704cd3c4b2533410a8c782d9e |
|
05-Nov-2003 |
Chris Lattner <sabre@nondot.org> |
Make code gcc 3.4 clean git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9719 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
cf3056db0fee1db7921214b1f25cea04e959e105 |
|
13-Oct-2003 |
Chris Lattner <sabre@nondot.org> |
Regularize header file comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
6b63452c3ad26678b32f93dbca55902a313ee4e9 |
|
10-Oct-2003 |
Misha Brukman <brukman+llvm@gmail.com> |
Fix spelling/grammar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9023 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
0ae8e87e53d6f500f8d01785b67c68e2046fb8e8 |
|
31-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Implement new method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
eb5d3a1526b2604feb07fe874907e30c8d2fcd6d |
|
24-Aug-2003 |
Chris Lattner <sabre@nondot.org> |
Support new 'any' support for pointer size and endianness git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8119 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
b6ede8aaa0501f875f8b3b73fcd5e4bc71b4c2e2 |
|
23-Jul-2003 |
Chris Lattner <sabre@nondot.org> |
Make Module::getNamedFunction prefer non-external functions if there is more than one function of the same name git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7274 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
608f4b0287abf74cdbba95c9f6606f1aa03944a8 |
|
15-May-2003 |
Chris Lattner <sabre@nondot.org> |
Fix bug: Assembler/2003-05-15-AssemblerProblem.llx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6234 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
678c6a089da468bc20661922cf63deedef2d9b7a |
|
22-Apr-2003 |
Chris Lattner <sabre@nondot.org> |
Add support for tracking whether a module is 64/32 bit and big/little endian Also add a moduleID field which can be used for diagnostics git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
9a641b4bce58f9aaea469f78a3e1d91866622fee |
|
19-Nov-2002 |
Chris Lattner <sabre@nondot.org> |
Add a new Module::getNamedFunction method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
a9a93f37779bbab41d73142aa5e4beb43089696e |
|
08-Nov-2002 |
Chris Lattner <sabre@nondot.org> |
Add a method "getMainFunction()" that efficiently locates 'main' in a module git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
0dad6e9c95984804953db0fdcbe0c907d9ee351e |
|
15-Oct-2002 |
Chris Lattner <sabre@nondot.org> |
- Eliminate SymbolTable::ParentSymTab, ST::localLookup, and Function::ParentSymTab. These aren't needed at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4186 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
d1e693f2a3883dacf213aa2b477540c57b53b714 |
|
08-Sep-2002 |
Chris Lattner <sabre@nondot.org> |
Enable "garbage detection" of LLVM objects. Now users should be obnoxious warnings. If they accidentally leak LLVM Value's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3620 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
41661fdb2e963610b399c8ebe51a507847ef997d |
|
18-Aug-2002 |
Chris Lattner <sabre@nondot.org> |
- ConstantPointerRefs are now automatically removed from the module table when they are destroyed, which makes Constant::destroyConstant an actually useful external interface. Expose these methods publicly. - Implement destroyConstant on ConstPointerNull so that destroyConstant can be used on any derived type constant safely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
9da0715aa4ec1cc9181b786c100fa3dfabe9a404 |
|
18-Aug-2002 |
Chris Lattner <sabre@nondot.org> |
Add Module::dump() method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
bb6342b0528b9139047b17ad921a11b9d08ee1ad |
|
12-Aug-2002 |
Chris Lattner <sabre@nondot.org> |
Remove some extraneous #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3289 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
4228b5aac41ea4b4899231ff995708b6510651a8 |
|
12-Aug-2002 |
Chris Lattner <sabre@nondot.org> |
Changes to make GlobalValueRefMap not derive from std::map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3288 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
7e70829632f82de15db187845666aaca6e04b792 |
|
25-Jun-2002 |
Chris Lattner <sabre@nondot.org> |
MEGAPATCH checkin. For details, See: docs/2002-06-25-MegaPatchInfo.txt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
c6f3ae5c66c8e0dab6a2bd9601d0e253ef9ba794 |
|
29-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
Eliminate duplicate or unneccesary #include's git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
11aa4770fe38befb3926646cf9ea7ed0ff7e33a8 |
|
28-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
* Incorporate the contents of SymTabValue into Function and Module * Module no longer subclasses Value git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
f33fa6fb57b9c41e99739eff79b7f185e0df9500 |
|
13-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
Add Module::getTypeName git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
1907aba9f4a2e4b9abb41657a37c3ea8be35248c |
|
08-Apr-2002 |
Chris Lattner <sabre@nondot.org> |
Move include/llvm/ValueHolderImpl.h to lib/VMCore/ValueHolderImpl.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2156 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
68e5ed8dbe724bd3380a044a522d4fd3effe2dd0 |
|
29-Mar-2002 |
Chris Lattner <sabre@nondot.org> |
Add new addTypeName method to Module class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
6056c49ca0e86e222b4bd7184a4b23c9277ab065 |
|
29-Mar-2002 |
Chris Lattner <sabre@nondot.org> |
Implement new getFunction and getOrInsertFunction methods git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2033 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
21ba3fec994fefad527befeabe586ad19e79cb6c |
|
28-Mar-2002 |
Chris Lattner <sabre@nondot.org> |
Remove the reduceApply functions they are obsolete things from the days before we had a reasonable pass system git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
699a7bfd6b0c789e7e04c0e182d7518b34b514b0 |
|
26-Jan-2002 |
Chris Lattner <sabre@nondot.org> |
Remove extraneous #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1588 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
cee8f9ae67104576b2028125b56e9ba4856a1d66 |
|
27-Nov-2001 |
Chris Lattner <sabre@nondot.org> |
Create a new #include "Support/..." directory structure to move things from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.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
/external/llvm/lib/VMCore/Module.cpp
|
dd6dfbc8cc008faca03b6ac9b904f263205a418a |
|
13-Oct-2001 |
Chris Lattner <sabre@nondot.org> |
* Add support for Module specific constants * Add proper support for ConstPoolPointerReference's git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
70cc3397f84c2e1fd69c059a0ef89e398e847b00 |
|
10-Sep-2001 |
Chris Lattner <sabre@nondot.org> |
Implement global variable support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@530 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
9cb66f7e67a683cee32fc1027e8e6399b85046f5 |
|
07-Sep-2001 |
Chris Lattner <sabre@nondot.org> |
Modules must have a valid, nonnull type. Make them void git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
57dbb3ad63b6a0e77798edb156ef43daa3bfc67e |
|
23-Jul-2001 |
Chris Lattner <sabre@nondot.org> |
Moved inline/llvm/Tools/* to include/llvm/Support/* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
a3d3c2b64545c00f70453642e5d84b028dfce671 |
|
14-Jul-2001 |
Chris Lattner <sabre@nondot.org> |
* ValueHolder now takes 3 arguments * Added a few methods to ConstantPool * ConstPoolVal no longer derives from Value * Method & Module multiply inherit from SymTabValue & Value now * Added a GetElementPtrInst::isStructSelector() method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
28bf86ac001846b167ff3befacdca2f96b25f24a |
|
30-Jun-2001 |
Chris Lattner <sabre@nondot.org> |
Implement reduceApply method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
7fc9fe34390c66ca58646d09a87f7dbaacb6c1f8 |
|
28-Jun-2001 |
Chris Lattner <sabre@nondot.org> |
Miscellaneous cleanups: * Convert post to pre-increment for for loops * Use generic programming more * Use new Value::cast* instructions * Use new Module, Method, & BasicBlock forwarding methods * Use new facilities in STLExtras.h * Use new Instruction::isPHINode() method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|
009505452b713ed2e3a8e99c5545a6e721c65495 |
|
06-Jun-2001 |
Chris Lattner <sabre@nondot.org> |
Initial revision git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/Module.cpp
|