How to determine if a MachineInstr is an indirect tail call instruction

an indirect tail call instruction on X86 returns true under TII->isTailCall(MI), but false in MI.isIndirectBranch(). I can determine that this instruction is a tail call through TII->isTailCall, but is there a better way to judge in the backend pass that this tail call is indirect?

Iā€™m not aware of a generic query for indirect calls. The call pseudos behave differently on different targets, so we would need something new for it

1 Like