summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Changes because the Terminator::getSuccessor function now FAILS if successorChris Lattner2002-04-272-6/+11
| | | | | | IDX is out of range instead of returning null. llvm-svn: 2332
* Use the cast<> operator in favor of C style castsChris Lattner2002-04-271-3/+3
| | | | llvm-svn: 2331
* Change the semantics of getSuccessor to FAIL if an out of range successor # ↵Chris Lattner2002-04-272-32/+18
| | | | | | is attempted. llvm-svn: 2330
* * Change Constant::getNullConstant to Constant::getNullValueChris Lattner2002-04-271-35/+51
| | | | | | * Add support for pool allocating array allocations of varying size llvm-svn: 2329
* Add support for tracking array allocationsChris Lattner2002-04-272-2/+13
| | | | llvm-svn: 2328
* Allow the inline limit to be modified on the commandline for debuggingChris Lattner2002-04-271-1/+6
| | | | llvm-svn: 2327
* Support array allocationsChris Lattner2002-04-271-2/+7
| | | | llvm-svn: 2326
* Trivial simplification of codeChris Lattner2002-04-271-2/+1
| | | | llvm-svn: 2325
* * 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
* Rename getNullConstant to getNullValueChris Lattner2002-04-271-11/+11
| | | | llvm-svn: 2321
* Added functions to compute the offset of a given incoming or outgoingVikram S. Adve2002-04-251-7/+15
| | | | | | argument. These are no longer allocated as they are discovered. llvm-svn: 2320
* Optional args are no longer allocated as they are discovered.Vikram S. Adve2002-04-252-34/+28
| | | | | | | | (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: 2319
* 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
* Changes to make print pass work!Chris Lattner2002-04-181-1/+2
| | | | llvm-svn: 2306
* * 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
* New testcaseChris Lattner2002-04-181-0/+9
| | | | llvm-svn: 2304
* Make sure that there is no case where a signal can occur leaving a partiallyChris Lattner2002-04-1812-0/+58
| | | | | | | | written output file. This is important because crashing testcases often write part of a file out, and the testing harness decides the file is up-to-date next time the test is run. llvm-svn: 2303
* Add new api for basic signal handling for toolsChris Lattner2002-04-182-0/+106
| | | | llvm-svn: 2302
* New api for signal handling for LLVM toolsChris Lattner2002-04-181-0/+18
| | | | llvm-svn: 2301
* 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
* Remove getStrValue method from Constant implementations. The AssemblyWriterChris Lattner2002-04-181-15/+0
| | | | | | | now knows how to write out a constant, not the constants themselves. This is fixed due to the move of the AsmWriter to the VMcore library. llvm-svn: 2297
* * 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
* New testcase.Chris Lattner2002-04-181-0/+32
| | | | llvm-svn: 2291
* * Add a comment to the header giving a breif overview of how to return aChris Lattner2002-04-181-23/+62
| | | | | | | | | value from a visit function * Define a (file local) DELEGATE macro to make the code easier to read/maintain * Define per-opcode delegation functions so that users can override specific instances of BinaryOperator for example. llvm-svn: 2290
* * Make dtor virtualChris Lattner2002-04-181-26/+28
| | | | | | | * Add a new defaulted argument that allows the instruction visitation visitors to return a non-void value. llvm-svn: 2289
* Check in the first test: make sure getelementptr gets foldedChris Lattner2002-04-182-0/+31
| | | | llvm-svn: 2288
* Test the instruction combinerChris Lattner2002-04-181-1/+1
| | | | llvm-svn: 2287
* 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
OpenPOWER on IntegriCloud