Anna P via llvm-dev
2018-Oct-01 15:20 UTC
[llvm-dev] Determine callee inside a custom calling convention
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. Thank you for your help! Best, Anna
Friedman, Eli via llvm-dev
2018-Oct-01 17:22 UTC
[llvm-dev] Determine callee inside a custom calling convention
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