Displaying 2 results from an estimated 2 matches for "pointerarytype".
2005 Jan 31
1
[LLVMdev] Question about Global Variable
...some change for the Cstr and write it back to the global variable by gI->setInitializer(Constant *); Meanwhile I am trying to put a routine (constructing IR routine) into entry of main function, which is for recover initial vaule of global variable to the original string. In this routine,
Type *PointerAryType = ArrayType::get(PointerType::get(Type::SByteTy) , 20);
AllocaInst *PointerAry = new AllocaInst(PointerAryType , 0 , "AddrOfGstr", BB);
// Here, I tried to insert IR like alloca [20 x sbyte *], for C code, it is char *AddrOfGstr[20]; which pointer array is for storing the pointer of in...
2005 Feb 02
1
[LLVMdev] RE: Question about Global Variable
...le by gI->setInitializer(Constant *); Meanwhile I am trying to put
> > a routine (constructing IR routine) into entry of main function, which
> > is for recover initial vaule of global variable to the original string.
> > In this routine,
>
> Ok.
>
> > Type *PointerAryType = ArrayType::get(PointerType::get(Type::SByteTy) , 20);
> > AllocaInst *PointerAry = new AllocaInst(PointerAryType , 0 , "AddrOfGstr", BB);
>
> Okay, this should be fine.
>
> > // Here, I tried to insert IR like alloca [20 x sbyte *], for C code, it
> > is...