[llvm-dev] Creating arbitrary data type in LLVM IR
Dipanjan Das via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 10 01:59:11 PDT 2017
LLVM Type class offers pointers to known data types, e.g.
Type::getInt8PtrTy(), Type::getDoublePtryTy() etc. What if I need to get a
type representing a pointer to some arbitrary structure? How do I create
such pointer in IR?
The problem is not necessarily only with the pointer. If I need to create a
function in IR that accepts STL Map as an argument, how do I declare the
signature of such a function as well?
--
Thanks & Regards,
Dipanjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171010/418b5937/attachment.html>
More information about the llvm-dev
mailing list