ΒΆbool isInTailCallPosition(
const llvm::CallBase& Call,
const llvm::TargetMachine& TM)
bool isInTailCallPosition(
const llvm::CallBase& Call,
const llvm::TargetMachine& TM)
Description
Test if the given instruction is in a position to be optimized with a tail-call. This roughly means that it's in a block with a return and there's nothing that needs to be scheduled between it and the return. This function only tests target-independent requirements.
Declared at: llvm/include/llvm/CodeGen/Analysis.h:116
Parameters
- const llvm::CallBase& Call
- const llvm::TargetMachine& TM