search for: intref

Displaying 3 results from an estimated 3 matches for "intref".

Did you mean: gntref
2009 Jun 30
0
[LLVMdev] simulating c style unions in LLVM
2009/6/29 Carter Cheng <carter_cheng at yahoo.com>: > > 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- > > Is there a standard way for constructing a type like this in LLVM? > Well, you can always ask bitter melon, who
2009 Jun 30
2
[LLVMdev] simulating c style unions in LLVM
Thanks both. I looked over the getelementptr and bitcast documentation but I am still a bit confused by one point. lets say i have something like this. union { long Int; double float; long* IntRef; } Since pointer sizes are platform dependent if I am trying to use the union in question with an extern C function is it possible to make write the single definition in a platform independent way? Thanks in advance. --- On Mon, 6/29/09, me22 <me22.ca at gmail.com> wrote: > From: me22...
2009 Jun 30
3
[LLVMdev] simulating c style unions in LLVM
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.