summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Module.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix 80-col violations.Dan Gohman2008-01-291-1/+2
| | | | llvm-svn: 46510
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb2007-12-171-2/+2
| | | | | | 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. llvm-svn: 45082
* Implement review feedback. Aliasees can be either GlobalValue's orAnton Korobeynikov2007-04-281-0/+3
| | | | | | bitcasts of them. llvm-svn: 36537
* Implement aliases. This fixes PR1017 and it's dependent bugs. CFE partAnton Korobeynikov2007-04-251-0/+23
| | | | | | will follow. llvm-svn: 36435
* The (negative) offset from a SymbolTableListTraits-using ilist to its containerChris Lattner2007-04-171-2/+0
| | | | | | | | | 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. llvm-svn: 36189
* Refactor SymbolTableListTraits to only have a single pointer in it, insteadChris Lattner2007-04-171-6/+2
| | | | | | | | 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. llvm-svn: 36188
* For PR1146:Reid Spencer2007-04-091-2/+1
| | | | | | Simplify construction of FunctionType to use default arguments. llvm-svn: 35810
* For PR411:Reid Spencer2007-02-051-2/+2
| | | | | | | | Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) llvm-svn: 33922
* For PR411:Reid Spencer2007-02-051-94/+18
| | | | | | | | | | 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. llvm-svn: 33918
* For PR1163:Reid Spencer2007-02-041-0/+17
| | | | | | | 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. llvm-svn: 33855
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-1/+1
| | | | | | confusion with external linkage types. llvm-svn: 33663
* For PR761:Reid Spencer2007-01-261-20/+0
| | | | | | | Remove the setEndianess and setPointerSize methods. These are now handled via the setDataLayout method. llvm-svn: 33527
* Change the interface to Module::getOrInsertFunction to be easier to use,Chris Lattner2007-01-071-12/+24
| | | | | | to resolve PR1088, and to help PR411. llvm-svn: 32988
* For PR411:Reid Spencer2007-01-061-12/+15
| | | | | | | | | 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. llvm-svn: 32956
* For PR950:Reid Spencer2006-12-311-7/+8
| | | | | | Change signed integer type names to unsigned equivalents. llvm-svn: 32780
* Removing even more <iostream> includes.Bill Wendling2006-12-071-2/+1
| | | | llvm-svn: 32320
* Make the getNamedFunction and getNamedGlobal methods be const. They don'tReid Spencer2006-05-311-8/+8
| | | | | | change the module in any way and we should enforce that. llvm-svn: 28588
* Fix some think-o's in my last commit. Thanks to Chris for pointing them out.Owen Anderson2006-05-181-16/+18
| | | | llvm-svn: 28380
* Change Module to use TargetData-compatible strings internally.Owen Anderson2006-05-181-1/+60
| | | | | | This is part of the on-going work on PR 761. llvm-svn: 28379
* add a new helper method.Chris Lattner2006-03-081-0/+14
| | | | llvm-svn: 26618
* Change inline asms to be uniqued like constants, not embedded in a Module.Chris Lattner2006-01-251-17/+0
| | | | llvm-svn: 25610
* Initial checkin of the InlineAsm classChris Lattner2006-01-241-1/+18
| | | | llvm-svn: 25570
* Add a flag to Module::getGlobalVariable to allow it to return vars withChris Lattner2005-12-051-7/+7
| | | | | | | | internal linkage. Patch provided by Evan Jones, thanks! llvm-svn: 24604
* Remove trailing whitespaceMisha Brukman2005-04-211-5/+5
| | | | llvm-svn: 21427
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-1/+1
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Improve conformance with the Misha spelling benchmark suiteChris Lattner2005-01-301-2/+2
| | | | llvm-svn: 19930
* Adjust to ilist changes.Chris Lattner2005-01-291-2/+2
| | | | llvm-svn: 19923
* Okay, the list of link-time passes wasn't such a hot idea. Its prone toReid Spencer2004-09-141-7/+0
| | | | | | | 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. llvm-svn: 16333
* Add support for the link-time pass list to Modules.Reid Spencer2004-09-131-0/+6
| | | | llvm-svn: 16321
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | 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/. llvm-svn: 16137
* bug 263:Reid Spencer2004-07-251-0/+1
| | | | | | Ensure the list of libraries is cleared. llvm-svn: 15212
* bug 122:Reid Spencer2004-07-171-45/+0
| | | | | | - Module doesn't need to manage ConstantPointerRefs any more. llvm-svn: 14931
* Replace use of defunct Type::setName method with SymbolTable::insert.Reid Spencer2004-07-101-1/+1
| | | | | | Patch found and provided by Vladimir Merzliakov. Thanks Vladimir! llvm-svn: 14732
* - #include <iostream> since its not in Value.h any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14617
* Convert to SymbolTable's new lookup and iteration interfaces.Reid Spencer2004-05-251-7/+6
| | | | llvm-svn: 13751
* I'm allergic to the word `stuff'.Misha Brukman2004-04-211-1/+1
| | | | llvm-svn: 13096
* Remove Module::mutateConstantPointerRef, which is now thankfully dead!Chris Lattner2004-03-081-25/+0
| | | | | | | This is one small step towards the complete obliteration of ConstantPointerRef's entirely!! Woot! llvm-svn: 12216
* Add some comments, add new getGlobalVariable methodChris Lattner2003-12-311-1/+43
| | | | llvm-svn: 10671
* * Make Module::getTypeName constChris Lattner2003-12-311-16/+23
| | | | | | | * Add new Module::getTypeByName method * Group methods in Module.cpp better llvm-svn: 10668
* Finegrainify namespacificationChris Lattner2003-11-211-8/+8
| | | | llvm-svn: 10131
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Make code gcc 3.4 cleanChris Lattner2003-11-051-2/+2
| | | | llvm-svn: 9719
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* Regularize header file commentsChris Lattner2003-10-131-1/+1
| | | | llvm-svn: 9071
* Fix spelling/grammar.Misha Brukman2003-10-101-1/+1
| | | | llvm-svn: 9023
* Implement new methodChris Lattner2003-08-311-0/+24
| | | | llvm-svn: 8238
* Support new 'any' support for pointer size and endiannessChris Lattner2003-08-241-1/+1
| | | | llvm-svn: 8119
* Make Module::getNamedFunction prefer non-external functions if there is more ↵Chris Lattner2003-07-231-2/+6
| | | | | | | | than one function of the same name llvm-svn: 7274
* Fix bug: Assembler/2003-05-15-AssemblerProblem.llxChris Lattner2003-05-151-2/+13
| | | | llvm-svn: 6234
OpenPOWER on IntegriCloud