Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Previously, all operands to Constant were themselves constant. | Chris Lattner | 2009-10-28 | 1 | -3/+4 | |
| | | | | | | | | | In the new world order, BlockAddress can have a BasicBlock operand. This doesn't permute much, because if you have a ConstantExpr (or anything more specific than Constant) we still know the operand has to be a Constant. llvm-svn: 85375 | |||||
* | rename indbr -> indirectbr to appease the residents of #llvm. | Chris Lattner | 2009-10-28 | 2 | -7/+7 | |
| | | | | llvm-svn: 85351 | |||||
* | add enough support for indirect branch for the feature test to pass | Chris Lattner | 2009-10-27 | 2 | -3/+31 | |
| | | | | | | | (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 | 2 | -0/+2 | |
| | | | | llvm-svn: 85254 | |||||
* | Remove FreeInst. | Victor Hernandez | 2009-10-26 | 1 | -5/+0 | |
| | | | | | | | Remove LowerAllocations pass. Update some more passes to treate free calls just like they were treating FreeInst. llvm-svn: 85176 | |||||
* | Suppress -Asserts warning. | Daniel Dunbar | 2009-10-25 | 1 | -0/+2 | |
| | | | | llvm-svn: 85078 | |||||
* | Auto-upgrade free instructions to calls to the builtin free function. | Victor Hernandez | 2009-10-24 | 1 | -1/+2 | |
| | | | | | | | 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 | |||||
* | Hide MetadataContext implementation details. | Devang Patel | 2009-10-22 | 1 | -1/+9 | |
| | | | | llvm-svn: 84886 | |||||
* | Fix getMDs() interface such that it does not expose implementation details. | Devang Patel | 2009-10-22 | 2 | -9/+13 | |
| | | | | llvm-svn: 84885 | |||||
* | Using TrackingVH instead of WeakVH or WeakMetadataVH. | Devang Patel | 2009-10-22 | 2 | -9/+6 | |
| | | | | llvm-svn: 84884 | |||||
* | Fix getHandlerNames() interface. Now it populate clinet supplied small ↵ | Devang Patel | 2009-10-22 | 1 | -5/+7 | |
| | | | | | | vector with handler names. llvm-svn: 84820 | |||||
* | Rename msasm to alignstack per review. | Dale Johannesen | 2009-10-21 | 2 | -3/+3 | |
| | | | | llvm-svn: 84795 | |||||
* | Do not use SmallVector to store MDNode elements. | Devang Patel | 2009-10-21 | 1 | -4/+3 | |
| | | | | llvm-svn: 84784 | |||||
* | Make changes to rev 84292 as requested by Chris Lattner. | Victor Hernandez | 2009-10-21 | 1 | -7/+4 | |
| | | | | | | | Most changes are cleanup, but there is 1 correctness fix: I fixed InstCombine so that the icmp is removed only if the malloc call is removed (which requires explicit removal because the Worklist won't DCE any calls since they can have side-effects). llvm-svn: 84772 | |||||
* | simplify. | Chris Lattner | 2009-10-19 | 1 | -3/+1 | |
| | | | | llvm-svn: 84465 | |||||
* | Remove MallocInst from LLVM Instructions. | Victor Hernandez | 2009-10-17 | 1 | -7/+0 | |
| | | | | llvm-svn: 84299 | |||||
* | Autoupgrade malloc insts to malloc calls. | Victor Hernandez | 2009-10-17 | 1 | -2/+9 | |
| | | | | | | | | 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 an "msasm" flag to inline asm as suggested in PR 5125. | Dale Johannesen | 2009-10-13 | 2 | -3/+5 | |
| | | | | | | | A little ugliness is accepted to keep the binary file format compatible. No functional change yet. llvm-svn: 84020 | |||||
* | Do not write empty METADATA_ATTACHMENT record. | Devang Patel | 2009-10-13 | 1 | -5/+7 | |
| | | | | llvm-svn: 84006 | |||||
* | Remove unnecessary assert. | Devang Patel | 2009-10-13 | 1 | -3/+0 | |
| | | | | llvm-svn: 84004 | |||||
* | strength reduce a ton of type equality tests to check the typeid (Through | Chris Lattner | 2009-10-05 | 2 | -12/+10 | |
| | | | | | | | | the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this allows a smart compiler to turn the if sequence into a switch. llvm-svn: 83297 | |||||
* | Only one custom meadata of each kind can be attached with an instruction. | Devang Patel | 2009-09-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 83105 | |||||
* | s/class Metadata/class MetadataContext/g | Devang Patel | 2009-09-28 | 3 | -10/+10 | |
| | | | | llvm-svn: 83019 | |||||
* | Do not use global typedef for MDKindID. | Devang Patel | 2009-09-28 | 1 | -2/+2 | |
| | | | | llvm-svn: 83016 | |||||
* | Revert 82694 "Auto-upgrade malloc instructions to malloc calls." because it ↵ | Victor Hernandez | 2009-09-25 | 1 | -9/+2 | |
| | | | | | | causes regressions in the nightly tests. llvm-svn: 82784 | |||||
* | Auto-upgrade malloc instructions to malloc calls. | Victor Hernandez | 2009-09-24 | 1 | -2/+9 | |
| | | | | | | Reviewed by Devang Patel. llvm-svn: 82694 | |||||
* | Tabs -> spaces, and remove trailing whitespace. | Daniel Dunbar | 2009-09-20 | 3 | -383/+382 | |
| | | | | llvm-svn: 82355 | |||||
* | Write and read metadata attachments. | Devang Patel | 2009-09-18 | 5 | -6/+200 | |
| | | | | llvm-svn: 82259 | |||||
* | Reappy r80998, now that the GlobalOpt bug that it exposed on MiniSAT is fixed. | Dan Gohman | 2009-09-07 | 1 | -22/+34 | |
| | | | | llvm-svn: 81172 | |||||
* | Public and private corrections, warned about by icc (#304). | Duncan Sands | 2009-09-06 | 1 | -1/+1 | |
| | | | | | | Patch by Erick Tryzelaar. llvm-svn: 81107 | |||||
* | Revert "Include optional subclass flags, such as inbounds, nsw, etc., ...", this | Daniel Dunbar | 2009-09-06 | 1 | -34/+22 | |
| | | | | | | breaks MiniSAT on x86_64. llvm-svn: 81098 | |||||
* | Include optional subclass flags, such as inbounds, nsw, etc., in the | Dan Gohman | 2009-09-04 | 1 | -22/+34 | |
| | | | | | | | | | | | | | | | | | Constant uniquing tables. This allows distinct ConstantExpr objects with the same operation and different flags. Even though a ConstantExpr "a + b" is either always overflowing or never overflowing (due to being a ConstantExpr), it's still necessary to be able to represent it both with and without overflow flags at the same time within the IR, because the safety of the flag may depend on the context of the use. If the constant really does overflow, it wouldn't ever be safe to use with the flag set, however the use may be in code that is never actually executed. This also makes it possible to merge all the flags tests into a single test. llvm-svn: 80998 | |||||
* | back out my recent commit (r80858), it seems to break self-hosting ↵ | Gabor Greif | 2009-09-03 | 1 | -2/+2 | |
| | | | | | | buildbot's stage 2 configure llvm-svn: 80871 | |||||
* | Add new value for given index in MDValuePtrs. | Devang Patel | 2009-09-03 | 1 | -0/+3 | |
| | | | | llvm-svn: 80867 | |||||
* | re-commit r66920 (which has been backed out in r66953) I may have more luck ↵ | Gabor Greif | 2009-09-03 | 1 | -2/+2 | |
| | | | | | | this time. I'll back out if needed... llvm-svn: 80858 | |||||
* | Retype from unsigned to CallingConv::ID accordingly. Approved by Bob Wilson. | Sandeep Patel | 2009-09-02 | 1 | -3/+5 | |
| | | | | llvm-svn: 80773 | |||||
* | Reapply 79977. | Devang Patel | 2009-08-28 | 1 | -2/+5 | |
| | | | | | | Use MDNodes to encode debug info in llvm IR. llvm-svn: 80406 | |||||
* | Revert 79977. It causes llvm-gcc bootstrap failures on some platforms. | Devang Patel | 2009-08-26 | 1 | -5/+2 | |
| | | | | llvm-svn: 80073 | |||||
* | Eliminate the unused Context argument on one of the ICmpInst and FCmpInst | Dan Gohman | 2009-08-25 | 1 | -2/+2 | |
| | | | | | | constructors. llvm-svn: 80049 | |||||
* | Make LLVM command-line tools overwrite their output files without -f. | Dan Gohman | 2009-08-25 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990 | |||||
* | Update DebugInfo interface to use metadata, instead of special named ↵ | Devang Patel | 2009-08-25 | 1 | -2/+5 | |
| | | | | | | | | llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well. This change speeds up llvm-gcc by more then 6% at "-O0 -g" (measured by compiling InstructionCombining.cpp!) llvm-svn: 79977 | |||||
* | remove some uses of llvm/Support/Streams.h | Chris Lattner | 2009-08-23 | 1 | -6/+3 | |
| | | | | llvm-svn: 79842 | |||||
* | eliminate the std::ostream forms of the bitcode writing APIs. | Chris Lattner | 2009-08-23 | 4 | -58/+16 | |
| | | | | llvm-svn: 79840 | |||||
* | Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap | Dan Gohman | 2009-08-20 | 2 | -8/+8 | |
| | | | | | | and hasNoSignedWrap, for consistency with the nuw and nsw properties. llvm-svn: 79539 | |||||
* | Switch to SmallString::str from SmallString::c_str, and remove | Daniel Dunbar | 2009-08-19 | 1 | -1/+1 | |
| | | | | | | SmallString::c_str. llvm-svn: 79456 | |||||
* | Actually privatize a IntegerTypes, and fix a few bugs exposed by this. | Owen Anderson | 2009-08-13 | 1 | -2/+2 | |
| | | | | llvm-svn: 78955 | |||||
* | Push LLVMContexts through the IntegerType APIs. | Owen Anderson | 2009-08-13 | 4 | -51/+54 | |
| | | | | llvm-svn: 78948 | |||||
* | Make LLVMContext and LLVMContextImpl classes instead of structs. | Benjamin Kramer | 2009-08-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 78690 | |||||
* | Change llvm-c's ordering of contexts to make it consistent. | Erick Tryzelaar | 2009-08-11 | 1 | -6/+6 | |
| | | | | llvm-svn: 78656 | |||||
* | Privatize the StructType table, which unfortunately involves routing ↵ | Owen Anderson | 2009-08-05 | 1 | -2/+2 | |
| | | | | | | contexts through a number of APIs. llvm-svn: 78258 |