Pass an rtx_call_insn * to find_first_parameter_load.
Updates internal GCC functions to accept call instruction pointers.
This commit modifies the find_first_parameter_load function within GCC’s RTL (Register Transfer Language) analysis to accept a pointer to an rtx_call_insn object. This change is part of ongoing internal refactoring and improves type safety and clarity when analyzing function calls. Related functions like sjlj_mark_call_sites and insert_insn_end_basic_block are updated to cast their arguments appropriately.
In Details
The find_first_parameter_load function, used in RTL analysis for identifying how function arguments are loaded into registers, is updated to take an rtx_call_insn * as its first argument instead of a generic rtx. This change enhances type precision within the compiler's internal representation. Consequently, functions that call find_first_parameter_load, such as sjlj_mark_call_sites in except.cc and insert_insn_end_basic_block in gcse.cc, now include explicit casts to rtx_call_insn * for their arguments passed to this function.
- RTL
- Register Transfer Language, an intermediate representation used by GCC to describe the state of computations between passes, reflecting machine registers and operations.
- rtx_call_insn
- An internal GCC data structure representing a function call instruction within the RTL representation.
- parameter load
- The process of moving function arguments from memory or registers into a format expected by the called function, according to the target's Application Binary Interface (ABI).
- SJLJ exception handling
- Setjmp/Longjmp exception handling, a set of compiler-generated functions and conventions used for implementing C++ exceptions on certain platforms.