diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-11-11 17:28:54 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-11-11 17:28:54 +0000 |
commit | 8479a3759025961f80cf0cd6bb3f127e09d0510d (patch) | |
tree | 737ee8d60266060d48d6dc42b1a6313776ef56b6 /gcc/gimple-range-cache.cc | |
parent | c58b426d64ac2513dc0ed19165740604e891e9df (diff) | |
download | gcc-8479a3759025961f80cf0cd6bb3f127e09d0510d.zip gcc-8479a3759025961f80cf0cd6bb3f127e09d0510d.tar.gz gcc-8479a3759025961f80cf0cd6bb3f127e09d0510d.tar.bz2 |
mode-switching: Tweak the macro/hook documentation
I found the documentation for the mode-switching macros/hooks
a bit hard to follow at first. This patch tries to add the
information that I think would have made it easier to understand.
Of course, documentation preferences are personal, and so I could
be changing something that others understood to something that
seems impenetrable.
Some notes on specific changes:
- "in an optimizing compilation" didn't seem accurate; the pass
is run even at -O0, and often needs to be for correctness.
- "at run time" meant when the compiler was run, rather than when
the compiled code was run.
- Removing the list of optional macros isn't a clarification,
but it means that upcoming patches don't create an absurdly
long list.
- I don't really understand the purpose of TARGET_MODE_PRIORITY,
so I mostly left that alone.
gcc/
* target.def: Tweak documentation of mode-switching hooks.
* doc/tm.texi.in (OPTIMIZE_MODE_SWITCHING): Tweak documentation.
(NUM_MODES_FOR_MODE_SWITCHING): Likewise.
* doc/tm.texi: Regenerate.
Diffstat (limited to 'gcc/gimple-range-cache.cc')
0 files changed, 0 insertions, 0 deletions