[llvm-dev] Determine callee inside a custom calling convention
Anna P via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 1 08:20:14 PDT 2018
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
More information about the llvm-dev
mailing list