OSDN Git Service

Separate user and internals manuals.
[pf3gnuchains/gcc-fork.git] / gcc / doc / passes.texi
1 @c Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2 @c 1999, 2000, 2001 Free Software Foundation, Inc.
3 @c This is part of the GCC manual.
4 @c For copying conditions, see the file gcc.texi.
5
6 @node Passes
7 @chapter Passes and Files of the Compiler
8 @cindex passes and files of the compiler
9 @cindex files and passes of the compiler
10 @cindex compiler passes and files
11
12 @cindex top level of compiler
13 The overall control structure of the compiler is in @file{toplev.c}.  This
14 file is responsible for initialization, decoding arguments, opening and
15 closing files, and sequencing the passes.
16
17 @cindex parsing pass
18 The parsing pass is invoked only once, to parse the entire input.  A
19 high level tree representation is then generated from the input,
20 one function at a time.  This tree code is then transformed into RTL
21 intermediate code, and processed.  The files involved in transforming
22 the trees into RTL are @file{expr.c}, @file{expmed.c}, and
23 @file{stmt.c}.
24 @c Note, the above files aren't strictly the only files involved. It's
25 @c all over the place (function.c, final.c,etc).  However, those are
26 @c the files that are supposed to be directly involved, and have
27 @c their purpose listed as such, so i've only listed them.
28 The order of trees that are processed, is not
29 necessarily the same order they are generated from
30 the input, due to deferred inlining, and other considerations.
31
32 @findex rest_of_compilation
33 @findex rest_of_decl_compilation
34 Each time the parsing pass reads a complete function definition or
35 top-level declaration, it calls either the function
36 @code{rest_of_compilation}, or the function
37 @code{rest_of_decl_compilation} in @file{toplev.c}, which are
38 responsible for all further processing necessary, ending with output of
39 the assembler language.  All other compiler passes run, in sequence,
40 within @code{rest_of_compilation}.  When that function returns from
41 compiling a function definition, the storage used for that function
42 definition's compilation is entirely freed, unless it is an inline
43 function, or was deferred for some reason (this can occur in
44 templates, for example).
45 (@pxref{Inline,,An Inline Function is As Fast As a Macro,gcc,Using the
46 GNU Compiler Collection (GCC)}).
47
48 Here is a list of all the passes of the compiler and their source files.
49 Also included is a description of where debugging dumps can be requested
50 with @option{-d} options.
51
52 @itemize @bullet
53 @item
54 Parsing.  This pass reads the entire text of a function definition,
55 constructing a high level tree representation.  (Because of the semantic
56 analysis that takes place during this pass, it does more than is
57 formally considered to be parsing.)
58
59 The tree representation does not entirely follow C syntax, because it is
60 intended to support other languages as well.
61
62 Language-specific data type analysis is also done in this pass, and every
63 tree node that represents an expression has a data type attached.
64 Variables are represented as declaration nodes.
65
66 The language-independent source files for parsing are
67 @file{tree.c}, @file{fold-const.c}, and @file{stor-layout.c}.
68 There are also header files @file{tree.h} and @file{tree.def}
69 which define the format of the tree representation.
70
71 C preprocessing, for language front ends, that want or require it, is
72 performed by cpplib, which is covered in separate documentation.  In
73 particular, the internals are covered in @xref{Top, ,Cpplib internals,
74 cppinternals, Cpplib Internals}.
75
76 @c Avoiding overfull is tricky here.
77 The source files to parse C are
78 @file{c-convert.c},
79 @file{c-decl.c},
80 @file{c-errors.c},
81 @file{c-lang.c},
82 @file{c-objc-common.c},
83 @file{c-parse.in},
84 @file{c-aux-info.c},
85 and
86 @file{c-typeck.c},
87 along with a header file
88 @file{c-tree.h}
89 and some files shared with Objective-C and C++.
90
91 The source files for parsing C++ are in @file{cp/}.
92 They are @file{parse.y},
93 @file{class.c},
94 @file{cvt.c}, @file{decl.c}, @file{decl2.c},
95 @file{except.c},
96 @file{expr.c}, @file{init.c}, @file{lex.c},
97 @file{method.c}, @file{ptree.c},
98 @file{search.c}, @file{spew.c},
99 @file{semantics.c}, @file{tree.c},
100 @file{typeck2.c}, and
101 @file{typeck.c}, along with header files @file{cp-tree.def},
102 @file{cp-tree.h}, and @file{decl.h}.
103
104 The special source files for parsing Objective-C are in @file{objc/}.
105 They are @file{objc-act.c}, @file{objc-tree.def}, and @file{objc-act.h}.
106 Certain C-specific files are used for this as well.
107
108 The files
109 @file{c-common.c},
110 @file{c-common.def},
111 @file{c-format.c},
112 @file{c-pragma.c},
113 @file{c-semantics.c},
114 and
115 @file{c-lex.c},
116 along with header files
117 @file{c-common.h},
118 @file{c-dump.h},
119 @file{c-lex.h},
120 and
121 @file{c-pragma.h},
122 are also used for all of the above languages.
123
124
125 @cindex Tree optimization
126 @item
127 Tree optimization.   This is the optimization of the tree
128 representation, before converting into RTL code.
129
130 @cindex inline on trees, automatic
131 Currently, the main optimization performed here is tree-based
132 inlining.
133 This is implemented in @file{tree-inline.c} and used by both C and C++.  
134 Note that tree based inlining turns off rtx based inlining (since it's more
135 powerful, it would be a waste of time to do rtx based inlining in
136 addition).
137
138 @cindex constant folding
139 @cindex arithmetic simplifications
140 @cindex simplifications, arithmetic
141 Constant folding and some arithmetic simplifications are also done
142 during this pass, on the tree representation.
143 The routines that perform these tasks are located in @file{fold-const.c}.
144
145 @cindex RTL generation
146 @item
147 RTL generation.  This is the conversion of syntax tree into RTL code.
148
149 @cindex target-parameter-dependent code
150 This is where the bulk of target-parameter-dependent code is found,
151 since often it is necessary for strategies to apply only when certain
152 standard kinds of instructions are available.  The purpose of named
153 instruction patterns is to provide this information to the RTL
154 generation pass.
155
156 @cindex tail recursion optimization
157 Optimization is done in this pass for @code{if}-conditions that are
158 comparisons, boolean operations or conditional expressions.  Tail
159 recursion is detected at this time also.  Decisions are made about how
160 best to arrange loops and how to output @code{switch} statements.
161
162 @c Avoiding overfull is tricky here.
163 The source files for RTL generation include
164 @file{stmt.c},
165 @file{calls.c},
166 @file{expr.c},
167 @file{explow.c},
168 @file{expmed.c},
169 @file{function.c},
170 @file{optabs.c}
171 and @file{emit-rtl.c}.
172 Also, the file
173 @file{insn-emit.c}, generated from the machine description by the
174 program @code{genemit}, is used in this pass.  The header file
175 @file{expr.h} is used for communication within this pass.
176
177 @findex genflags
178 @findex gencodes
179 The header files @file{insn-flags.h} and @file{insn-codes.h},
180 generated from the machine description by the programs @code{genflags}
181 and @code{gencodes}, tell this pass which standard names are available
182 for use and which patterns correspond to them.
183
184 Aside from debugging information output, none of the following passes
185 refers to the tree structure representation of the function (only
186 part of which is saved).
187
188 @cindex inline on rtx, automatic
189 The decision of whether the function can and should be expanded inline
190 in its subsequent callers is made at the end of rtl generation.  The
191 function must meet certain criteria, currently related to the size of
192 the function and the types and number of parameters it has.  Note that
193 this function may contain loops, recursive calls to itself
194 (tail-recursive functions can be inlined!), gotos, in short, all
195 constructs supported by GCC@.  The file @file{integrate.c} contains
196 the code to save a function's rtl for later inlining and to inline that
197 rtl when the function is called.  The header file @file{integrate.h}
198 is also used for this purpose.
199
200 @opindex dr
201 The option @option{-dr} causes a debugging dump of the RTL code after
202 this pass.  This dump file's name is made by appending @samp{.rtl} to
203 the input file name.
204
205 @c Should the exception handling pass be talked about here?
206
207 @cindex sibling call optimization
208 @item
209 Sibiling call optimization.   This pass performs tail recursion
210 elimination, and tail and sibling call optimizations.  The purpose of
211 these optimizations is to reduce the overhead of function calls,
212 whenever possible.
213
214 The source file of this pass is @file{sibcall.c}
215
216 @opindex di
217 The option @option{-di} causes a debugging dump of the RTL code after
218 this pass is run.  This dump file's name is made by appending
219 @samp{.sibling} to the input file name.
220
221 @cindex jump optimization
222 @cindex unreachable code
223 @cindex dead code
224 @item
225 Jump optimization.  This pass simplifies jumps to the following
226 instruction, jumps across jumps, and jumps to jumps.  It deletes
227 unreferenced labels and unreachable code, except that unreachable code
228 that contains a loop is not recognized as unreachable in this pass.
229 (Such loops are deleted later in the basic block analysis.)  It also
230 converts some code originally written with jumps into sequences of
231 instructions that directly set values from the results of comparisons,
232 if the machine has such instructions.
233
234 Jump optimization is performed two or three times.  The first time is
235 immediately following RTL generation.  The second time is after CSE,
236 but only if CSE says repeated jump optimization is needed.  The
237 last time is right before the final pass.  That time, cross-jumping
238 and deletion of no-op move instructions are done together with the
239 optimizations described above.
240
241 The source file of this pass is @file{jump.c}.
242
243 @opindex dj
244 The option @option{-dj} causes a debugging dump of the RTL code after
245 this pass is run for the first time.  This dump file's name is made by
246 appending @samp{.jump} to the input file name.
247
248
249 @cindex register use analysis
250 @item
251 Register scan.  This pass finds the first and last use of each
252 register, as a guide for common subexpression elimination.  Its source
253 is in @file{regclass.c}.
254
255 @cindex jump threading
256 @item
257 @opindex fthread-jumps
258 Jump threading.  This pass detects a condition jump that branches to an
259 identical or inverse test.  Such jumps can be @samp{threaded} through
260 the second conditional test.  The source code for this pass is in
261 @file{jump.c}.  This optimization is only performed if
262 @option{-fthread-jumps} is enabled.
263
264 @cindex SSA optimizations
265 @cindex Single Static Assignment optimizations
266 @opindex fssa
267 @item
268 Static Single Assignment (SSA) based optimization passes.  The
269 SSA conversion passes (to/from) are turned on by the @option{-fssa}
270 option (it is also done automatically if you enable an SSA optimization pass).
271 These passes utilize a form called Static Single Assignment.  In SSA form,
272 each variable (pseudo register) is only set once, giving you def-use
273 and use-def chains for free, and enabling a lot more optimization
274 passes to be run in linear time.
275 Conversion to and from SSA form is handled by functions in
276 @file{ssa.c}.
277
278 @opindex de
279 The option @option{-de} causes a debugging dump of the RTL code after
280 this pass.  This dump file's name is made by appending @samp{.ssa} to
281 the input file name.
282 @itemize @bullet
283 @cindex SSA Conditional Constant Propagation
284 @cindex Conditional Constant Propagation, SSA based
285 @cindex conditional constant propagation
286 @opindex fssa-ccp
287 @item
288 SSA Conditional Constant Propagation.  Turned on by the @option{-fssa-ccp}
289 SSA Aggressive Dead Code Elimination.  Turned on by the @option{-fssa-dce}
290 option.  This pass performs conditional constant propagation to simplify
291 instructions including conditional branches.  This pass is more aggressive
292 than the constant propgation done by the CSE and GCSE pases, but operates
293 in linear time.
294
295 @opindex dW
296 The option @option{-dW} causes a debugging dump of the RTL code after
297 this pass.  This dump file's name is made by appending @samp{.ssaccp} to
298 the input file name.
299
300 @cindex SSA DCE
301 @cindex DCE, SSA based
302 @cindex dead code elimination
303 @opindex fssa-dce
304 @item
305 SSA Aggressive Dead Code Elimination.  Turned on by the @option{-fssa-dce}
306 option.  This pass performs elimination of code considered unnecessary because
307 it has no externally visible effects on the program.  It operates in
308 linear time.
309
310 @opindex dX
311 The option @option{-dX} causes a debugging dump of the RTL code after
312 this pass.  This dump file's name is made by appending @samp{.ssadce} to
313 the input file name.
314 @end itemize
315
316 @cindex common subexpression elimination
317 @cindex constant propagation
318 @item
319 Common subexpression elimination.  This pass also does constant
320 propagation.  Its source files are @file{cse.c}, and @file{cselib.c}.
321 If constant  propagation causes conditional jumps to become
322 unconditional or to become no-ops, jump optimization is run again when
323 CSE is finished.
324
325 @opindex ds
326 The option @option{-ds} causes a debugging dump of the RTL code after
327 this pass.  This dump file's name is made by appending @samp{.cse} to
328 the input file name.
329
330 @cindex global common subexpression elimination
331 @cindex constant propagation
332 @cindex copy propagation
333 @item
334 Global common subexpression elimination.  This pass performs two
335 different types of GCSE  depending on whether you are optimizing for
336 size or not (LCM based GCSE tends to increase code size for a gain in
337 speed, while Morel-Renvoise based GCSE does not).
338 When optimizing for size, GCSE is done using Morel-Renvoise Partial
339 Redundancy Elimination, with the exception that it does not try to move
340 invariants out of loops---that is left to  the loop optimization pass.
341 If MR PRE GCSE is done, code hoisting (aka unification) is also done, as
342 well as load motion.
343 If you are optimizing for speed, LCM (lazy code motion) based GCSE is
344 done.  LCM is based on the work of Knoop, Ruthing, and Steffen.  LCM
345 based GCSE also does loop invariant code motion.  We also perform load
346 and store motion when optimizing for speed.
347 Regardless of which type of GCSE is used, the GCSE pass also performs
348 global constant and  copy propagation.
349
350 The source file for this pass is @file{gcse.c}, and the LCM routines
351 are in @file{lcm.c}.
352
353 @opindex dG
354 The option @option{-dG} causes a debugging dump of the RTL code after
355 this pass.  This dump file's name is made by appending @samp{.gcse} to
356 the input file name.
357
358 @cindex loop optimization
359 @cindex code motion
360 @cindex strength-reduction
361 @item
362 Loop optimization.  This pass moves constant expressions out of loops,
363 and optionally does strength-reduction and loop unrolling as well.
364 Its source files are @file{loop.c} and @file{unroll.c}, plus the header
365 @file{loop.h} used for communication between them.  Loop unrolling uses
366 some functions in @file{integrate.c} and the header @file{integrate.h}.
367 Loop dependency analysis routines are contained in @file{dependence.c}.
368
369 @opindex dL
370 The option @option{-dL} causes a debugging dump of the RTL code after
371 this pass.  This dump file's name is made by appending @samp{.loop} to
372 the input file name.
373
374 @item
375 @opindex frerun-cse-after-loop
376 If @option{-frerun-cse-after-loop} was enabled, a second common
377 subexpression elimination pass is performed after the loop optimization
378 pass.  Jump threading is also done again at this time if it was specified.
379
380 @opindex dt
381 The option @option{-dt} causes a debugging dump of the RTL code after
382 this pass.  This dump file's name is made by appending @samp{.cse2} to
383 the input file name.
384
385 @cindex data flow analysis
386 @cindex analysis, data flow
387 @cindex basic blocks
388 @item
389 Data flow analysis (@file{flow.c}).  This pass divides the program
390 into basic blocks (and in the process deletes unreachable loops); then
391 it computes which pseudo-registers are live at each point in the
392 program, and makes the first instruction that uses a value point at
393 the instruction that computed the value.
394
395 @cindex autoincrement/decrement analysis
396 This pass also deletes computations whose results are never used, and
397 combines memory references with add or subtract instructions to make
398 autoincrement or autodecrement addressing.
399
400 @opindex df
401 The option @option{-df} causes a debugging dump of the RTL code after
402 this pass.  This dump file's name is made by appending @samp{.flow} to
403 the input file name.  If stupid register allocation is in use, this
404 dump file reflects the full results of such allocation.
405
406 @cindex instruction combination
407 @item
408 Instruction combination (@file{combine.c}).  This pass attempts to
409 combine groups of two or three instructions that are related by data
410 flow into single instructions.  It combines the RTL expressions for
411 the instructions by substitution, simplifies the result using algebra,
412 and then attempts to match the result against the machine description.
413
414 @opindex dc
415 The option @option{-dc} causes a debugging dump of the RTL code after
416 this pass.  This dump file's name is made by appending @samp{.combine}
417 to the input file name.
418
419 @cindex if conversion
420 @item
421 If-conversion is a transformation that transforms control dependencies
422 into data dependencies (IE it transforms conditional code into a
423 single control stream).
424 It is implemented in the file @file{ifcvt.c}.
425
426 @opindex dE
427 The option @option{-dE} causes a debugging dump of the RTL code after
428 this pass.  This dump file's name is made by appending @samp{.ce} to
429 the input file name.
430
431 @cindex register movement
432 @item
433 Register movement (@file{regmove.c}).  This pass looks for cases where
434 matching constraints would force an instruction to need a reload, and
435 this reload would be a register to register move.  It then attempts
436 to change the registers used by the instruction to avoid the move
437 instruction.
438
439 @opindex dN
440 The option @option{-dN} causes a debugging dump of the RTL code after
441 this pass.  This dump file's name is made by appending @samp{.regmove}
442 to the input file name.
443
444 @cindex instruction scheduling
445 @cindex scheduling, instruction
446 @item
447 Instruction scheduling (@file{sched.c}).  This pass looks for
448 instructions whose output will not be available by the time that it is
449 used in subsequent instructions.  (Memory loads and floating point
450 instructions often have this behavior on RISC machines).  It re-orders
451 instructions within a basic block to try to separate the definition and
452 use of items that otherwise would cause pipeline stalls.
453
454 Instruction scheduling is performed twice.  The first time is immediately
455 after instruction combination and the second is immediately after reload.
456
457 @opindex dS
458 The option @option{-dS} causes a debugging dump of the RTL code after this
459 pass is run for the first time.  The dump file's name is made by
460 appending @samp{.sched} to the input file name.
461
462 @cindex register class preference pass
463 @item
464 Register class preferencing.  The RTL code is scanned to find out
465 which register class is best for each pseudo register.  The source
466 file is @file{regclass.c}.
467
468 @cindex register allocation
469 @cindex local register allocation
470 @item
471 Local register allocation (@file{local-alloc.c}).  This pass allocates
472 hard registers to pseudo registers that are used only within one basic
473 block.  Because the basic block is linear, it can use fast and
474 powerful techniques to do a very good job.
475
476 @opindex dl
477 The option @option{-dl} causes a debugging dump of the RTL code after
478 this pass.  This dump file's name is made by appending @samp{.lreg} to
479 the input file name.
480
481 @cindex global register allocation
482 @item
483 Global register allocation (@file{global.c}).  This pass
484 allocates hard registers for the remaining pseudo registers (those
485 whose life spans are not contained in one basic block).
486
487 @cindex reloading
488 @item
489 Reloading.  This pass renumbers pseudo registers with the hardware
490 registers numbers they were allocated.  Pseudo registers that did not
491 get hard registers are replaced with stack slots.  Then it finds
492 instructions that are invalid because a value has failed to end up in
493 a register, or has ended up in a register of the wrong kind.  It fixes
494 up these instructions by reloading the problematical values
495 temporarily into registers.  Additional instructions are generated to
496 do the copying.
497
498 The reload pass also optionally eliminates the frame pointer and inserts
499 instructions to save and restore call-clobbered registers around calls.
500
501 Source files are @file{reload.c} and @file{reload1.c}, plus the header
502 @file{reload.h} used for communication between them.
503
504 @opindex dg
505 The option @option{-dg} causes a debugging dump of the RTL code after
506 this pass.  This dump file's name is made by appending @samp{.greg} to
507 the input file name.
508
509 @cindex instruction scheduling
510 @cindex scheduling, instruction
511 @item
512 Instruction scheduling is repeated here to try to avoid pipeline stalls
513 due to memory loads generated for spilled pseudo registers.
514
515 @opindex dR
516 The option @option{-dR} causes a debugging dump of the RTL code after
517 this pass.  This dump file's name is made by appending @samp{.sched2}
518 to the input file name.
519
520 @cindex basic block reordering
521 @cindex reordering, block
522 @item
523 Basic block reordering.  This pass implements profile guided code
524 positioning.  If profile information is not available, various types of
525 static analysis are performed to make the predictions normally coming
526 from the profile feedback (IE execution frequency, branch probability,
527 etc).  It is implemented in the file @file{bb-reorder.c}, and the
528 various prediction routines are in @file{predict.c}.
529
530 @opindex dB
531 The option @option{-dB} causes a debugging dump of the RTL code after
532 this pass.  This dump file's name is made by appending @samp{.bbro} to
533 the input file name.
534
535 @cindex cross-jumping
536 @cindex no-op move instructions
537 @item
538 Jump optimization is repeated, this time including cross-jumping
539 and deletion of no-op move instructions.
540
541 @opindex dJ
542 The option @option{-dJ} causes a debugging dump of the RTL code after
543 this pass.  This dump file's name is made by appending @samp{.jump2}
544 to the input file name.
545
546 @cindex delayed branch scheduling
547 @cindex scheduling, delayed branch
548 @item
549 Delayed branch scheduling.  This optional pass attempts to find
550 instructions that can go into the delay slots of other instructions,
551 usually jumps and calls.  The source file name is @file{reorg.c}.
552
553 @opindex dd
554 The option @option{-dd} causes a debugging dump of the RTL code after
555 this pass.  This dump file's name is made by appending @samp{.dbr}
556 to the input file name.
557
558 @cindex branch shortening
559 @item
560 Branch shortening.  On many RISC machines, branch instructions have a
561 limited range.  Thus, longer sequences of instructions must be used for
562 long branches.  In this pass, the compiler figures out what how far each
563 instruction will be from each other instruction, and therefore whether
564 the usual instructions, or the longer sequences, must be used for each
565 branch.
566
567 @cindex register-to-stack conversion
568 @item
569 Conversion from usage of some hard registers to usage of a register
570 stack may be done at this point.  Currently, this is supported only
571 for the floating-point registers of the Intel 80387 coprocessor.   The
572 source file name is @file{reg-stack.c}.
573
574 @opindex dk
575 The options @option{-dk} causes a debugging dump of the RTL code after
576 this pass.  This dump file's name is made by appending @samp{.stack}
577 to the input file name.
578
579 @cindex final pass
580 @cindex peephole optimization
581 @item
582 Final.  This pass outputs the assembler code for the function.  It is
583 also responsible for identifying spurious test and compare
584 instructions.  Machine-specific peephole optimizations are performed
585 at the same time.  The function entry and exit sequences are generated
586 directly as assembler code in this pass; they never exist as RTL@.
587
588 The source files are @file{final.c} plus @file{insn-output.c}; the
589 latter is generated automatically from the machine description by the
590 tool @file{genoutput}.  The header file @file{conditions.h} is used
591 for communication between these files.
592
593 @cindex debugging information generation
594 @item
595 Debugging information output.  This is run after final because it must
596 output the stack slot offsets for pseudo registers that did not get
597 hard registers.  Source files are @file{dbxout.c} for DBX symbol table
598 format, @file{sdbout.c} for SDB symbol table format,  @file{dwarfout.c}
599 for DWARF symbol table format, files @file{dwarf2out.c} and
600 @file{dwarf2asm.c} for DWARF2 symbol table format, and @file{vmsdbgout.c}
601 for VMS debug symbol table format.
602 @end itemize
603
604 Some additional files are used by all or many passes:
605
606 @itemize @bullet
607 @item
608 Every pass uses @file{machmode.def} and @file{machmode.h} which define
609 the machine modes.
610
611 @item
612 Several passes use @file{real.h}, which defines the default
613 representation of floating point constants and how to operate on them.
614
615 @item
616 All the passes that work with RTL use the header files @file{rtl.h}
617 and @file{rtl.def}, and subroutines in file @file{rtl.c}.  The tools
618 @code{gen*} also use these files to read and work with the machine
619 description RTL@.
620
621 @item
622 All the tools that read the machine description use support routines
623 found in @file{gensupport.c}, @file{errors.c}, and @file{read-rtl.c}.
624
625 @findex genconfig
626 @item
627 Several passes refer to the header file @file{insn-config.h} which
628 contains a few parameters (C macro definitions) generated
629 automatically from the machine description RTL by the tool
630 @code{genconfig}.
631
632 @cindex instruction recognizer
633 @item
634 Several passes use the instruction recognizer, which consists of
635 @file{recog.c} and @file{recog.h}, plus the files @file{insn-recog.c}
636 and @file{insn-extract.c} that are generated automatically from the
637 machine description by the tools @file{genrecog} and
638 @file{genextract}.
639
640 @item
641 Several passes use the header files @file{regs.h} which defines the
642 information recorded about pseudo register usage, and @file{basic-block.h}
643 which defines the information recorded about basic blocks.
644
645 @item
646 @file{hard-reg-set.h} defines the type @code{HARD_REG_SET}, a bit-vector
647 with a bit for each hard register, and some macros to manipulate it.
648 This type is just @code{int} if the machine has few enough hard registers;
649 otherwise it is an array of @code{int} and some of the macros expand
650 into loops.
651
652 @item
653 Several passes use instruction attributes.  A definition of the
654 attributes defined for a particular machine is in file
655 @file{insn-attr.h}, which is generated from the machine description by
656 the program @file{genattr}.  The file @file{insn-attrtab.c} contains
657 subroutines to obtain the attribute values for insns.  It is generated
658 from the machine description by the program @file{genattrtab}.
659 @end itemize