aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/dev-options.md
blob: 8b1b30bcf7e295f7e2174e96717f08e6d7f3bb40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# sparse - extra options for developers

## SYNOPSIS
`tools` [`options`]... `file.c`

## DESCRIPTION

This file is a complement of sparse's man page meant to
document options only useful for development on sparse itself.

## DEVELOPER OPTIONS

-f<name-of-the-pass>[-disable|-enable|=last]

  If `=last` is used, all passes after the specified one are disabled.
  By default all passes are enabled.

  The passes currently understood are:

  * `mem2reg`
  * `optim`

### DEBUGGING

-fdump-ir[=pass[,pass...]]

  Dump the IR at each of the given passes.

  The passes currently understood are:

  * `linearize`
  * `mem2reg`
  * `final`

  The default pass is `linearize`.

-v<debug-flag>

  Add or display some debug info. The flag can be one of:

  * `dead`: annotate dead pseudos.
  * `entry`: dump the IR after all optimization passes.