]> git.ipfire.org Git - thirdparty/gcc.git/commit
doc: Fixes to RTL-SSA sample code
authorAlex Coplan <alex.coplan@arm.com>
Thu, 17 Aug 2023 13:08:31 +0000 (14:08 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Thu, 17 Aug 2023 13:08:31 +0000 (14:08 +0100)
commit84a5be47f8e13839efdf0e06f02ef1a0cacf5e34
tree0376986d65918f20b70fdc2b359ff02c55672fb3
parent903d937569992a885faf8a1bf7d120e9e66f456b
doc: Fixes to RTL-SSA sample code

This patch fixes up the code examples in the RTL-SSA documentation (the
sections on making insn changes) to reflect the current API.

The main issues are as follows:
 - rtl_ssa::recog takes an obstack_watermark & as the first parameter.
   Presumably this is intended to be the change attempt, so I've updated
   the examples to pass this through.
 - The variants of recog and restrict_movement that take an ignore
   predicate have been renamed with an _ignoring suffix, so I've
   updated callers to use those names.
 - A couple of minor "obvious" fixes to add a missing address-of
   operator and correct a variable name.

gcc/ChangeLog:

* doc/rtl.texi: Fix up sample code for RTL-SSA insn changes.
gcc/doc/rtl.texi