Displaying 6 results from an estimated 6 matches for "guangming".
Did you mean:
ganging
2011 May 18
3
[LLVMdev] access array problem
...Constant *ElmentPtr = ConstantExpr::getGetElementPtr(counterArray,
&indexC[0], indexC.size());
......// other codes
Unfortunately, the oldcounter of Value type can not be cast to
ConstantInt, dync_cast returns NULL.
Is there any way to retrieve the integer value from oldcounter?
Thanks!
--
Guangming Tan
2011 May 18
2
[LLVMdev] access array problem
...struction: 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
>>>> int *counterArray; //record the load/store addresses
>>> strictly speaking these are not arrays, they are pointers. Also, you have
>>&...
2011 May 18
0
[LLVMdev] access array problem
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. Als...
2011 May 18
0
[LLVMdev] access array problem
Hi Guangming Tan,
> I rewrote the code, 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(OldCount...
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 arr...
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...