search for: pgvar

Displaying 4 results from an estimated 4 matches for "pgvar".

Did you mean: gvar
2005 Feb 02
1
[LLVMdev] RE: Question about Global Variable
...ange Cstr to gI, it compiled successfully. Thanks again. Another question is for constructing getelementpt. // C code char gStrA[10] = "test str"; // here is Global variable,gStrA and initializer "test str" char gStrB[10]= "test str2"; main(){ int = i; char *pGVars[20]; // here, the pGVar is for storing the address of each initializer, i.e. "test str" pGVars[0] = gStrA; pGVars[1] = gStrB; // change the content of gStrA for(i=0;i<5;i++){ pGVars[0][i] ^= 0x27; } } the following IR code is the loop part code which is c...
2015 May 17
2
[LLVMdev] copy value of a global's data field to another global
Hi all, I can get access to the data stored in globals as follows: GlobalVariable* pGvarAct=_set_a_valid_global_; const_ptr_indicesVec=_the_indexes_ llvm::Constant* pConst; pConst=ConstantExpr::getGetElementPtr(pGvarAct, const_ptr_indicesVec); and e.g. use this to repalece an argumrnt of an instruction like: I->setOperand(someArgumentIndex,pConst); However, getGetElementPtr ret...
2015 May 18
2
[LLVMdev] copy value of a global's data field to another global
...need to get a constInt... Alex David Blaikie wrote: > On Sat, May 16, 2015 at 10:28 PM, Alexander Poddey > <alexander.poddey at gmx.net >> wrote: > >> Hi all, >> >> I can get access to the data stored in globals as follows: >> >> GlobalVariable* pGvarAct=_set_a_valid_global_; >> const_ptr_indicesVec=_the_indexes_ >> >> llvm::Constant* pConst; >> pConst=ConstantExpr::getGetElementPtr(pGvarAct, const_ptr_indicesVec); >> >> and e.g. use this to repalece an argumrnt of an instruction like: >> >> I->...
2015 Jan 22
3
[LLVMdev] numeric limits of llvm Types?
Hi all, can I access the numeric limits of the llvm types, e.g. HalfTy, FloatTy, DoubleTy, etc. in a fashion like the std numeric_limits tool? std::numeric_limits<half>::min() std::numeric_limits<half>::max() In c++API, I want to initialize values and need to know the correct range for the llvm types.... Thx Alex