summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
* Add functions to enable adding a single attribute to a function andEric Christopher2008-05-162-0/+18
| | | | | | its associated call site. llvm-svn: 51204
* API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. ↵Gabor Greif2008-05-162-45/+45
| | | | | | Legacy interfaces will be in place for some time. (Merge from use-diet branch.) llvm-svn: 51200
* Revert the change from r51157 inDan Gohman2008-05-161-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, beginDan Gohman2008-05-155-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 Greif2008-05-156-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 withNate Begeman2008-05-151-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 definitionsDale Johannesen2008-05-141-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 Gohman2008-05-141-1/+1
| | | | llvm-svn: 51088
* Merge of r51073-51074 from use-diet branch.Gabor Greif2008-05-132-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 Patel2008-05-131-1/+1
| | | | llvm-svn: 51075
* Derive GetResultInst from UnaryInstruction, this simplifies code and removes ↵Gabor Greif2008-05-131-8/+6
| | | | | | a FIXME. llvm-svn: 51023
* Change class' public PassInfo variables to by initialized with theDan Gohman2008-05-132-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 upDan Gohman2008-05-134-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 Begeman2008-05-121-2/+2
| | | | llvm-svn: 50994
* Hard code CmpInst back to i1 for now while I go track down what in the ↵Nate Begeman2008-05-121-2/+2
| | | | | | | | bitcode reader/writer is assuming i1 This was breaking a bunch of tests llvm-svn: 50992
* Fix build breakageNate Begeman2008-05-121-1/+1
| | | | llvm-svn: 50986
* Add two new instructions to the llvm IR, vicmp and vfcmp. see updated LangRefNate Begeman2008-05-124-72/+131
| | | | | | for details. CodeGen support coming in a follow up patch llvm-svn: 50985
* Update comments.Dan Gohman2008-05-122-5/+4
| | | | llvm-svn: 50974
* merge of use-diet branch to trunkGabor Greif2008-05-105-235/+524
| | | | llvm-svn: 50943
* Check for validity of aliasee pointer before dereference.Anton Korobeynikov2008-05-081-1/+3
| | | | llvm-svn: 50878
* conservatively say that volatile stores read memory.Chris Lattner2008-05-081-2/+3
| | | | llvm-svn: 50872
* store can't read from memory.Chris Lattner2008-05-081-1/+0
| | | | llvm-svn: 50869
* add a new Instruction::mayReadFromMemory predicate, makeChris Lattner2008-05-081-2/+19
| | | | | | Instruction::mayWriteToMemory stronger for invokes. llvm-svn: 50858
* Turn StripPointerCast() into a methodAnton Korobeynikov2008-05-072-30/+26
| | | | llvm-svn: 50836
* Make StripPointerCast a common function (should we mak it method of Value ↵Anton Korobeynikov2008-05-063-27/+30
| | | | | | instead?) llvm-svn: 50775
* Remove uses of llvm/System/IncludeFile.h that are no longer needed.Dan Gohman2008-05-062-7/+0
| | | | llvm-svn: 50695
* Use (void) instead of () in C code.Gordon Henriksen2008-05-041-14/+14
| | | | llvm-svn: 50620
* Add separate intrinsics for MMX / SSE shifts with i32 integer operands. This ↵Evan Cheng2008-05-031-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 Lattner2008-04-301-1/+1
| | | | llvm-svn: 50483
* add a method for comparing to see if a value has a specified name.Chris Lattner2008-04-301-0/+7
| | | | llvm-svn: 50465
* Expose parameter attributes via C bindings.Gordon Henriksen2008-04-282-0/+47
| | | | | | Patch by Anders Johnsen! llvm-svn: 50360
* Allow asms to return multiple results by value.Chris Lattner2008-04-271-4/+13
| | | | llvm-svn: 50328
* Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989Nick Lewycky2008-04-253-50/+9
| | | | | | r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123. llvm-svn: 50265
* tighten up verifier checks which missed cases whereChris Lattner2008-04-231-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 Lattner2008-04-232-7/+25
| | | | llvm-svn: 50137
* Verify that the operand of a getresult instruction is a Chris Lattner2008-04-231-1/+7
| | | | | | call/invoke or undef. llvm-svn: 50129
* more fallout from Nicholas' asmprinter patch.Chris Lattner2008-04-221-17/+13
| | | | llvm-svn: 50078
* don't print dominators every time it is computed with -debug.Chris Lattner2008-04-211-4/+0
| | | | llvm-svn: 50032
* another bug introduced in r47802 by nicholas, for no apparent reason.Chris Lattner2008-04-211-1/+1
| | | | llvm-svn: 50031
* fix a bug introduced by Nicholas' "unwinds to" stuff: weChris Lattner2008-04-211-2/+2
| | | | | | lost newlines between blocks. llvm-svn: 50024
* add a handy helper method to instruction, useful for determiningChris Lattner2008-04-201-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 PR2240Chris Lattner2008-04-201-1/+1
| | | | llvm-svn: 49999
* rearrange some code, simplify handling of shifts.Chris Lattner2008-04-201-60/+56
| | | | llvm-svn: 49995
* Use simplified ConstantFP::get method, fix a bug handling frem x, 0 with ↵Chris Lattner2008-04-202-16/+19
| | | | | | long doubles. llvm-svn: 49976
* Implement PR2206.Chris Lattner2008-04-191-8/+17
| | | | llvm-svn: 49967
* refactor handling of symbolic constant folding, picking upChris Lattner2008-04-191-62/+62
| | | | | | | a few new cases( see Integer/a1.ll), but not anything that would happen in practice. llvm-svn: 49965
* indentation fix.Chris Lattner2008-04-191-14/+14
| | | | llvm-svn: 49964
* Don't read off end of the input array.Dale Johannesen2008-04-161-1/+1
| | | | llvm-svn: 49799
* Major repairs to the post-dominators implementation. Patch from Florian ↵Owen Anderson2008-04-161-1/+4
| | | | | | Brandner! llvm-svn: 49768
* VAArg may trap.Dan Gohman2008-04-141-0/+1
| | | | llvm-svn: 49646
OpenPOWER on IntegriCloud