aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/AliasAnalysisCounter.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-04-15[C++11] More 'nullptr' conversion. In some cases just using a boolean check ↵Craig Topper1-2/+2
instead of comparing to nullptr. llvm-svn: 206243
2014-03-05[C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper1-7/+7
class. llvm-svn: 202945
2014-01-09Put the functionality for printing a value to a raw_ostream as anChandler Carruth1-4/+3
operand into the Value interface just like the core print method is. That gives a more conistent organization to the IR printing interfaces -- they are all attached to the IR objects themselves. Also, update all the users. This removes the 'Writer.h' header which contained only a single function declaration. llvm-svn: 198836
2014-01-07Move the LLVM IR asm writer header files into the IR directory, as theyChandler Carruth1-1/+1
are part of the core IR library in order to support dumping and other basic functionality. Rename the 'Assembly' include directory to 'AsmParser' to match the library name and the only functionality left their -- printing has been in the core IR library for quite some time. Update all of the #includes to match. All of this started because I wanted to have the layering in good shape before I started adding support for printing LLVM IR using the new pass infrastructure, and commandline support for the new pass infrastructure. llvm-svn: 198688
2012-12-03Use the new script to sort the includes of every file under lib.Chandler Carruth1-1/+1
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
2012-02-05Persuade GCC that there is nothing worth warning about here (there isn't).Duncan Sands1-2/+2
llvm-svn: 149834
2012-01-10Remove unnecessary default cases in switches that cover all enum values.David Blaikie1-2/+0
llvm-svn: 147855
2010-12-10Teach AliasAnalysisCounter about PartialAlias.Dan Gohman1-4/+8
llvm-svn: 121513
2010-11-08Extend the AliasAnalysis::pointsToConstantMemory interface to allow itDan Gohman1-2/+2
to optionally look for constant or local (alloca) memory. Teach BasicAliasAnalysis::pointsToConstantMemory to look through Select and Phi nodes, and to support looking for local memory. Remove FunctionAttrs' PointsToLocalOrConstantMemory function, now that AliasAnalysis knows all the tricks that it knew. llvm-svn: 118412
2010-10-19Get rid of static constructors for pass registration. Instead, every pass ↵Owen Anderson1-0/+1
exposes an initializeMyPassFunction(), which must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize the pass's dependencies. Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h before parsing commandline arguments. I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass registration/creation, please send the testcase to me directly. llvm-svn: 116820
2010-10-07Now with fewer extraneous semicolons!Owen Anderson1-1/+1
llvm-svn: 115996
2010-09-14Remove the experimental AliasAnalysis::getDependency interface, whichDan Gohman1-16/+14
isn't a good level of abstraction for memdep. Instead, generalize AliasAnalysis::alias and related interfaces with a new Location class for describing a memory location. For now, this is the same Pointer and Size as before, plus an additional field for a TBAA tag. Also, introduce a fixed MD_tbaa metadata tag kind. llvm-svn: 113858
2010-08-06Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson1-3/+3
llvm-svn: 110460
2010-08-06Revert r110396 to fix buildbots.Owen Anderson1-3/+3
llvm-svn: 110410
2010-08-05Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson1-3/+3
address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
2010-08-03Thread const correctness through a bunch of AliasAnalysis interfaces andDan Gohman1-3/+6
eliminate several const_casts. Make CallSite implicitly convertible to ImmutableCallSite. Rename the getModRefBehavior for intrinsic IDs to getIntrinsicModRefBehavior to avoid overload ambiguity with CallSite, which happens to be implicitly convertible to bool. llvm-svn: 110155
2010-07-21Add INSTANTIATE_AG_PASS, which combines RegisterPass<> with ↵Owen Anderson1-3/+2
RegisterAnalysisGroup<> for pass registration. llvm-svn: 109058
2010-07-20Speculatively revert r108813, in an attempt to get the self-host buildbots ↵Owen Anderson1-1/+1
working again. I don't see why this patch would cause them to fail the way they are, but none of the other intervening patches seem likely either. llvm-svn: 108818
2010-07-20Reapply r108794, a fix for the failing test from last time.Owen Anderson1-1/+1
llvm-svn: 108813
2010-07-20Revert r108794, "Separate PassInfo into two classes: a constructor-freeDaniel Dunbar1-1/+1
superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).", it is breaking teh everything. llvm-svn: 108805
2010-07-20Separate PassInfo into two classes: a constructor-free superclass ↵Owen Anderson1-1/+1
(StaticPassInfo) and a constructor-ful subclass (PassInfo). llvm-svn: 108794
2010-03-01Fix a missing newline in debug output.Dan Gohman1-1/+1
llvm-svn: 97449
2010-01-22drop the pass name from the output.Chris Lattner1-3/+1
llvm-svn: 94158
2010-01-20adopt getAdjustedAnalysisPointer in a few more passes.Chris Lattner1-0/+10
llvm-svn: 94018
2009-12-23Change dbgs() back to errs() as Chris requested.David Greene1-16/+16
llvm-svn: 92073
2009-12-23Convert debug messages to use dbgs(). Generally this meansDavid Greene1-16/+17
s/errs/dbgs/g except for certain special cases. llvm-svn: 92024
2009-10-25Remove includes of Support/Compiler.h that are no longer needed after theNick Lewycky1-1/+0
VISIBILITY_HIDDEN removal. llvm-svn: 85043
2009-10-25Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.Nick Lewycky1-2/+1
Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042
2009-09-06Do not try to override non-virtual methods, especiallyDuncan Sands1-13/+0
when the new method gives the same result as the original (as far as I can see). This will hopefully pacify icc. llvm-svn: 81131
2009-08-30default count-aa to -print-all. The whole reason to use count-aa is Chris Lattner1-1/+1
to see what queries are being made by a transformation, we might as well default to printing them. llvm-svn: 80474
2009-08-23eliminate the std::ostream form of WriteAsOperand and update clients.Chris Lattner1-18/+18
This also updates dominator related stuff. llvm-svn: 79825
2009-08-23eliminate the "Value" printing methods that print to a std::ostream.Chris Lattner1-5/+5
This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819
2009-07-14llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin1-2/+2
This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
2009-07-11assert(0) -> LLVM_UNREACHABLE.Torok Edwin1-2/+3
Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
2008-09-04Tidy up several unbeseeming casts from pointer to intptr_t.Dan Gohman1-1/+1
llvm-svn: 55779
2008-08-19Don't use the result of WriteAsOperand or WriteTypeSymbolic.Chris Lattner1-2/+4
llvm-svn: 54977
2008-05-13Clean up the use of static and anonymous namespaces. This turned upDan Gohman1-10/+10
several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
2008-05-06Make several variable declarations static.Dan Gohman1-2/+2
llvm-svn: 50696
2008-03-20Restore isCFGOnly property of various analysis passes.Devang Patel1-1/+1
llvm-svn: 48579
2008-03-19PassInfo keep tracks whether a pass is an analysis pass or not.Devang Patel1-2/+2
llvm-svn: 48554
2008-03-19Do not use virtual function to identify an analysis pass.Devang Patel1-4/+1
llvm-svn: 48520
2008-03-18Identify Analysis pass.Devang Patel1-0/+3
Do not run analysis pass again if analysis info is still available. This fixes PR1441. llvm-svn: 48476
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
llvm-svn: 45418
2007-12-01Integrate the readonly/readnone logic more deeplyDuncan Sands1-0/+6
into alias analysis. This meant updating the API which now has versions of the getModRefBehavior, doesNotAccessMemory and onlyReadsMemory methods which take a callsite parameter. These should be used unless the callsite is not known, since in general they can do a better job than the versions that take a function. Also, users should no longer call the version of getModRefBehavior that takes both a function and a callsite. To reduce the chance of misuse it is now protected. llvm-svn: 44487
2007-05-03Drop 'const'Devang Patel1-2/+2
llvm-svn: 36662
2007-05-02Use 'static const char' instead of 'static const int'.Devang Patel1-2/+2
Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
2007-05-01Do not use typeinfo to identify pass in pass manager.Devang Patel1-1/+3
llvm-svn: 36632
2007-02-05Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduceReid Spencer1-1/+3
LLVM's footprint and speed up linking. llvm-svn: 33941
2006-12-07Removed more <iostream> includesBill Wendling1-4/+3
llvm-svn: 32321
2006-12-07Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling1-21/+17
now cerr, cout, and NullStream resp. llvm-svn: 32298