search for: structreg

Displaying 2 results from an estimated 2 matches for "structreg".

Did you mean: structre
2013 Feb 01
0
[LLVMdev] Structure declaration with IR builder
...What I tried to do is declare a structured to allow after declaration global or local structured variables. How I can I do? Thanks, Manuele Il 31/01/2013 10:14, Garba,Peter ha scritto: > Hi, > > that's what I'm doing ... > > //Init the struct type > llvm::StructType *structReg = llvm::StructType::create(TargetModule->getContext(),vMember, "struct.Foo"); > structRegPtr = llvm::PointerType::get(structReg, 0); > > //Create a llvm function > llvm::FunctionType* ty = llvm::FunctionType::get(llvm::Type::getInt32Ty(TargetModule->getContext())...
2013 Jan 31
2
[LLVMdev] Structure declaration with IR builder
Hi All, I tryed to create a global structured derived declaration in my compiler by: StructType *st = StructType(getGlobalContext(), elements, false); In dump module i didn't find any code needed to declare a new user data type. Is there a instruction to add this class into current module? Cheers, Manuele