[llvm-dev] Determine callee inside a custom calling convention
Friedman, Eli via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 1 10:22:42 PDT 2018
On 10/1/2018 8:20 AM, Anna P via llvm-dev wrote:
> Hi,
>
> I am new to LLVM so bear with me if the answer to my question is obvious.
> I am experimenting with a custom calling convention for X86, which I
> hooked up in the tablegen'ed calling convention definition:
>
> bool CC_X86_64_CustomCall(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
> CCValAssign::LocInfo &LocInfo,
> ISD::ArgFlagsTy
> &ArgFlags, CCState &State);
>
> Inside this function, how to determine the callee?
>
> With State.getMachineFunction() I only get the caller, but not the callee.
The callee is normally irrelevant. What are you trying to do?
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
More information about the llvm-dev
mailing list