summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionResolution.cpp
Commit message (Collapse)AuthorAgeFilesLines
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-2/+2
| | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597
* Adjust to changes in APIsChris Lattner2005-02-011-3/+3
| | | | llvm-svn: 19958
* Disable the 'WARNING: Found global types that are not compatible' warningChris Lattner2004-09-301-1/+1
| | | | | | that always prints when linking programs to libstdc++ :( llvm-svn: 16603
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-4/+4
| | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. llvm-svn: 16436
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | 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
* If we are linking two global variables and they have the same size, do notChris Lattner2004-08-201-8/+9
| | | | | | spew warnings, even if the types don't match. llvm-svn: 15933
* Fix #includes of i*.h => Instructions.h as per PR403.Misha Brukman2004-07-291-1/+1
| | | | llvm-svn: 15334
* bug 122:Reid Spencer2004-07-181-6/+4
| | | | | | - Replace ConstantPointerRef usage with GlobalValue usage llvm-svn: 14953
* Do not function resolve intrinsics. This prevents warnings and possible badChris Lattner2004-06-181-1/+2
| | | | | | | | | things from happening due to declare bool %llvm.isunordered(double, double) declare bool %llvm.isunordered(float, float) llvm-svn: 14219
* Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()Chris Lattner2004-06-171-2/+2
| | | | llvm-svn: 14201
* Start using the new and improve interface to FunctionType argumentsChris Lattner2004-02-091-7/+7
| | | | llvm-svn: 11224
* * Finegrainify namespacificationChris Lattner2003-11-201-8/+27
| | | | | | | | * Implement FuncResolve/2003-11-20-BogusResolveWarning.ll ... which eliminates a large number of annoying warnings. I know misha will miss them though! llvm-svn: 10123
* When spewing out warnings during function resolution, do not vomit out pagesChris Lattner2003-11-201-4/+8
| | | | | | and pages of non-symbolic types. llvm-svn: 10109
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* This important patch fixes two warnings in the linker which can occur from ↵Chris Lattner2003-10-221-4/+33
| | | | | | | | linking valid pieces of code llvm-svn: 9390
* Update the 'used' flag correctlyChris Lattner2003-10-221-6/+7
| | | | llvm-svn: 9366
* Loop over the module, not the symbol table. This makes the code handleChris Lattner2003-10-221-21/+18
| | | | | | unused external functions again llvm-svn: 9365
* Implement FunctionResolve/2003-10-21-GlobalResolveHack.llChris Lattner2003-10-221-2/+34
| | | | llvm-svn: 9363
* Fix bug: FunctionResolve/2003-10-21-GlobalTypeDifference.llChris Lattner2003-10-211-55/+19
| | | | llvm-svn: 9359
* 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
* Fix bug: FunctionResolve/2003-08-23-ArgumentWarning.llChris Lattner2003-08-231-6/+6
| | | | llvm-svn: 8076
* Unless we CANNOT merge the arguments, do soChris Lattner2003-08-201-1/+3
| | | | llvm-svn: 7999
* Fix FIXME by removing FIXMEChris Lattner2003-08-131-1/+1
| | | | llvm-svn: 7832
* Fix bug: FunctionResolve/2003-07-23-CPR-Reference.llChris Lattner2003-07-231-6/+8
| | | | | | | This fixes a long time annoyance which caused prototypes for bzero, bcopy, bcmp, fputs, and fputs_unlocked to never get deleted. Grr. llvm-svn: 7285
* Remove a bunch of complicated code. The functionality is implemented in ↵Chris Lattner2003-06-191-118/+6
| | | | | | instcombine instead llvm-svn: 6782
* Fix bug: FunctionResolve/2003-05-31-AllInternalDecls.llChris Lattner2003-05-311-0/+17
| | | | llvm-svn: 6486
* Fix bug: FuncResolve/2003-05-31-InternalDecl.llChris Lattner2003-05-311-2/+6
| | | | | | Count resolutions correctly. llvm-svn: 6482
* Simplify funcresolve a bit moreChris Lattner2003-05-311-7/+7
| | | | llvm-svn: 6480
* Fix bug: FunctionResolve/2003-05-31-FuncPointerResolve.llChris Lattner2003-05-311-11/+3
| | | | llvm-svn: 6479
* Fix bug: FunctionResolve/2003-05-21-MissingArguments.llChris Lattner2003-05-211-0/+5
| | | | llvm-svn: 6273
* Fix several bugs:Chris Lattner2003-04-281-9/+20
| | | | | | | | | | * Warnings were emitted all of the time and were really annoying * Functions could not be resolved unless they had external linkage. Linkonce linkage was not allowed * ConstantPointerRef's were not handled when linking functions we now actually handle cast (CPR) to X -> cast (NewCPR) to X llvm-svn: 5967
* Implement: FunctionResolve/2003-04-18-ForwardDeclGlobal.llChris Lattner2003-04-191-43/+39
| | | | llvm-svn: 5816
* Change the interface to constant expressions to allow automatic foldingChris Lattner2003-04-161-1/+1
| | | | llvm-svn: 5793
* Eliminate tons of bogus warningsChris Lattner2003-03-031-8/+10
| | | | llvm-svn: 5686
* Replace assertion with a handler.Chris Lattner2003-02-271-15/+21
| | | | llvm-svn: 5653
* Fix a bug that cause a crash resolving questionable function callsChris Lattner2003-02-141-2/+4
| | | | llvm-svn: 5567
* Fix a bug resolving sprintf(...) to sprintf(char*, char*, ...)Chris Lattner2003-01-301-3/+8
| | | | llvm-svn: 5446
* Actually print the function _name_ if there is a problemChris Lattner2003-01-301-1/+2
| | | | llvm-svn: 5443
* * Fix function resolution for varargs function to generate incorrect ↵Chris Lattner2003-01-301-24/+29
| | | | | | | | | bytecode instead of crashing * remove using decls CVS: ---------------------------------------------------------------------- llvm-svn: 5437
* - Eliminated the deferred symbol table stuff in Module & Function, it reallyChris Lattner2002-11-201-3/+2
| | | | | | wasn't an optimization and it was causing lots of bugs. llvm-svn: 4779
* Fix testcase: FunctionResolve/2002-11-09-ExternFn.llChris Lattner2002-11-101-19/+37
| | | | llvm-svn: 4668
* Fix bug: FunctionResolve/2002-11-07-RetMismatch.llChris Lattner2002-11-081-2/+1
| | | | llvm-svn: 4618
* Account for global variables resolved more accurately.Chris Lattner2002-10-131-3/+5
| | | | llvm-svn: 4143
* Almost a complete rewrite of FunctionResolution to now resolve functionsChris Lattner2002-10-091-122/+213
| | | | | | | | | | | | | | and global variables. This fixes bug: FuncResolve/2002-08-19-ResolveGlobalVarsEasier.ll And bug: SingleSource/UnitTests/2002-10-09-ArrayResolution.c Note that this does not fix bug: FunctionResolve/2002-08-19-ResolveGlobalVars.ll because replaceAllUsesWith breaks when a constantexpr is pointing to the thing being replaced. This is more of an infrastructure problem than anything. llvm-svn: 4099
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-2/+2
| | | | | | | | | | | | * Renamed StatisticReporter.h/cpp to Statistic.h/cpp * Broke constructor to take two const char * arguments instead of one, so that indendation can be taken care of automatically. * Sort the list by pass name when printing * Make sure to print all statistics as a group, instead of randomly when the statistics dtors are called. * Updated ProgrammersManual with new semantics. llvm-svn: 4002
* Simplify code (somtimes dramatically), by using the new "auto-insert" featureChris Lattner2002-09-101-11/+5
| | | | | | of instruction constructors. llvm-svn: 3655
* Remove unneccesary #inlcudeChris Lattner2002-08-011-1/+0
| | | | llvm-svn: 3200
* Fix bug with last patch which would occur when a call returned void and weChris Lattner2002-07-301-1/+2
| | | | | | attempted to assign it a name. llvm-svn: 3142
* * Make sure the resolved function call instructions get the name from theChris Lattner2002-07-301-7/+15
| | | | | | | | old call instruction * Implement conversion of return values for calls. This fixes bug: test/Regression/Transforms/FunctionResolve/retmismatch3.ll llvm-svn: 3140
* * Add support for different "PassType's"Chris Lattner2002-07-261-1/+1
| | | | | | | | | | | | | | | * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Add support for different "PassType's" * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Remove getPassName implementations from various subclasses llvm-svn: 3112
OpenPOWER on IntegriCloud