aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* standardize command line option namesChris Lattner2003-10-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9496 91177308-0d34-0410-b5e6-96231b3b80d8
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-18/+4
| | | | | | | | | | | CurFrame, TraceMode, and the CachedWriter are history. The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history. ExecutionContext now keeps Values for each stack frame in a std::map. printValue() and print() are history. executeInstruction() is now part of run(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9493 91177308-0d34-0410-b5e6-96231b3b80d8
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-13/+7
| | | | | | | CurFrame, TraceMode, and the CachedWriter are history. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9492 91177308-0d34-0410-b5e6-96231b3b80d8
* The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.Brian Gaeke2003-10-241-71/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9490 91177308-0d34-0410-b5e6-96231b3b80d8
* Reduce the number of #includes.Brian Gaeke2003-10-241-186/+22
| | | | | | | | | | | | | | CurFrame, TraceMode, and the CachedWriter are history. ArrayChecksEnabled and non-QuietMode are history. The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history. ExecutionContext now keeps Values for each stack frame in a std::map. Stop pre-initializing Values on the stack to 42. Remove some dead variables, excess whitespace and commented-out code. executeInstruction() is now part of run(). printValue() and print() are history. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9489 91177308-0d34-0410-b5e6-96231b3b80d8
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9488 91177308-0d34-0410-b5e6-96231b3b80d8
* Destroy MachineFunction for any Function that we are about toBrian Gaeke2003-10-241-0/+2
| | | | | | | | recompile and relink. This keeps it from failing an assertion when it goes and tries to construct a new MachineFunction for that Function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9459 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the implementations of ==, != on AllocInfos here, from UnpackTraceFunction.Brian Gaeke2003-10-232-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9452 91177308-0d34-0410-b5e6-96231b3b80d8
* Move AllocInfo structure to a private AllocInfo.h header file.Brian Gaeke2003-10-232-96/+30
| | | | | | | | | Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants. Give doFinalization a method comment, and let it do the work of converting AllocInfos to LLVM Constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9451 91177308-0d34-0410-b5e6-96231b3b80d8
* Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants.Brian Gaeke2003-10-232-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9450 91177308-0d34-0410-b5e6-96231b3b80d8
* New file, containing AllocInfo structure.Brian Gaeke2003-10-232-0/+122
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9449 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: CBackend/2003-10-23-UnusedType.ll and hopefully 252.eonChris Lattner2003-10-231-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9441 91177308-0d34-0410-b5e6-96231b3b80d8
* We might as well strip off any CPRs before propagationChris Lattner2003-10-231-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9437 91177308-0d34-0410-b5e6-96231b3b80d8
* Fail gracefully if we have a zero arg varargs functionChris Lattner2003-10-232-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9436 91177308-0d34-0410-b5e6-96231b3b80d8
* * Eliminate `using' directiveMisha Brukman2003-10-234-104/+52
| | | | | | | | | * Fix order of #includes * Make code layout more consistent * Eliminate extraneous whitespace and comment-lines git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9433 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix order of #include filesMisha Brukman2003-10-234-42/+44
| | | | | | | * Doxygen-ify method comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9432 91177308-0d34-0410-b5e6-96231b3b80d8
* * Order #includes as per style guideMisha Brukman2003-10-236-92/+90
| | | | | | | | * Doxygen-ify comments * Make code layout more consistent git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9431 91177308-0d34-0410-b5e6-96231b3b80d8
* * Use C++ style comments instead of C-styleMisha Brukman2003-10-234-60/+50
| | | | | | | | | * Make file description more readable * Make code layout more consistent, include comment in assert so it's visible during execution if it hits git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9430 91177308-0d34-0410-b5e6-96231b3b80d8
* * Eliminate `using' directiveMisha Brukman2003-10-231-9/+10
| | | | | | | * Order #includes as per style guide git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9429 91177308-0d34-0410-b5e6-96231b3b80d8
* * We were forgetting to pass varargs arguments through a callChris Lattner2003-10-231-0/+18
| | | | | | | * Add a work around for bug PR56, gross but necessary for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9428 91177308-0d34-0410-b5e6-96231b3b80d8
* * Eliminate `using' directiveMisha Brukman2003-10-232-212/+176
| | | | | | | * Make code layout more consistent git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9427 91177308-0d34-0410-b5e6-96231b3b80d8
* Make code layout more consistent.Misha Brukman2003-10-236-636/+518
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9426 91177308-0d34-0410-b5e6-96231b3b80d8
* Delete unused EmitByteSwap methodChris Lattner2003-10-232-98/+86
| | | | | | | Implement mul/div/rem constant expressions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9424 91177308-0d34-0410-b5e6-96231b3b80d8
* Check in initial version of ipcpChris Lattner2003-10-231-0/+110
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9423 91177308-0d34-0410-b5e6-96231b3b80d8
* Make code layout more consistent.Misha Brukman2003-10-231-58/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9418 91177308-0d34-0410-b5e6-96231b3b80d8
* * Order includes according to style guideMisha Brukman2003-10-232-210/+212
| | | | | | | | * Convert tabs to spaces * Make code fit within 80 columns git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9416 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: instcombine/2003-10-23-InstcombineNullFail.llChris Lattner2003-10-231-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9403 91177308-0d34-0410-b5e6-96231b3b80d8
* Make this pass substantially stronger by having it delete dead return valuesChris Lattner2003-10-231-127/+354
| | | | | | | | | | as well as arguments. Now it can delete arguments and return values which are only passed into other arguments or are returned, if they are dead. This causes it to delete several hundred extra args/retvals from the C++ hello world program, shrinking it by about 2K. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9398 91177308-0d34-0410-b5e6-96231b3b80d8
* This important patch fixes two warnings in the linker which can occur from ↵Chris Lattner2003-10-221-4/+33
| | | | | | | | | linking valid pieces of code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9390 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the type of FnAllocState.Brian Gaeke2003-10-222-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9388 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't worry about converting each function's reg. alloc. state into One BigBrian Gaeke2003-10-222-40/+42
| | | | | | | | | Constant early on, because we can do it in doFinalization. Tighten up a comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9387 91177308-0d34-0410-b5e6-96231b3b80d8
* Add prototype for verifySavedState().Brian Gaeke2003-10-222-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9386 91177308-0d34-0410-b5e6-96231b3b80d8
* Doxygenify method comments.Brian Gaeke2003-10-222-414/+308
| | | | | | | | | Try to improve method comments a little. Get rid of some excess whitespace; put braces on previous line when possible. Add stub for method to verify the work of saveState(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9385 91177308-0d34-0410-b5e6-96231b3b80d8
* This is a disgusting hack that improves code substantially, by makingChris Lattner2003-10-221-2/+122
| | | | | | | callgraphSCC passes more effective. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9384 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not add unreachable code to a natural loop!Chris Lattner2003-10-221-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9377 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to print labels on nodes without namesChris Lattner2003-10-221-1/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9376 91177308-0d34-0410-b5e6-96231b3b80d8
* If the basic block has no name, make sure to print the % number of itChris Lattner2003-10-221-1/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9375 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the Function::viewCFG* methods, for use in a debugger. Also, theChris Lattner2003-10-221-0/+144
| | | | | | | -print-cfg pass now lives here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9374 91177308-0d34-0410-b5e6-96231b3b80d8
* Add comments to describe what these functions actually do.Misha Brukman2003-10-221-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9370 91177308-0d34-0410-b5e6-96231b3b80d8
* * Use <cmath> instead of <math.h>Misha Brukman2003-10-221-12/+12
| | | | | | | * Order #includes according to LLVM coding standards git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9369 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed completely duplicated function comment (an identical one appears later).Misha Brukman2003-10-221-19/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9368 91177308-0d34-0410-b5e6-96231b3b80d8
* No, really, order the #includes correctly.Misha Brukman2003-10-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9367 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the 'used' flag correctlyChris Lattner2003-10-221-6/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9366 91177308-0d34-0410-b5e6-96231b3b80d8
* Loop over the module, not the symbol table. This makes the code handleChris Lattner2003-10-221-21/+18
| | | | | | | unused external functions again git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9365 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement FunctionResolve/2003-10-21-GlobalResolveHack.llChris Lattner2003-10-221-2/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9363 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix order of #includes to follow style guideMisha Brukman2003-10-221-39/+27
| | | | | | | | | * It's no longer a BasicBlock pass: update comment on run() method * Fix placement of braces to be consistent * Delete extraneous whitespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9361 91177308-0d34-0410-b5e6-96231b3b80d8
* Converted tabs to spaces.Misha Brukman2003-10-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9360 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: FunctionResolve/2003-10-21-GlobalTypeDifference.llChris Lattner2003-10-211-55/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9359 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: Linker/2003-10-21-ConflictingTypesTolerance.llChris Lattner2003-10-213-39/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9357 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix message to make more sense and confuse Chris lessChris Lattner2003-10-213-6/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9354 91177308-0d34-0410-b5e6-96231b3b80d8