summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
* Catch some more cases of broken code. The loop extractor seems to be creatingChris Lattner2004-03-141-3/+8
| | | | | | situations where there is a branch that goes to a block in another function. llvm-svn: 12379
* verifyFunction has been broken for a long time now. Fix it.Chris Lattner2004-03-141-12/+8
| | | | llvm-svn: 12377
* Rename the intrinsic enum values for llvm.va_* from Intrinsic::va_* toChris Lattner2004-03-132-6/+6
| | | | | | Intrinsic::va*. This avoid conflicting with macros in the stdlib.h file. llvm-svn: 12356
* Keep transitively-required passes alive for queries to work after the initialMisha Brukman2004-03-121-1/+10
| | | | | | user pass is destroyed. llvm-svn: 12332
* Add support for checking the select instructionChris Lattner2004-03-121-0/+11
| | | | llvm-svn: 12325
* Know the opcode name of the select instructionChris Lattner2004-03-121-0/+1
| | | | llvm-svn: 12324
* Add support for select constant expressions. Use reserve a bit more to avoidChris Lattner2004-03-121-0/+35
| | | | | | memory wasteage. llvm-svn: 12323
* Add new functionChris Lattner2004-03-121-0/+3
| | | | llvm-svn: 12322
* Teach the constant folder how to do select instructionsChris Lattner2004-03-121-0/+11
| | | | llvm-svn: 12321
* Print select instructions correctlyChris Lattner2004-03-121-2/+3
| | | | llvm-svn: 12320
* Fix indentation.Misha Brukman2004-03-111-2/+2
| | | | llvm-svn: 12298
* Adjust to new interfaceChris Lattner2004-03-081-1/+3
| | | | llvm-svn: 12231
* Implement test/Regression/Assembler/2004-03-07-FunctionAddressAlignment.llxChris Lattner2004-03-081-0/+20
| | | | llvm-svn: 12218
* 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
* Eliminate nightmarish APIChris Lattner2004-03-081-23/+0
| | | | llvm-svn: 12214
* Doxygenify comments.Misha Brukman2004-03-022-50/+46
| | | | llvm-svn: 12071
* * If a badref has a name, print it out for ease of debuggingMisha Brukman2004-03-011-15/+17
| | | | | | * Doxygenify (some) comments llvm-svn: 12057
* Fix -debug-pass=Executions, which relied on Function, Module, and BasicBlockChris Lattner2004-02-292-22/+28
| | | | | | being annotable llvm-svn: 12013
* Fix typo in commentBrian Gaeke2004-02-281-1/+1
| | | | llvm-svn: 11966
* Fix Regression/Assembler/2004-02-27-SelfUseAssertError.llChris Lattner2004-02-271-1/+2
| | | | llvm-svn: 11913
* Make sure that at least one virtual method is defined in a .cpp file to avoidChris Lattner2004-02-261-0/+1
| | | | | | having the compiler emit RTTI and vtables to EVERY translation unit. llvm-svn: 11871
* Make the verifier a little more explicit about this problem.Chris Lattner2004-02-241-2/+2
| | | | llvm-svn: 11811
* Get all instruction definitionsChris Lattner2004-02-221-3/+1
| | | | llvm-svn: 11706
* Adjust to recent changesChris Lattner2004-02-171-2/+2
| | | | llvm-svn: 11514
* Move the folding of gep null, 0, 0, 0 to a place where it can be shared andChris Lattner2004-02-162-14/+20
| | | | | | enjoyed by all, fixing a fixme. Add an assert llvm-svn: 11505
* By default, llvm.setjmp/llvm.longjmp intrinsics get lowered to their libc ↵Chris Lattner2004-02-151-3/+15
| | | | | | counterparts llvm-svn: 11483
* Refactor code. Now the intrinsic lowering pass tries to recycle preexistingChris Lattner2004-02-151-35/+63
| | | | | | | | | | | | | | | | | prototypes, even if they don't precisely match what it would prefer to use. This fixes: CBackend/2004-02-15-PreexistingExternals.llx compiling it into: ltmp_0_30 = memcpy(l14_C, 4u, 17); ltmp_1_30 = memcpy(((int *)l27_A), ((unsigned )(long)l27_B), ((int )123u)); instead of: ltmp_0_30 = memcpy(l14_C, 4u, 17); ltmp_1_27 = l43_memcpy(l27_A, l27_B, 123u); Which does the wrong thing as you could imagine. llvm-svn: 11481
* Adjustments to support the new ConstantAggregateZero classChris Lattner2004-02-152-11/+4
| | | | llvm-svn: 11474
* Add a new ConstantAggregateZero class, to fix PR239. This makes zeroChris Lattner2004-02-151-36/+70
| | | | | | | | | initializers for constant structs and arrays take constant space, instead of space proportinal to the number of elements. This reduces the memory usage of the LLVM compiler by hundreds of megabytes when compiling some nasty SPEC95 benchmarks. llvm-svn: 11470
* ConstantArray::get and ConstantStruct::get now just return pointers toChris Lattner2004-02-151-4/+4
| | | | | | | 'Constant', instead of specific subclass pointers. In the future, these will return an instance of ConstantAggregateZero if all of the inputs are zeros. llvm-svn: 11467
* Remove dependence on return type of ConstantStruct::getChris Lattner2004-02-151-1/+1
| | | | llvm-svn: 11466
* Remove dependence on the return type of ConstantArray::getChris Lattner2004-02-151-1/+1
| | | | llvm-svn: 11463
* Keep a cache of non-abstract null arrays and structs. This speeds up llvm-disChris Lattner2004-02-151-2/+19
| | | | | | from 16.57 -> 13.46s on 129.compress. llvm-svn: 11462
* A target that doesn't support these intrinsics will still meet spec (theChris Lattner2004-02-141-0/+3
| | | | | | | intrinsic will always produce zero), but it will behave unexpectedly, so warn like GCC does. llvm-svn: 11444
* Add llvm.memset/frameaddress/returnaddress intrinsics.Chris Lattner2004-02-143-9/+43
| | | | llvm-svn: 11431
* Add support for the llvm.memmove intrinsicChris Lattner2004-02-123-0/+15
| | | | | | Patch graciously contributed by Reid Spencer! llvm-svn: 11355
* Implement the llvm.memcpy intrinsicChris Lattner2004-02-123-1/+20
| | | | llvm-svn: 11349
* Remove obsolete methodChris Lattner2004-02-111-13/+0
| | | | llvm-svn: 11302
* Remove the statisticsChris Lattner2004-02-091-11/+0
| | | | llvm-svn: 11243
* Speed up type resolution some more. On the testcase in PR224, for example,Chris Lattner2004-02-091-8/+27
| | | | | | | this speeds up a release llvm-as from 21.95s to 11.21s, because before it would do an expensive traversal of the type-graph of every type resolved. llvm-svn: 11242
* Implement the hashing scheme in an attempt to speed up the "slow" case inChris Lattner2004-02-091-50/+68
| | | | | | | | type resolution. Unfortunately it doesn't help. Also delete some dead debugging code. llvm-svn: 11237
* Code cleanup in preparation for later changes. Now that ContainedTy's areChris Lattner2004-02-091-107/+75
| | | | | | | consistent across the various type classes, we can factor out a LOT more almost-identical code. Also, add a couple of temporary statistics. llvm-svn: 11232
* Now that all of the derived types have disciplined interfaces, we can eliminateChris Lattner2004-02-091-66/+41
| | | | | | | all of the ad-hoc storage of contained types. This allows getContainedType to not be virtual, and allows us to entirely delete the TypeIterator class. llvm-svn: 11230
* Adjust to the changed StructType interface. In particular, ↵Chris Lattner2004-02-093-30/+25
| | | | | | getElementTypes() is gone. llvm-svn: 11228
* Start using the new and improve interface to FunctionType argumentsChris Lattner2004-02-093-38/+29
| | | | llvm-svn: 11224
* Two problems with these lines of code:Chris Lattner2004-02-091-2/+0
| | | | | | | | | | | 1. The "work" was not in the assert, so it was punishing the optimized release 2. getNamedFunction is _very_ expensive in large programs. It is not designed to be used like this, and was taking 7% of the execution time of the code generator on perlbmk. Since the assert "can never fail", I'm just killing it. llvm-svn: 11214
* Fix PR215: [bcwriter] Problem compactifying ConstantPointerRefsChris Lattner2004-02-091-0/+2
| | | | | | Have I ever mentioned how much I _hate_ constantpointerrefs? llvm-svn: 11212
* vi failed me again. :)Chris Lattner2004-02-081-1/+1
| | | | llvm-svn: 11206
* Rename the invoke 'except' destination to the 'unwind' destinationChris Lattner2004-02-081-1/+1
| | | | llvm-svn: 11205
* rename the "exceptional" destination of an invoke instruction to the ↵Chris Lattner2004-02-081-1/+1
| | | | | | 'unwind' dest llvm-svn: 11202
OpenPOWER on IntegriCloud