[LLVMdev] Lowering formal pointer arguments

Borja Ferrer borja.ferav at gmail.com
Fri Mar 16 09:01:26 PDT 2012


I had the same issue as both of you when I was implementing this for my
backend. In LowerCall you can get the callee prototype info when the Callee
SDValue is a GlobalAddressSDNode doing cast<Function>(G->getGlobal())
(where G is GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee)),
but this won't work when it is a ExternalSymbolSDNode, for that case i had
to add additional info into the ISD::OutputArg struct to know the real size
of the splitted argument.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120316/b55df694/attachment.html>


More information about the llvm-dev mailing list