Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename lib/VMCore/ConstantsContext.h:ValueMap<> to ConstantUniqueMap<> to avoid | Jeffrey Yasskin | 2009-10-27 | 2 | -17/+17 | |
| | | | | | | colliding with llvm/ADT/ValueMap.h:ValueMap<>. llvm-svn: 85344 | |||||
* | Factor out redundancy from clone() implementations. | Devang Patel | 2009-10-27 | 2 | -289/+92 | |
| | | | | llvm-svn: 85327 | |||||
* | Rename MallocFreeHelper as MemoryBuiltins | Victor Hernandez | 2009-10-27 | 1 | -2/+2 | |
| | | | | llvm-svn: 85286 | |||||
* | add enough support for indirect branch for the feature test to pass | Chris Lattner | 2009-10-27 | 3 | -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.h | Chris Lattner | 2009-10-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 85254 | |||||
* | Rename MallocHelper as MallocFreeHelper, since it now also identifies calls ↵ | Victor Hernandez | 2009-10-26 | 1 | -2/+2 | |
| | | | | | | to free() llvm-svn: 85181 | |||||
* | Remove FreeInst. | Victor Hernandez | 2009-10-26 | 3 | -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 Patel | 2009-10-26 | 1 | -4/+6 | |
| | | | | llvm-svn: 85130 | |||||
* | Remove includes of Support/Compiler.h that are no longer needed after the | Nick Lewycky | 2009-10-25 | 2 | -2/+0 | |
| | | | | | | VISIBILITY_HIDDEN removal. llvm-svn: 85043 | |||||
* | Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces. | Nick Lewycky | 2009-10-25 | 3 | -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 reimplementation | Nick Lewycky | 2009-10-25 | 1 | -11/+0 | |
| | | | | | | CmpInst::isSigned. llvm-svn: 85037 | |||||
* | Sink isTrueWhenEqual from ICmpInst to CmpInst. Add a matching isFalseWhenEqual | Nick Lewycky | 2009-10-25 | 1 | -1/+18 | |
| | | | | | | which is equal to !isTrueWhenEqual for ints but not for floats. llvm-svn: 85036 | |||||
* | Make DominanceFrontierBase::print's output prettier. | Dan Gohman | 2009-10-24 | 1 | -3/+5 | |
| | | | | llvm-svn: 85011 | |||||
* | Auto-upgrade free instructions to calls to the builtin free function. | Victor Hernandez | 2009-10-24 | 1 | -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 Hernandez | 2009-10-23 | 4 | -17/+51 | |
| | | | | | | subclass of AllocationInst, so it no longer is necessary. llvm-svn: 84969 | |||||
* | Hide MetadataContext implementation details. | Devang Patel | 2009-10-22 | 2 | -32/+170 | |
| | | | | llvm-svn: 84886 | |||||
* | Fix getMDs() interface such that it does not expose implementation details. | Devang Patel | 2009-10-22 | 2 | -16/+21 | |
| | | | | llvm-svn: 84885 | |||||
* | Using TrackingVH instead of WeakVH or WeakMetadataVH. | Devang Patel | 2009-10-22 | 2 | -12/+8 | |
| | | | | llvm-svn: 84884 | |||||
* | Sort handler names to ensure deterministic behavior. | Devang Patel | 2009-10-22 | 1 | -2/+3 | |
| | | | | llvm-svn: 84878 | |||||
* | Fix getHandlerNames() interface. Now it populate clinet supplied small ↵ | Devang Patel | 2009-10-22 | 2 | -9/+13 | |
| | | | | | | vector with handler names. llvm-svn: 84820 | |||||
* | Use StringRef to construct MDString. | Devang Patel | 2009-10-22 | 1 | -1/+2 | |
| | | | | llvm-svn: 84811 | |||||
* | Remove meaningless const. | Devang Patel | 2009-10-22 | 1 | -4/+4 | |
| | | | | | | Pass StringRef by value. llvm-svn: 84804 | |||||
* | Derive metadata hierarchy from Value instead of User. | Devang Patel | 2009-10-21 | 3 | -99/+7 | |
| | | | | llvm-svn: 84801 | |||||
* | Fix thinko noticed by Chris. | Benjamin Kramer | 2009-10-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 84797 | |||||
* | Rename msasm to alignstack per review. | Dale Johannesen | 2009-10-21 | 3 | -8/+10 | |
| | | | | llvm-svn: 84795 | |||||
* | Remove pointless return; at end of function. | Benjamin Kramer | 2009-10-21 | 1 | -3/+0 | |
| | | | | llvm-svn: 84794 | |||||
* | Simplify code. No intended functionality change. | Benjamin Kramer | 2009-10-21 | 1 | -12/+6 | |
| | | | | llvm-svn: 84790 | |||||
* | Use StringRef. | Devang Patel | 2009-10-21 | 1 | -4/+5 | |
| | | | | llvm-svn: 84786 | |||||
* | Do not use SmallVector to store MDNode elements. | Devang Patel | 2009-10-21 | 2 | -16/+18 | |
| | | | | llvm-svn: 84784 | |||||
* | Incorporate various suggestions Chris gave during metadata review. | Devang Patel | 2009-10-21 | 1 | -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 Patel | 2009-10-20 | 1 | -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 down | Owen Anderson | 2009-10-19 | 3 | -60/+22 | |
| | | | | | | at the moment. llvm-svn: 84529 | |||||
* | various cleanups. | Chris Lattner | 2009-10-19 | 1 | -30/+31 | |
| | | | | llvm-svn: 84471 | |||||
* | Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed, | Nick Lewycky | 2009-10-17 | 2 | -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 Lattner | 2009-10-17 | 1 | -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 Lewycky | 2009-10-17 | 1 | -2/+2 | |
| | | | | llvm-svn: 84348 | |||||
* | Remove unnecessary include. | Daniel Dunbar | 2009-10-17 | 1 | -1/+0 | |
| | | | | llvm-svn: 84336 | |||||
* | Remove MallocInst from LLVM Instructions. | Victor Hernandez | 2009-10-17 | 2 | -15/+1 | |
| | | | | llvm-svn: 84299 | |||||
* | Autoupgrade malloc insts to malloc calls. | Victor Hernandez | 2009-10-17 | 2 | -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 Patel | 2009-10-14 | 1 | -0/+15 | |
| | | | | llvm-svn: 84113 | |||||
* | I don't see any point in having both eh.selector.i32 and eh.selector.i64, | Duncan Sands | 2009-10-14 | 1 | -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 Johannesen | 2009-10-13 | 3 | -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 Patel | 2009-10-13 | 2 | -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 Lewycky | 2009-10-13 | 1 | -0/+11 | |
| | | | | llvm-svn: 83960 | |||||
* | Fix http://llvm.org/PR5160, to let CallbackVHs modify other ValueHandles on the | Jeffrey Yasskin | 2009-10-12 | 1 | -23/+46 | |
| | | | | | | same Value without breaking things. llvm-svn: 83861 | |||||
* | add some more hooks to the C bindings, patch by Kenneth Uildriks! | Chris Lattner | 2009-10-12 | 1 | -1/+59 | |
| | | | | llvm-svn: 83821 | |||||
* | Add a form of addPreserved which takes a string argument, to allow passes | Dan Gohman | 2009-10-08 | 1 | -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 Patel | 2009-10-07 | 1 | -15/+18 | |
| | | | | llvm-svn: 83462 | |||||
* | Make getPointerTo return a const PointerType* rather than | Duncan Sands | 2009-10-07 | 1 | -1/+1 | |
| | | | | | | an unqualified PointerType* because it seems more correct. llvm-svn: 83454 | |||||
* | Introduce and use convenience methods for getting pointer types | Duncan Sands | 2009-10-06 | 3 | -2/+42 | |
| | | | | | | | where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379 |