OSDN Git Service

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