MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / parse_fn_tailcall

Function parse_fn_tailcall

llvm_util/utils.cpp:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550TailCallInfo parse_fn_tailcall(const llvm::CallInst &i) {
551 bool is_tailcall = i.isTailCall() || i.isMustTailCall();
552 if (!is_tailcall)
553 return {};
554 auto tail_type =
555 i.isMustTailCall() ? TailCallInfo::MustTail : TailCallInfo::Tail;
556 bool has_same_cc = i.getCallingConv() == i.getCaller()->getCallingConv();
557 return {tail_type, has_same_cc};
558}
559}

Callers 4

known_callFunction · 0.85
visitCallInstMethod · 0.85
visitMemSetInstMethod · 0.85
visitMemTransferInstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected