1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
Commit Graph

98 Commits

Author SHA1 Message Date
Nick Lewycky
a8e288b52d Further expand what a call graph pass may do.
The rationale is that after analyzing a function in the SCC, we may want to
modify it in a way that requires us to update its uses (f.e. to replace the
call with a constant) or its users (f.e. to call it with fewer arguments).

llvm-svn: 122739
2011-01-03 06:16:07 +00:00
Nick Lewycky
310c4820f8 Permit CallGraphSCCPasses readonly access to the direct callers of the functions
in their SCC as they already have with the direct callees.

llvm-svn: 122734
2011-01-03 04:01:44 +00:00
Duncan Sands
6569cc29d1 Correct a bunch of mistakes which meant that the example pass didn't
even compile, let alone work.

llvm-svn: 122657
2011-01-01 17:37:07 +00:00
Duncan Sands
621983efe9 I was unable to get the instructions to work if LLVM was built
using a separate objects directory.

llvm-svn: 122656
2011-01-01 17:28:49 +00:00
Duncan Sands
3ba8ee3552 Clarify that the loadable module turns up in the top-level directory,
not locally.

llvm-svn: 122655
2011-01-01 17:21:58 +00:00
Tobias Grosser
88ce93b0eb Add RegionPass support.
A RegionPass is executed like a LoopPass but on the regions detected by the
RegionInfo pass instead of the loops detected by the LoopInfo pass.

llvm-svn: 116905
2010-10-20 01:54:44 +00:00
Owen Anderson
b36d01c1b6 Add INSTANTIATE_AG_PASS, which combines RegisterPass<> with RegisterAnalysisGroup<> for pass registration.
llvm-svn: 109058
2010-07-21 23:07:00 +00:00
Owen Anderson
e380b82a47 First stab at updating the documentation for INITIALIZE_PASS().
llvm-svn: 109055
2010-07-21 22:58:07 +00:00
Duncan Sands
896788595d Tweak some docs now that the default build is called Debug+Asserts.
llvm-svn: 107862
2010-07-08 08:27:18 +00:00
Chris Lattner
d7df3e9c5c This makes example Makefile a lot more like actual
lib/Transforms/Hello/Makefile, and prevents a lot of errors like "Assertion
`Inserted && "Pass registered multiple times!"' failed"

Patch by Gregory Petrosyan!

llvm-svn: 106471
2010-06-21 20:36:09 +00:00
mike-m
3baf2ffb17 Revert r103213. It broke several sections of live website.
llvm-svn: 103219
2010-05-07 00:28:04 +00:00
mike-m
6b8861e9f6 Overhauled llvm/clang docs builds. Closes PR6613.
NOTE: 2nd part changeset for cfe trunk to follow.

*** PRE-PATCH ISSUES ADDRESSED

- clang api docs fail build from objdir
- clang/llvm api docs collide in install PREFIX/
- clang/llvm main docs collide in install
- clang/llvm main docs have full of hard coded destination
  assumptions and make use of absolute root in static html files;
  namely CommandGuide tools hard codes a website destination
  for cross references and some html cross references assume
  website root paths

*** IMPROVEMENTS

- bumped Doxygen from 1.4.x -> 1.6.3
- splits llvm/clang docs into 'main' and 'api' (doxygen) build trees
- provide consistent, reliable doc builds for both main+api docs
- support buid vs. install vs. website intentions
- support objdir builds
- document targets with 'make help'
- correct clean and uninstall operations
- use recursive dir delete only where absolutely necessary
- added call function fn.RMRF which safeguards against botched 'rm -rf';
  if any target (or any variable is evaluated) which attempts
  to remove any dirs which match a hard-coded 'safelist', a verbose
  error will be printed and make will error-stop.

llvm-svn: 103213
2010-05-06 23:45:43 +00:00
Chris Lattner
acc2443e60 update docs for api change.
llvm-svn: 101566
2010-04-16 23:07:44 +00:00
Dan Gohman
107b6faef5 Clarify the documentation for MachineFunctionPasses.
llvm-svn: 98119
2010-03-10 01:29:39 +00:00
Duncan Sands
b7bb8ab12e Uniformize the way these options are printed. Requested by
Russell Wallace.

llvm-svn: 96580
2010-02-18 14:37:52 +00:00
Duncan Sands
ca05b607b7 Refer to -help instead of --help since this is what tools themselves say.
Also, have tools output -help-hidden rather than refer to --help-hidden,
for consistency, and likewise adjust documentation.  This doesn't change
every mention of --help, only those which seemed clearly safe.

llvm-svn: 96578
2010-02-18 14:08:13 +00:00
Benjamin Kramer
1791be26f8 Documentation: Perform automated correction of common typos.
llvm-svn: 83849
2009-10-12 14:46:08 +00:00
Torok Edwin
01eeaaa236 Fix typo, patch from Timo Juhani Lindfors.
llvm-svn: 83848
2009-10-12 13:37:29 +00:00
Chris Lattner
c6552ef06f update this to use raw_ostream
llvm-svn: 81188
2009-09-08 05:14:44 +00:00
Devang Patel
cb0d71ad91 Clarify limitations of a ModulePass requiring a FunctionPass.
llvm-svn: 78566
2009-08-10 16:37:29 +00:00
Daniel Dunbar
a4af9cf40b Try to clarify a point about getting DominatorTree info from a module pass.
llvm-svn: 74668
2009-07-01 23:38:44 +00:00
Dan Gohman
711f57040d Fix a typo.
llvm-svn: 73397
2009-06-15 18:22:49 +00:00
Dan Gohman
0e73582689 Eliminate several more unnecessary intptr_t casts.
llvm-svn: 64888
2009-02-18 05:09:16 +00:00
Duncan Sands
aee16d4916 Rename getAnalysisToUpdate to getAnalysisIfAvailable.
llvm-svn: 63198
2009-01-28 13:14:17 +00:00
Misha Brukman
7a584de2b9 Removed warnings from HTML 4.01 validator: trailing slashes in <br> and <img>
tags are not needed in HTML, only XML.

llvm-svn: 60885
2008-12-11 18:23:24 +00:00
Misha Brukman
74411f221b Global replace of yellow W3C "valid HTML/CSS" icons with blue ones.
llvm-svn: 60880
2008-12-11 17:34:48 +00:00
Devang Patel
5d5357aa3b Clarify documentation. A module pass MP can require a function paqss FP only if FP does not require any module pass.
llvm-svn: 58813
2008-11-06 19:47:49 +00:00
Torok Edwin
62e6eac94a fix prototype of print, it is (llvm/Pass.h):
virtual void print(std::ostream &O, const Module *M) const;
instead of
  virtual void print(llvm::OStream &O, const Module *M) const;
as the docs say

llvm-svn: 58337
2008-10-28 17:29:23 +00:00
Dan Gohman
d53d4be7a8 HTML syntax fixes.
llvm-svn: 57503
2008-10-14 17:00:38 +00:00
Devang Patel
5e8cbbea65 PassInfo keep tracks whether a pass is an analysis pass or not.
llvm-svn: 48554
2008-03-19 21:56:59 +00:00
John Criswell
217f454b10 Fix some wording.
llvm-svn: 44810
2007-12-10 20:26:29 +00:00
John Criswell
d738a457fb Fixed typo.
llvm-svn: 44542
2007-12-03 19:34:25 +00:00
Chris Lattner
8b9d6f487e fix a typo
llvm-svn: 44187
2007-11-16 05:32:05 +00:00
Devang Patel
4305bae78d Fix example code.
llvm-svn: 40493
2007-07-25 21:05:39 +00:00
Gabor Greif
f8138f9cb9 first pass of nomenclature changes in .html files
llvm-svn: 37956
2007-07-06 22:07:22 +00:00
Devang Patel
0fae719c77 Update AnalysisGroup documentation to document restriction that allows
only one ImmutablePass in a group.

llvm-svn: 37675
2007-06-20 18:51:14 +00:00
Tanya Lattner
4b2d7681e2 Correct typo. Should be "not allowed"
llvm-svn: 37490
2007-06-07 16:44:52 +00:00
Chris Lattner
acf36b57ca validation fix
llvm-svn: 37206
2007-05-18 05:38:44 +00:00
Chris Lattner
306068411b validation fixes
llvm-svn: 37205
2007-05-18 05:36:14 +00:00
Devang Patel
cd45427a87 Drop 'const'
llvm-svn: 36662
2007-05-03 01:11:54 +00:00
Devang Patel
8ee9065162 Use 'static const char' instead of 'static const int'.
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-02 21:39:20 +00:00
Devang Patel
c6ce035f1b Update doc to reflect changes I am about to install to fix PR 888.
llvm-svn: 36631
2007-05-01 20:55:38 +00:00
Devang Patel
54aa295162 Remove "ModulePasses requiring FunctionPasses" from the list of future
extensions.

llvm-svn: 36186
2007-04-17 00:17:11 +00:00
Devang Patel
a077522bd4 Document how, module pass can require function pass.
llvm-svn: 36171
2007-04-16 21:28:14 +00:00
Devang Patel
37a5818ca9 Document LoopPass.
llvm-svn: 35191
2007-03-19 22:21:25 +00:00
Jim Laskey
cfed9526c1 Change e-mail address.
llvm-svn: 35103
2007-03-14 19:32:21 +00:00
Devang Patel
9d2a971159 Fix cut-n-pasto.
llvm-svn: 33469
2007-01-23 22:56:28 +00:00
Bill Wendling
23b8b13c9d Removing even more <iostream> includes.
llvm-svn: 32320
2006-12-07 20:04:42 +00:00
Reid Spencer
e64d1d0482 Provide a gdb usage fix provided by Zhongzing Xu.
llvm-svn: 30645
2006-09-28 16:53:47 +00:00
Chris Lattner
cf13312f70 Update to match changes in RegisterAnalysisGroup usage
llvm-svn: 29933
2006-08-28 00:45:38 +00:00