summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename lib/VMCore/ConstantsContext.h:ValueMap<> to ConstantUniqueMap<> to avoidJeffrey Yasskin2009-10-272-17/+17
| | | | | | colliding with llvm/ADT/ValueMap.h:ValueMap<>. llvm-svn: 85344
* Factor out redundancy from clone() implementations.Devang Patel2009-10-272-289/+92
| | | | llvm-svn: 85327
* Rename MallocFreeHelper as MemoryBuiltinsVictor Hernandez2009-10-271-2/+2
| | | | llvm-svn: 85286
* add enough support for indirect branch for the feature test to passChris Lattner2009-10-273-1/+136
| | | | | | | (assembler,asmprinter, bc reader+writer) and document it. Codegen currently aborts on it. llvm-svn: 85274
* Type.h doesn't need to #include LLVMContext.hChris Lattner2009-10-271-0/+1
| | | | llvm-svn: 85254
* Rename MallocHelper as MallocFreeHelper, since it now also identifies calls ↵Victor Hernandez2009-10-261-2/+2
| | | | | | to free() llvm-svn: 85181
* Remove FreeInst.Victor Hernandez2009-10-263-38/+45
| | | | | | | Remove LowerAllocations pass. Update some more passes to treate free calls just like they were treating FreeInst. llvm-svn: 85176
* Do not use expensive sort(). Devang Patel2009-10-261-4/+6
| | | | llvm-svn: 85130
* Remove includes of Support/Compiler.h that are no longer needed after theNick Lewycky2009-10-252-2/+0
| | | | | | VISIBILITY_HIDDEN removal. llvm-svn: 85043
* Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.Nick Lewycky2009-10-253-5/+4
| | | | | | | Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042
* Remove ICmpInst::isSignedPredicate which was a reimplementationNick Lewycky2009-10-251-11/+0
| | | | | | CmpInst::isSigned. llvm-svn: 85037
* Sink isTrueWhenEqual from ICmpInst to CmpInst. Add a matching isFalseWhenEqualNick Lewycky2009-10-251-1/+18
| | | | | | which is equal to !isTrueWhenEqual for ints but not for floats. llvm-svn: 85036
* Make DominanceFrontierBase::print's output prettier.Dan Gohman2009-10-241-3/+5
| | | | llvm-svn: 85011
* Auto-upgrade free instructions to calls to the builtin free function.Victor Hernandez2009-10-241-0/+45
| | | | | | | Update all analysis passes and transforms to treat free calls just like FreeInst. Remove RaiseAllocations and all its tests since FreeInst no longer needs to be raised. llvm-svn: 84987
* Remove AllocationInst. Since MallocInst went away, AllocaInst is the only ↵Victor Hernandez2009-10-234-17/+51
| | | | | | subclass of AllocationInst, so it no longer is necessary. llvm-svn: 84969
* Hide MetadataContext implementation details.Devang Patel2009-10-222-32/+170
| | | | llvm-svn: 84886
* Fix getMDs() interface such that it does not expose implementation details.Devang Patel2009-10-222-16/+21
| | | | llvm-svn: 84885
* Using TrackingVH instead of WeakVH or WeakMetadataVH.Devang Patel2009-10-222-12/+8
| | | | llvm-svn: 84884
* Sort handler names to ensure deterministic behavior.Devang Patel2009-10-221-2/+3
| | | | llvm-svn: 84878
* Fix getHandlerNames() interface. Now it populate clinet supplied small ↵Devang Patel2009-10-222-9/+13
| | | | | | vector with handler names. llvm-svn: 84820
* Use StringRef to construct MDString.Devang Patel2009-10-221-1/+2
| | | | llvm-svn: 84811
* Remove meaningless const.Devang Patel2009-10-221-4/+4
| | | | | | Pass StringRef by value. llvm-svn: 84804
* Derive metadata hierarchy from Value instead of User.Devang Patel2009-10-213-99/+7
| | | | llvm-svn: 84801
* Fix thinko noticed by Chris.Benjamin Kramer2009-10-211-1/+1
| | | | llvm-svn: 84797
* Rename msasm to alignstack per review.Dale Johannesen2009-10-213-8/+10
| | | | llvm-svn: 84795
* Remove pointless return; at end of function.Benjamin Kramer2009-10-211-3/+0
| | | | llvm-svn: 84794
* Simplify code. No intended functionality change.Benjamin Kramer2009-10-211-12/+6
| | | | llvm-svn: 84790
* Use StringRef.Devang Patel2009-10-211-4/+5
| | | | llvm-svn: 84786
* Do not use SmallVector to store MDNode elements.Devang Patel2009-10-212-16/+18
| | | | llvm-svn: 84784
* Incorporate various suggestions Chris gave during metadata review.Devang Patel2009-10-211-30/+16
| | | | | | | | | | - i < getNumElements() instead of getNumElements() > i - Make setParent() private - Fix use of resizeOperands - Reset HasMetadata bit after removing all metadata attached to an instruction - Efficient use of iterators llvm-svn: 84765
* Cosmetic changes.Devang Patel2009-10-201-9/+9
| | | | | | | | s/validName/isValidName/g s/with an Instruction/to an Instruction/g s/RegisterMDKind/registerMDKind/g llvm-svn: 84689
* Banish ConstantsLock. It's serving no purpose other than slowing things downOwen Anderson2009-10-193-60/+22
| | | | | | at the moment. llvm-svn: 84529
* various cleanups.Chris Lattner2009-10-191-30/+31
| | | | llvm-svn: 84471
* Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed,Nick Lewycky2009-10-172-15/+18
| | | | | | | LLVMBuildMalloc was reimplemented but with the bug that it didn't insert the resulting instruction. llvm-svn: 84374
* Teach vm core to more aggressively fold 'trunc' constantexprs,Chris Lattner2009-10-171-9/+160
| | | | | | | | | allowing it to simplify the crazy constantexprs in the testcases down to something sensible. This allows -std-compile-opts to completely "devirtualize" the pointers to member functions in the testcase from PR5176. llvm-svn: 84368
* Emit newlines at the end of instructions too.Nick Lewycky2009-10-171-2/+2
| | | | llvm-svn: 84348
* Remove unnecessary include.Daniel Dunbar2009-10-171-1/+0
| | | | llvm-svn: 84336
* Remove MallocInst from LLVM Instructions.Victor Hernandez2009-10-172-15/+1
| | | | llvm-svn: 84299
* Autoupgrade malloc insts to malloc calls.Victor Hernandez2009-10-172-17/+31
| | | | | | | | Update testcases that rely on malloc insts being present. Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step. llvm-svn: 84292
* Add copyMD to copy metadata from one instruction to another instruction.Devang Patel2009-10-141-0/+15
| | | | llvm-svn: 84113
* I don't see any point in having both eh.selector.i32 and eh.selector.i64,Duncan Sands2009-10-141-0/+46
| | | | | | | | | | | | | so get rid of eh.selector.i64 and rename eh.selector.i32 to eh.selector. Likewise for eh.typeid.for. This aligns us with gcc, which always uses a 32 bit value for the selector on all platforms. My understanding is that the register allocator used to assert if the selector intrinsic size didn't match the pointer size, and this was the reason for introducing the two variants. However my testing shows that this is no longer the case (I fixed some bugs in selector lowering yesterday, and some more today in the fastisel path; these might have caused the original problems). llvm-svn: 84106
* Add an "msasm" flag to inline asm as suggested in PR 5125.Dale Johannesen2009-10-133-6/+11
| | | | | | | A little ugliness is accepted to keep the binary file format compatible. No functional change yet. llvm-svn: 84020
* Copy metadata when value is RAUW'd. It is debatable whether this is the ↵Devang Patel2009-10-132-0/+16
| | | | | | right approach for custom metadata data in general. However, right now the only custom data user, "dbg", expects this behavior while FE is constructing llvm IR with debug info. llvm-svn: 83977
* Force memory use markers to have a ConstantInt for the size argument.Nick Lewycky2009-10-131-0/+11
| | | | llvm-svn: 83960
* Fix http://llvm.org/PR5160, to let CallbackVHs modify other ValueHandles on theJeffrey Yasskin2009-10-121-23/+46
| | | | | | same Value without breaking things. llvm-svn: 83861
* add some more hooks to the C bindings, patch by Kenneth Uildriks!Chris Lattner2009-10-121-1/+59
| | | | llvm-svn: 83821
* Add a form of addPreserved which takes a string argument, to allow passesDan Gohman2009-10-081-0/+14
| | | | | | | | to declare that they preserve other passes without needing to pull in additional header file or library dependencies. Convert MachineFunctionPass and CodeGenLICM to make use of this. llvm-svn: 83555
* Do not assume that the module is set.Devang Patel2009-10-071-15/+18
| | | | llvm-svn: 83462
* Make getPointerTo return a const PointerType* rather thanDuncan Sands2009-10-071-1/+1
| | | | | | an unqualified PointerType* because it seems more correct. llvm-svn: 83454
* Introduce and use convenience methods for getting pointer typesDuncan Sands2009-10-063-2/+42
| | | | | | | where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
OpenPOWER on IntegriCloud