This exposes CallInst's tail call kind via new LLVMGetTailCallKind and LLVMSetTailCallKind functions. The motivation for this is to be able to see musttail for languages that require mandatory tail calls for correctness. Today only the weaker LLVMSetTail is exposed and there is no way to set GuaranteedTailCallOpt via the C API.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the quick review! I don't have commit access so it'd be great if someone could land this for me.
Comment Actions
This test seems to be failing pretty much everywhere. Can you please have a look or should we revert it?
llvm/trunk/lib/IR/Core.cpp | ||
---|---|---|
2848 ↗ | (On Diff #215284) | This switch should have default case. You can add that look like. default: llvm_unreachable("Unexpected TailCallKind"); |