Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add functions to enable adding a single attribute to a function and | Eric Christopher | 2008-05-16 | 2 | -0/+18 |
| | | | | | | its associated call site. llvm-svn: 51204 | ||||
* | API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. ↵ | Gabor Greif | 2008-05-16 | 2 | -45/+45 |
| | | | | | | Legacy interfaces will be in place for some time. (Merge from use-diet branch.) llvm-svn: 51200 | ||||
* | Revert the change from r51157 in | Dan Gohman | 2008-05-16 | 1 | -1/+1 |
| | | | | | | | | test/Verifier/2002-11-05-GetelementptrPointers.ll, which was incorrect. Instead, fix getIndexedType to not follow pointer types, as PointerType is a subclass of CompositeType. llvm-svn: 51171 | ||||
* | IR support for extractvalue and insertvalue instructions. Also, begin | Dan Gohman | 2008-05-15 | 5 | -43/+278 |
| | | | | | | moving toward making structs and arrays first-class types. llvm-svn: 51157 | ||||
* | Fix a bunch of 80col violations that arose from the Create API change. Tweak ↵ | Gabor Greif | 2008-05-15 | 6 | -36/+60 |
| | | | | | | makefile targets to find these better. llvm-svn: 51143 | ||||
* | Move the operator new and operator delete out of line. This fixes an issue with | Nate Begeman | 2008-05-15 | 1 | -0/+19 |
| | | | | | | | operator new() referring to the static initTags function, which has to be in the same linkage unit as any file including User.h. llvm-svn: 51136 | ||||
* | Add CommonLinkage; currently tentative definitions | Dale Johannesen | 2008-05-14 | 1 | -0/+2 |
| | | | | | | | | | | are represented as "weak", but there are subtle differences in some cases on Darwin, so we need both. The intent is that "common" will behave identically to "weak" unless somebody changes their target to do something else. No functional change as yet. llvm-svn: 51118 | ||||
* | Make PreVerifyID, IntSigsEnd, and KillSigsEnd const. | Dan Gohman | 2008-05-14 | 1 | -1/+1 |
| | | | | llvm-svn: 51088 | ||||
* | Merge of r51073-51074 from use-diet branch. | Gabor Greif | 2008-05-13 | 2 | -1/+30 |
| | | | | | | | | | | | Do not rely on std::swap<Use>, provide a (faster) member function instead. This change is primarily necessitated by MSVC++'s incompatibility with declaring std::swap<Use> to be a friend of Use. Also contains some minor tweaks to Use inline functions, to undo pointless changes that sneaked in with the last merge. llvm-svn: 51078 | ||||
* | Dominance Frontier is cfg only pass. | Devang Patel | 2008-05-13 | 1 | -1/+1 |
| | | | | llvm-svn: 51075 | ||||
* | Derive GetResultInst from UnaryInstruction, this simplifies code and removes ↵ | Gabor Greif | 2008-05-13 | 1 | -8/+6 |
| | | | | | | a FIXME. llvm-svn: 51023 | ||||
* | Change class' public PassInfo variables to by initialized with the | Dan Gohman | 2008-05-13 | 2 | -22/+17 |
| | | | | | | | | | | | address of the PassInfo directly instead of calling getPassInfo. This eliminates a bunch of dynamic initializations of static data. Also, fold RegisterPassBase into PassInfo, make a bunch of its data members const, and rearrange some code to initialize data members in constructors instead of using setter member functions. llvm-svn: 51022 | ||||
* | Clean up the use of static and anonymous namespaces. This turned up | Dan Gohman | 2008-05-13 | 4 | -8/+17 |
| | | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017 | ||||
* | Pointer comparisons should be handled by icmp, not vicmp :) | Nate Begeman | 2008-05-12 | 1 | -2/+2 |
| | | | | llvm-svn: 50994 | ||||
* | Hard code CmpInst back to i1 for now while I go track down what in the ↵ | Nate Begeman | 2008-05-12 | 1 | -2/+2 |
| | | | | | | | | bitcode reader/writer is assuming i1 This was breaking a bunch of tests llvm-svn: 50992 | ||||
* | Fix build breakage | Nate Begeman | 2008-05-12 | 1 | -1/+1 |
| | | | | llvm-svn: 50986 | ||||
* | Add two new instructions to the llvm IR, vicmp and vfcmp. see updated LangRef | Nate Begeman | 2008-05-12 | 4 | -72/+131 |
| | | | | | | for details. CodeGen support coming in a follow up patch llvm-svn: 50985 | ||||
* | Update comments. | Dan Gohman | 2008-05-12 | 2 | -5/+4 |
| | | | | llvm-svn: 50974 | ||||
* | merge of use-diet branch to trunk | Gabor Greif | 2008-05-10 | 5 | -235/+524 |
| | | | | llvm-svn: 50943 | ||||
* | Check for validity of aliasee pointer before dereference. | Anton Korobeynikov | 2008-05-08 | 1 | -1/+3 |
| | | | | llvm-svn: 50878 | ||||
* | conservatively say that volatile stores read memory. | Chris Lattner | 2008-05-08 | 1 | -2/+3 |
| | | | | llvm-svn: 50872 | ||||
* | store can't read from memory. | Chris Lattner | 2008-05-08 | 1 | -1/+0 |
| | | | | llvm-svn: 50869 | ||||
* | add a new Instruction::mayReadFromMemory predicate, make | Chris Lattner | 2008-05-08 | 1 | -2/+19 |
| | | | | | | Instruction::mayWriteToMemory stronger for invokes. llvm-svn: 50858 | ||||
* | Turn StripPointerCast() into a method | Anton Korobeynikov | 2008-05-07 | 2 | -30/+26 |
| | | | | llvm-svn: 50836 | ||||
* | Make StripPointerCast a common function (should we mak it method of Value ↵ | Anton Korobeynikov | 2008-05-06 | 3 | -27/+30 |
| | | | | | | instead?) llvm-svn: 50775 | ||||
* | Remove uses of llvm/System/IncludeFile.h that are no longer needed. | Dan Gohman | 2008-05-06 | 2 | -7/+0 |
| | | | | llvm-svn: 50695 | ||||
* | Use (void) instead of () in C code. | Gordon Henriksen | 2008-05-04 | 1 | -14/+14 |
| | | | | llvm-svn: 50620 | ||||
* | Add separate intrinsics for MMX / SSE shifts with i32 integer operands. This ↵ | Evan Cheng | 2008-05-03 | 1 | -1/+1 |
| | | | | | | allow us to simplify the horribly complicated matching code. llvm-svn: 50601 | ||||
* | fix a bug in my previous patch, a classic =/== bug. | Chris Lattner | 2008-04-30 | 1 | -1/+1 |
| | | | | llvm-svn: 50483 | ||||
* | add a method for comparing to see if a value has a specified name. | Chris Lattner | 2008-04-30 | 1 | -0/+7 |
| | | | | llvm-svn: 50465 | ||||
* | Expose parameter attributes via C bindings. | Gordon Henriksen | 2008-04-28 | 2 | -0/+47 |
| | | | | | | Patch by Anders Johnsen! llvm-svn: 50360 | ||||
* | Allow asms to return multiple results by value. | Chris Lattner | 2008-04-27 | 1 | -4/+13 |
| | | | | llvm-svn: 50328 | ||||
* | Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 | Nick Lewycky | 2008-04-25 | 3 | -50/+9 |
| | | | | | | r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123. llvm-svn: 50265 | ||||
* | tighten up verifier checks which missed cases where | Chris Lattner | 2008-04-23 | 1 | -8/+9 |
| | | | | | | return instrs operands didn't match up with function results. llvm-svn: 50182 | ||||
* | Enforce that multiple return values have to have at least one result. | Chris Lattner | 2008-04-23 | 2 | -7/+25 |
| | | | | llvm-svn: 50137 | ||||
* | Verify that the operand of a getresult instruction is a | Chris Lattner | 2008-04-23 | 1 | -1/+7 |
| | | | | | | call/invoke or undef. llvm-svn: 50129 | ||||
* | more fallout from Nicholas' asmprinter patch. | Chris Lattner | 2008-04-22 | 1 | -17/+13 |
| | | | | llvm-svn: 50078 | ||||
* | don't print dominators every time it is computed with -debug. | Chris Lattner | 2008-04-21 | 1 | -4/+0 |
| | | | | llvm-svn: 50032 | ||||
* | another bug introduced in r47802 by nicholas, for no apparent reason. | Chris Lattner | 2008-04-21 | 1 | -1/+1 |
| | | | | llvm-svn: 50031 | ||||
* | fix a bug introduced by Nicholas' "unwinds to" stuff: we | Chris Lattner | 2008-04-21 | 1 | -2/+2 |
| | | | | | | lost newlines between blocks. llvm-svn: 50024 | ||||
* | add a handy helper method to instruction, useful for determining | Chris Lattner | 2008-04-20 | 1 | -0/+23 |
| | | | | | | | whether it is used outside of some block. This can be used to see if there are any non-local references, for example. llvm-svn: 50004 | ||||
* | hopefully resolve PR2240 | Chris Lattner | 2008-04-20 | 1 | -1/+1 |
| | | | | llvm-svn: 49999 | ||||
* | rearrange some code, simplify handling of shifts. | Chris Lattner | 2008-04-20 | 1 | -60/+56 |
| | | | | llvm-svn: 49995 | ||||
* | Use simplified ConstantFP::get method, fix a bug handling frem x, 0 with ↵ | Chris Lattner | 2008-04-20 | 2 | -16/+19 |
| | | | | | | long doubles. llvm-svn: 49976 | ||||
* | Implement PR2206. | Chris Lattner | 2008-04-19 | 1 | -8/+17 |
| | | | | llvm-svn: 49967 | ||||
* | refactor handling of symbolic constant folding, picking up | Chris Lattner | 2008-04-19 | 1 | -62/+62 |
| | | | | | | | a few new cases( see Integer/a1.ll), but not anything that would happen in practice. llvm-svn: 49965 | ||||
* | indentation fix. | Chris Lattner | 2008-04-19 | 1 | -14/+14 |
| | | | | llvm-svn: 49964 | ||||
* | Don't read off end of the input array. | Dale Johannesen | 2008-04-16 | 1 | -1/+1 |
| | | | | llvm-svn: 49799 | ||||
* | Major repairs to the post-dominators implementation. Patch from Florian ↵ | Owen Anderson | 2008-04-16 | 1 | -1/+4 |
| | | | | | | Brandner! llvm-svn: 49768 | ||||
* | VAArg may trap. | Dan Gohman | 2008-04-14 | 1 | -0/+1 |
| | | | | llvm-svn: 49646 |