summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineSSAUpdater.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use MachineInstrBuilder in a few CodeGen passes.Jakob Stoklund Olesen2012-12-201-2/+1
| | | | | | This automatically passes a context pointer to MI->addOperand(). llvm-svn: 170711
* Remove the explicit MachineInstrBuilder(MI) constructor.Jakob Stoklund Olesen2012-12-191-5/+4
| | | | | | | | | | | | | Use the version that also takes an MF reference instead. It would technically be possible to extract an MF reference from the MI as MI->getParent()->getParent(), but that would not work for MIs that are not inserted into any basic block. Given the reasonably small number of places this constructor was used at all, I preferred the compile time check to a run time assertion. llvm-svn: 170588
* Use the new script to sort the includes of every file under lib.Chandler Carruth2012-12-031-5/+5
| | | | | | | | | | | | | | | | | Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
* Fix undefined behavior: binding null pointer to reference. No functionality ↵Richard Smith2012-08-141-1/+1
| | | | | | change. llvm-svn: 161853
* Fix two rather subtle internal vs. external linker issues.Chandler Carruth2012-06-201-25/+20
| | | | | | | | | | | | | | | | | | | | | | I'll admit I'm not entirely satisfied with this change, but it seemed the cleanest option. Other suggestions quite welcome The issue is that the traits specializations have static methods which return the typedef'ed PHI_iterator type. In both the IR and MI layers this is typedef'ed to a custom iterator class defined in an anonymous namespace giving the types and the functions returning them internal linkage. However, because the traits specialization is defined in the 'llvm' namespace (where it has to be, specialized template lives there), and is in turn used in the templated implementation of the SSAUpdater. This led to the linkage conflict that Clang now warns about. The simplest solution to me was just to define the PHI_iterator as a nested class inside the trait specialization. That way it still doesn't get scoped widely, it can't be accidentally reused somewhere, etc. This is a little gross just because nested class definitions are a little gross, but the alternatives seem more ad-hoc. llvm-svn: 158799
* More dead code removal (using -Wunreachable-code)David Blaikie2012-01-201-1/+0
| | | | llvm-svn: 148578
* Mix some minor misuse of MachineBasicBlock iterator.Evan Cheng2011-12-061-3/+3
| | | | llvm-svn: 145903
* Fix PR7096. When a block containing multiple defs is tail duplicated, theBob Wilson2010-05-101-1/+1
| | | | | | | SSAUpdater for the value from the first def may see uses of undefined values, because the later defs will not have been updated yet. llvm-svn: 103407
* Combine the implementations of the core part of the SSAUpdater andBob Wilson2010-05-041-437/+109
| | | | | | MachineSSAUpdater to avoid duplicating all the code. llvm-svn: 103060
* Update MachineSSAUpdater with the same changes I made for the IR-levelBob Wilson2010-04-261-122/+428
| | | | | | | SSAUpdater. I'm going to try to refactor this to share most of the code between them. llvm-svn: 102353
* stop using DebugLoc::getUnknownLoc()Chris Lattner2010-04-021-1/+1
| | | | llvm-svn: 100215
* fix missing #includes.Chris Lattner2010-02-101-0/+1
| | | | llvm-svn: 95745
* move target-independent opcodes out of TargetInstrInfoChris Lattner2010-02-091-8/+8
| | | | | | | | | into TargetOpcodes.h. #include the new TargetOpcodes.h into MachineInstr. Add new inline accessors (like isPHI()) to MachineInstr, and start using them throughout the codebase. llvm-svn: 95687
* Change errs() to dbgs().David Greene2010-01-051-2/+2
| | | | llvm-svn: 92548
* Watch out for duplicated PHI instructions.Evan Cheng2009-12-071-3/+37
| | | | llvm-svn: 90816
* Pre-regalloc tale duplication. Work in progress.Evan Cheng2009-12-071-1/+11
| | | | llvm-svn: 90759
* If BB is empty, insert PHI before end() instead of front().Evan Cheng2009-12-071-3/+6
| | | | llvm-svn: 90744
* Don't try to be cute with undef optimization here. Let ProcessImplicitDefs ↵Evan Cheng2009-12-041-27/+17
| | | | | | handle it. llvm-svn: 90566
* - If the reaching definition is an undef and the use is a PHI, add the ↵Evan Cheng2009-12-041-11/+15
| | | | | | | | implicit_def to the end of the source block. - When reaching value is replaced with another, update the cache as well. llvm-svn: 90501
* Handle undef values properly.Evan Cheng2009-12-031-15/+38
| | | | llvm-svn: 90489
* Fill out codegen SSA updater. It's not yet tested.Evan Cheng2009-12-031-8/+229
| | | | llvm-svn: 90395
* Skeleton for MachineInstr level SSA updater.Evan Cheng2009-12-021-0/+108
llvm-svn: 90353
OpenPOWER on IntegriCloud