summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * Change Constant::getNullConstant to Constant::getNullValueChris Lattner2002-04-271-33/+1
| | | | | | * Remove some unused code llvm-svn: 2324
* Change Constant::getNullConstant to Constant::getNullValueChris Lattner2002-04-276-17/+14
| | | | llvm-svn: 2323
* Simplify code a bitChris Lattner2002-04-271-6/+5
| | | | llvm-svn: 2322
* Don't record instructions for copying method arguments in theVikram S. Adve2002-04-251-0/+1
| | | | | | | | AddedInstrns sets for the first machine instruction. It is hard to ensure that the right order is preserved, and sure enough, the order was broken. Instead, use a separate set for the function entry. llvm-svn: 2318
* Don't pad spills and temp. stack areas for alignment.Vikram S. Adve2002-04-251-4/+5
| | | | | | | Freeze auto vars and spill areas when their sizes are used for computing other offsets. llvm-svn: 2317
* Major changes to how int and FP arguments are handled. VarargsVikram S. Adve2002-04-251-189/+254
| | | | | | | function calls were simply wrong; other functions were just not using all available registers. llvm-svn: 2316
* Added functions to compute which register, if any, to useVikram S. Adve2002-04-251-15/+20
| | | | | | for a particular argument in a list of arguments. llvm-svn: 2315
* Insert copy operations for FP arguments to a varargs function,Vikram S. Adve2002-04-251-31/+69
| | | | | | | | to copy the FP arg. to an integer. Necessary so that the register allocator has two different live ranges for the FP value and the int. argument. llvm-svn: 2314
* Implementation of class MachineFrameInfo.Vikram S. Adve2002-04-251-0/+50
| | | | llvm-svn: 2313
* Don't record instructions for copying method arguments in theVikram S. Adve2002-04-251-66/+78
| | | | | | | | AddedInstrns sets for the first machine instruction. It is hard to ensure that the right order is preserved, and sure enough, the order was broken. Instead, use a separate set for the function entry. llvm-svn: 2312
* Improve printing during dumps.Vikram S. Adve2002-04-251-28/+16
| | | | llvm-svn: 2311
* Optional args are no longer allocated as they are discovered.Vikram S. Adve2002-04-251-51/+22
| | | | | | | | (This can be improved to avoid making the initial pass over the method.) Also, ensure automatic vars and reg. spills areas are not extended if their sizes are used for computing some other offset. llvm-svn: 2310
* * Abort program on verification errorsChris Lattner2002-04-241-1/+41
| | | | | | | * Verify that load, store, and GEP instructions indices are correct, because they _continually_ bite me on this pool allocations stuff llvm-svn: 2309
* Add some basic checks of CallInst's.Chris Lattner2002-04-181-8/+17
| | | | | | Assert now returns from the current function on error. llvm-svn: 2308
* Programs that actually free memory were brokenChris Lattner2002-04-181-1/+1
| | | | llvm-svn: 2307
* * Convert the verifier to use an InstVisitor to be better structuredChris Lattner2002-04-181-137/+154
| | | | | | | | * Implement checking that a binary operator's two sides are the same type * Actually check that an instruction does not have a name if it has a void return type. llvm-svn: 2305
* Add new api for basic signal handling for toolsChris Lattner2002-04-181-0/+53
| | | | llvm-svn: 2302
* Move asmwriter/getStrValue cruft into AsmWriter.cpp file.Chris Lattner2002-04-181-128/+0
| | | | llvm-svn: 2300
* Pull all of the getStrValue implementation cruft out of Constants.cpp andChris Lattner2002-04-181-24/+94
| | | | | | | put it into the AsmWriter. This code is kinda gross and could probably be cleaned up, but not now. llvm-svn: 2299
* Add a fixme so that we don't forget this is broken.Chris Lattner2002-04-181-0/+3
| | | | llvm-svn: 2298
* * getAsString requires that the input array is string compatible, soChris Lattner2002-04-181-33/+32
| | | | | | | assert it. * Use WriteAsOperand instead of getStringValue for constants llvm-svn: 2296
* Make debugging code not use getStrValueChris Lattner2002-04-181-2/+1
| | | | llvm-svn: 2295
* Just use << isntead of forcing getStrValueChris Lattner2002-04-181-1/+1
| | | | llvm-svn: 2294
* Print argument scalars as ellipses instead of boxesChris Lattner2002-04-181-1/+2
| | | | llvm-svn: 2293
* Significantly rework InstructionCombining to work better and to be cleaner.Chris Lattner2002-04-181-94/+141
| | | | | | | | We now use an InstVisitor to delegate to different cases that we are interested in handling. We also fix the FIXME's by adding users to the worklist when appropriate. llvm-svn: 2292
* Convert SCCP over to use InstVisitor instead of hand crafted switchChris Lattner2002-04-181-181/+136
| | | | llvm-svn: 2286
* Remove gep::isStructSelectorChris Lattner2002-04-181-9/+4
| | | | | | CTor's do not allow names anymore for StoreInst objects llvm-svn: 2285
* GEP instructions can never be constant propogated.Chris Lattner2002-04-181-7/+12
| | | | llvm-svn: 2284
* Store instructions always return void, so they never get a nameChris Lattner2002-04-181-2/+1
| | | | llvm-svn: 2283
* Correctly transform dependant arguments, allowing the perimeter bm to work.Chris Lattner2002-04-181-82/+303
| | | | llvm-svn: 2282
* Fix a bug printing out %c formated characters.Chris Lattner2002-04-171-1/+1
| | | | llvm-svn: 2277
* Inline indirect function calls that are only capable of calling one functionChris Lattner2002-04-172-10/+13
| | | | llvm-svn: 2275
* Make data structure acurately get ALL edges, even loads of null fields ofChris Lattner2002-04-173-29/+30
| | | | | | | | nodes that are not shadow nodes This fixes em3d to be _correct_ if not optimial llvm-svn: 2274
* Add casts for documentationChris Lattner2002-04-161-2/+2
| | | | llvm-svn: 2272
* * Clean up the code a bitChris Lattner2002-04-161-8/+4
| | | | | | | | * Allow structs with negative offsets. This enables the em3d benchmark to be made typesafe. In this case, the struct had an array as the first element, so a negative index was ok (the expr was -8 + 8x) llvm-svn: 2271
* Remove old frivolous uses of getStrValue in a debugging statementChris Lattner2002-04-161-2/+2
| | | | llvm-svn: 2270
* Remove unneccesary castChris Lattner2002-04-161-1/+1
| | | | llvm-svn: 2269
* Changes to:Chris Lattner2002-04-161-44/+106
| | | | | | | | | | | | | | * Fix bug printing method types (oops when converting previous code) * Move some of the code from Constant::getStrValue implementations here. This allows us to do a MUCH MUCH better job printing out complex constant values (think an array of structure pointers), because we print symbolic type names instead of structural. The assistance when debugging is immense Eventually, Constant::getStrValue should be removed (it existed before because the asmwriter file was not in VMCore), and everyone should go through the asmwriter that want's equivalent functionality. llvm-svn: 2268
* * Remove the concept of a critical shadow nodeChris Lattner2002-04-165-55/+79
| | | | | | | | * Make the function pointer argument explicit for a call nodes * Eliminate unreachable global values * Merge call nodes that are identical llvm-svn: 2266
* * Eliminate ArgDSNode's completely, now rely on scalar mapChris Lattner2002-04-165-100/+94
| | | | | | | | | * Fold call nodes that are indistinguishable for each other. This is a big win for external functions like sqrt, which would multiply dramatically before. * Global nodes with no edges to or from them are now eliminated from the graph. llvm-svn: 2257
* run an extra pass after a function has been transformed to eliminateChris Lattner2002-04-151-0/+122
| | | | | | obviously duplicate loads of the pool base. llvm-svn: 2255
* Only print debug message if DEBUG_RA is onChris Lattner2002-04-151-8/+6
| | | | llvm-svn: 2254
* Only emit message if DEBUG_RA is onChris Lattner2002-04-151-6/+6
| | | | llvm-svn: 2252
* Eliminate cast of same type instructions.Chris Lattner2002-04-151-0/+8
| | | | llvm-svn: 2251
* * s/Method/FunctionChris Lattner2002-04-141-27/+18
| | | | | | * Fix bug where the character after a % was being discarded llvm-svn: 2248
* Turn off debug outputChris Lattner2002-04-141-9/+36
| | | | llvm-svn: 2247
* * Allow datasize to be specified on the commandlineChris Lattner2002-04-131-13/+58
| | | | | | | | * Build new datatypes correctly * Transform instructions that return null pointers from functions to return a null index. llvm-svn: 2244
* * Fix bug: test/Regression/Verifier/2002-04-13-RetTypes.llChris Lattner2002-04-131-22/+47
| | | | | | * Check that arguments match the method types of the method they live in llvm-svn: 2243
* Minor bugfix for previous checkinChris Lattner2002-04-131-1/+1
| | | | llvm-svn: 2241
* * Remove obselete code for unsized arraysChris Lattner2002-04-131-20/+67
| | | | | | | | | | | * Add new function printTypeAtLeastOneLevel used to... * Print the symbol table *WITH SYMBOLIC TYPES*. Now we get: %tree = type { int, %tree*, %tree* } in the type definition section of the disassembled output instead of %tree = type { int, \2*, \2* } the different for the health benchmark and power are simply amazing. llvm-svn: 2240
OpenPOWER on IntegriCloud