| 166 | } |
| 167 | |
| 168 | std::optional<int> get_rsp_element(const rabbitizer::InstructionRsp& instr) { |
| 169 | if (instr.hasOperand(rabbitizer::OperandType::rsp_vt_elementhigh)) { |
| 170 | return instr.GetRsp_elementhigh(); |
| 171 | } else if (instr.hasOperand(rabbitizer::OperandType::rsp_vt_elementlow) || instr.hasOperand(rabbitizer::OperandType::rsp_vs_index)) { |
| 172 | return instr.GetRsp_elementlow(); |
| 173 | } |
| 174 | |
| 175 | return std::nullopt; |
| 176 | } |
| 177 | |
| 178 | bool rsp_ignores_element(InstrId id) { |
| 179 | return id == InstrId::rsp_vmacq || id == InstrId::rsp_vnop; |
no outgoing calls
no test coverage detected