[LLVMdev] simulating c style unions in LLVM
Carter Cheng
carter_cheng at yahoo.com
Mon Jun 29 23:09:24 PDT 2009
I am trying to create a boxed tagged datatype for a language where it is necessary to resolve the type at runtime. If I were writing an interpreter in C- it would most likely look something like this-
struct
{
unsigned tag;
union { long Int; double Float; .... }
}
Is there a standard way for constructing a type like this in LLVM?
Thanks again.
More information about the llvm-dev
mailing list