search for: getblockname

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

2013 Feb 01
0
[LLVMdev] Structure declaration with IR builder
...> structRegPtr = llvm::PointerType::get(structReg, 0); > > //Create a llvm function > llvm::FunctionType* ty = llvm::FunctionType::get(llvm::Type::getInt32Ty(TargetModule->getContext()),structRegPtr,false); > llvm::Constant *c = TargetModule->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...
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