<div dir="ltr">I'm working on a compiler for a dynamically typed language in which the runtime will be implemented as C++ functions. These C++ functions will use a type hierarchy that will be specified as normal C POD structs. What I'd like to be able to do, is use Clang to get the llvm::StructType* that would correspond to the C POD structs to use in the codegen of my compiler so I have guaranteed ABI consistency. That is, feed some library in Clang some C struct as a string, and get the llvm::StructType* that Clang would use when compiling instances of this struct. Is this possible?<br>
</div>