gccrs: intrinsics: Use lambdas for wrapping_<op> intrinsics
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 26 Oct 2022 14:06:53 +0000 (16:06 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:43 +0000 (12:36 +0100)
commitcb2cf21cf336cfcb12a7e814e816310a8f2a177e
tree7a02c711726b69eccbfbebe1030e9d5c0bb680ac
parent1c586a1d1c12dce2a65fb117b577a73ad5cf45ea
gccrs: intrinsics: Use lambdas for wrapping_<op> intrinsics

gcc/rust/ChangeLog:

* backend/rust-compile-intrinsic.cc (wrapping_op_handler): Refactor to return
an `std::function`.
(wrapping_op_handler_inner): Rename.
(wrapping_add_handler): Remove function.
(wrapping_sub_handler): Likewise.
(wrapping_mul_handler): Likewise.
gcc/rust/backend/rust-compile-intrinsic.cc