search for: ptrmember1

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

Did you mean: pfmember1
2013 Feb 01
0
[LLVMdev] Structure declaration with IR builder
...rgetModule->getOrInsertFunction(BB.getBlockName(),ty); > fTest = llvm::cast<llvm::Function>(c); > fTest ->setCallingConv(llvm::CallingConv::C); > > //Access the struct members > llvm:Value *ArgValuePtr = builder->CreateStructGEP(fTest ->arg_begin(),0,"ptrMember1"); > llvm::Valuie *StructValue = builder->CreateLoad(ArgValuePtr,false,"member1"); > > Cheers, > Peter > > Peter Garba - Software Engineer - +49 (0)89 894221 190 - Peter.Garba at safenet-inc.com > > > -----Original Message----- > From: llvmdev-bounces...
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