- Apr 25, 2014
-
-
Craig Topper authored
llvm-svn: 207196
-
- Mar 09, 2014
-
-
Chandler Carruth authored
This requires a number of steps. 1) Move value_use_iterator into the Value class as an implementation detail 2) Change it to actually be a *Use* iterator rather than a *User* iterator. 3) Add an adaptor which is a User iterator that always looks through the Use to the User. 4) Wrap these in Value::use_iterator and Value::user_iterator typedefs. 5) Add the range adaptors as Value::uses() and Value::users(). 6) Update *all* of the callers to correctly distinguish between whether they wanted a use_iterator (and to explicitly dig out the User when needed), or a user_iterator which makes the Use itself totally opaque. Because #6 requires churning essentially everything that walked the Use-Def chains, I went ahead and added all of the range adaptors and switched them to range-based loops where appropriate. Also because the renaming requires at least churning every line of code, it didn't make any sense to split these up into multiple commits -- all of which would touch all of the same lies of code. The result is still not quite optimal. The Value::use_iterator is a nice regular iterator, but Value::user_iterator is an iterator over User*s rather than over the User objects themselves. As a consequence, it fits a bit awkwardly into the range-based world and it has the weird extra-dereferencing 'operator->' that so many of our iterators have. I think this could be fixed by providing something which transforms a range of T&s into a range of T*s, but that *can* be separated into another patch, and it isn't yet 100% clear whether this is the right move. However, this change gets us most of the benefit and cleans up a substantial amount of code around Use and User. =] llvm-svn: 203364
-
- Jan 07, 2014
-
-
Chandler Carruth authored
subsequent changes are easier to review. About to fix some layering issues, and wanted to separate out the necessary churn. Also comment and sink the include of "Windows.h" in three .inc files to match the usage in Memory.inc. llvm-svn: 198685
-
- Jul 27, 2013
-
-
Nick Lewycky authored
Adds unit tests for it too. Split BasicBlockUtils into an analysis-half and a transforms-half, and put the analysis bits into a new Analysis/CFG.{h,cpp}. Promote isPotentiallyReachable into llvm::isPotentiallyReachable and move it into Analysis/CFG. llvm-svn: 187283
-
- Feb 05, 2013
-
-
Chad Rosier authored
edge is critical, then split it so we can insert the store. rdar://13126179 llvm-svn: 174418
-
- Jan 08, 2013
-
-
Bill Wendling authored
PR14782 llvm-svn: 171846
-
- Jan 02, 2013
-
-
Chandler Carruth authored
into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
-
- Dec 03, 2012
-
-
Chandler Carruth authored
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
-
- Feb 17, 2012
-
-
Bill Wendling authored
llvm-svn: 150780
-
Bill Wendling authored
llvm-svn: 150779
-
- Nov 07, 2011
-
-
Bill Wendling authored
<rdar://problem/10405911> llvm-svn: 144000
-
- Dec 23, 2010
-
-
Jeffrey Yasskin authored
new gcc warning that complains on self-assignments and self-initializations. llvm-svn: 122458
-
- Jun 17, 2010
-
-
Jim Grosbach authored
llvm-svn: 106164
-
- Jul 16, 2009
-
-
Owen Anderson authored
llvm-svn: 75863
-
- Jul 15, 2009
-
-
Owen Anderson authored
llvm-svn: 75703
-
- Jun 21, 2008
-
-
Chris Lattner authored
llvm-svn: 52590
-
- Jun 19, 2008
-
-
Dan Gohman authored
llvm-svn: 52494
-
- Dec 29, 2007
-
-
Chris Lattner authored
llvm-svn: 45418
-
- Oct 22, 2007
-
-
Anton Korobeynikov authored
- enable phi instructions demotion to stack - create alloca instructions in the entry block llvm-svn: 43208
-
- Sep 03, 2007
-
-
Anton Korobeynikov authored
llvm-svn: 41676
-
- Jul 11, 2007
-
-
Tanya Lattner authored
llvm-svn: 39744
-
- Oct 04, 2005
-
-
Chris Lattner authored
llvm-svn: 23618
-
- Sep 27, 2005
-
-
Chris Lattner authored
llvm-svn: 23473
-
- Apr 22, 2005
-
-
Misha Brukman authored
llvm-svn: 21427
-
- Mar 17, 2005
-
-
Chris Lattner authored
Bill Wendling!! llvm-svn: 20649
-
- Apr 01, 2004
-
-
Chris Lattner authored
llvm-svn: 12597
-
- Mar 17, 2004
-
-
Chris Lattner authored
llvm-svn: 12456
-
- Mar 14, 2004
-
-
Chris Lattner authored
llvm-svn: 12368
-
- Jan 09, 2004
-
-
Chris Lattner authored
llvm-svn: 10727
-
- Nov 11, 2003
-
-
Brian Gaeke authored
llvm-svn: 9903
-
- Nov 06, 2003
-
-
Chris Lattner authored
llvm-svn: 9753
-
- Oct 20, 2003
-
-
John Criswell authored
Header files will be on the way. llvm-svn: 9298
-
- Oct 15, 2003
-
-
Chris Lattner authored
llvm-svn: 9133
-
- Sep 20, 2003
-
-
Chris Lattner authored
Rename Function::getEntryNode -> getEntryBlock llvm-svn: 8623
-
- May 29, 2003
-
-
Chris Lattner authored
llvm-svn: 6397
-
- Dec 10, 2002
-
-
Vikram S. Adve authored
virtual register computed by an Instruction& X and replaces it with a slot in the stack frame, allocated via alloca. llvm-svn: 4964
-