[LLVMdev] What is a FunctionType really?

David Blaikie dblaikie at gmail.com
Sun Nov 18 09:37:33 PST 2012


On Sun, Nov 18, 2012 at 6:40 AM, edA-qa mort-ora-y <eda-qa at disemia.com> wrote:
> This may sound weird, but what exactly is a FunctionType? That is, in
> terms of memory, or underlying value, what does the FunctionType
> actually represent. At first I though it might be a pointer, but it is
> not -- since you have to wrap a PointerType around it to use as such.
> Can a FunctionType value actually exist, or is strictly an abstract
> concept? In particular, can I actually directly define some type to be a
> function type, or must I always declare it as a pointer to that type?

Types, function or otherwise, have no in-memory representation. They
merely describe how bits should be interpreted.

- David

>
> --
> edA-qa mort-ora-y
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Sign: Please digitally sign your emails.
> Encrypt: I'm also happy to receive encrypted mail.
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list