Displaying 3 results from an estimated 3 matches for "inserpos".
Did you mean:
insertpos
2011 May 18
3
[LLVMdev] access array problem
...index[0], index.size());
Value *oldcounter = new LoadInst(ElementPtr, "oldcounter", InsertPos);
Value *newcounter = BinaryOperator::Create(Instruction::Add,
oldcounter, ConstantInt::get(Type::getInt64Ty(Context), 1),
"newcounter", InsertPos);
new StoreInst(newcounter, ElmentPtr, InserPos);
//store the memory address to counterArray[oldcounter]
std::vector<Constant*> indexC(2);
indexC[0] = Constant::getNullvalue(Type:getInt32Ty(Context));
indexC[1] = dync_cast(llvm::ConstantInt>(oldcounter);
Constant *ElmentPtr = ConstantExpr::getGetElementPtr(counterArray,
&indexC[0]...
2011 May 18
0
[LLVMdev] access array problem
...> Value *oldcounter = new LoadInst(ElementPtr, "oldcounter", InsertPos);
> Value *newcounter = BinaryOperator::Create(Instruction::Add,
> oldcounter, ConstantInt::get(Type::getInt64Ty(Context), 1),
> "newcounter", InsertPos);
> new StoreInst(newcounter, ElmentPtr, InserPos);
>
> //store the memory address to counterArray[oldcounter]
> std::vector<Constant*> indexC(2);
> indexC[0] = Constant::getNullvalue(Type:getInt32Ty(Context));
> indexC[1] = dync_cast(llvm::ConstantInt>(oldcounter);
Since oldcounter is not a constant (its value is not kn...
2011 May 18
2
[LLVMdev] access array problem
...ounter = new LoadInst(ElementPtr, "oldcounter", InsertPos);
>> Value *newcounter = BinaryOperator::Create(Instruction::Add,
>> oldcounter, ConstantInt::get(Type::getInt64Ty(Context), 1),
>> "newcounter", InsertPos);
>> new StoreInst(newcounter, ElmentPtr, InserPos);
>>
>> //store the memory address to counterArray[oldcounter]
>> std::vector<Constant*> indexC(2);
>> indexC[0] = Constant::getNullvalue(Type:getInt32Ty(Context));
>> indexC[1] = dync_cast(llvm::ConstantInt>(oldcounter);
> Since oldcounter is not a cons...