]> git.ipfire.org Git - thirdparty/gcc.git/commit
simplify-rtx: Split out native_decode_int
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 28 Apr 2025 13:40:09 +0000 (14:40 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 28 Apr 2025 13:40:09 +0000 (14:40 +0100)
commitef32bd8c866a1b8a97f627fad44a42f29757c816
tree1a465034538617175cdd51684fc8924bfa663f1e
parentb9ea3b2ef98048f93b02fcd6ff51777bce1676c2
simplify-rtx: Split out native_decode_int

native_decode_rtx handles integer modes by building up a wide_int
and then converting it to an rtx.  This patch splits out the
wide_int part, so that callers who don't want an rtx can avoid
creating garbage rtl.

gcc/
* rtl.h (native_decode_int): Declare.
* simplify-rtx.cc (native_decode_int): New function, split out from...
(native_decode_rtx): ...here.
gcc/rtl.h
gcc/simplify-rtx.cc