Use rtx_insn* where it always is one.
Use rtx_insn* directly for RTL constructs that are guaranteed to be instructions.
This commit refactors several target-specific RTL constructs to use rtx_insn * directly, as these constructs are always machine instructions. This applies to backends like aarch64, c6x, ia64, mips, rs6000, s390, and sh. By using rtx_insn *, the code becomes more precise and potentially more efficient by avoiding unnecessary type checks or conversions. var-tracking.cc also sees a related change using rtx_note * for markers.
In Details
This commit updates several machine description files and C/C++ files in various GCC backends (aarch64, c6x, ia64, mips, rs6000, s390, sh) to use rtx_insn * where the RTL construct is guaranteed to represent a machine instruction. For instance, doloop_end in aarch64.md, ia64_gen_spec_load in ia64.cc, and s390_find_execute in s390.cc are examples. This change improves type safety and clarity in the RTL processing code, as it avoids casting from a more general rtx type when the specific rtx_insn type is known.
- rtx_insn
- An RTX (Real-Time Expression) object representing a GCC internal representation of a machine instruction.
rtx_insn *is a pointer to such an instruction. - RTL
- Register Transfer Language, an intermediate representation used by GCC to represent code between parsing and machine-specific code generation. It's a Lisp-like language of expressions.
- backend
- The part of the compiler that translates the intermediate representation into machine-specific code for a particular target architecture.
- rtx_note
- An RTX (Real-Time Expression) object representing a note, which is metadata attached to code elements, such as instructions or basic blocks, within GCC's intermediate representation.