Displaying 5 results from an estimated 5 matches for "nextaddr".
Did you mean:
next_addr
2011 May 18
2
[LLVMdev] access array problem
...st(ElementPtrC, "OldCounterSize", InsertPos);
Value *OldCounterSize =new LoadInst(ElementPtrC, "", InsertPos);
//create a getelementptr instruction: we want get &Counters[OldCounterSize]
std::vector<Value*>new_idx;
new_idx.push_back(OldCounterSize); // ERROR?
Value *nextaddr = GetElementPtrInst::Create(Counters, new_idx.begin(),
new_idx.end(), "", InsertPos);
Thanks!
? 2011/5/18 16:04, Duncan Sands ??:
> Hi Guangming Tan,
>
>>>> GlobalVariable:
>>>> int *counter; //counter the number of load/store operations in run-time
>>...
2011 Jan 20
1
[LLVMdev] SelectionDAG, loops
Hi,
I am trying to rewrite loop addressing to suit my target. I wonder if there is a simple way to find out if the current SelectionDAG is a loop-body?
I tried to rewrite LLVM code to do address arithmetic, ie %nextaddr = add i16* %curraddr, 4, but I could not find a way to make this work.
thanks,
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110120/8abf74a5/attachment.html>
2011 May 18
0
[LLVMdev] access array problem
...please help check why it still does not work:
next time please be more explicit about exactly what goes wrong.
> //create a getelementptr instruction: we want get &Counters[OldCounterSize]
> std::vector<Value*>new_idx;
> new_idx.push_back(OldCounterSize); // ERROR?
> Value *nextaddr = GetElementPtrInst::Create(Counters, new_idx.begin(),
> new_idx.end(), "", InsertPos);
You need to push an index of zero before pushing the OldCounterSize index.
Ciao, Duncan.
2011 May 18
0
[LLVMdev] access array problem
Hi Guangming Tan,
>>> GlobalVariable:
>>> int *counter; //counter the number of load/store operations in run-time
>>> int *counterArray; //record the load/store addresses
>> strictly speaking these are not arrays, they are pointers. Also, you have
>> written them in some kind of C-style idiom. What are the declarations in
>> LLVM IR?
> const Type
2011 May 18
2
[LLVMdev] access array problem
δΊ 2011/5/18 14:29, Duncan Sands ει:
> Hi Tan Guangming,
>
>> I want to access an array in my instrumentation code. For example:
>>
>> GlobalVariable:
>> int *counter; //counter the number of load/store operations in run-time
>> int *counterArray; //record the load/store addresses
> strictly speaking these are not arrays, they are pointers. Also, you have