Displaying 2 results from an estimated 2 matches for "getelemetptrinst".
Did you mean:
getelementptrinst
2016 Aug 12
2
Check if getElementPtr Operand
...getelementptr inbounds %struct.r32, %struct.r32* %cur.087, i64 0,
i32 4
How to check in the instruction, whether the operand is a structure or not
if(isa<GetElementPtrInst>(instruction))
{
GetElementPtrInst *getElementPtrInst=dyn_cast<GetElementPtrInst>(&instruction);
//check if getElemetPtrInst operands structure or array.
}
Thank You
regards,
Bernard Nongpoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160812/096377eb/attachment.html>
2016 Aug 31
2
Check if getElementPtr Operand
...gt;
>> How to check in the instruction, whether the operand is a structure or
>> not
>>
>> if(isa<GetElementPtrInst>(instruction))
>> {
>> GetElementPtrInst *getElementPtrInst=dyn_cast<GetElementPtrInst>(&instruction);
>>
>> //check if getElemetPtrInst operands structure or array.
>>
>> }
>>
>> Thank You
>>
>> regards,
>>
>> Bernard Nongpoh
>>
>>
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llv...