Displaying 1 result from an estimated 1 matches for "crc16table".
2013 Mar 07
1
[LLVMdev] array of pointers
...
The getInitializer() method of a GlobalVariable returns 4 pointers like below.
[4 x i32*] [i32* getelementptr inbounds ([256 x i32]* @CRC24ATable, i32 0, i32 0), i32* getelementptr inbounds ([256 x i32]* @CRC24BTable, i32 0, i32 0), i32* getelementptr inbounds ([256 x i32]* @CRC16Table, i32 0, i32 0), i32* getelementptr inbounds ([256 x
i32]* @CRC8Table, i32 0, i32 0)]
I can use getAggregateElement(uint) to access each of the 4 elements (pointers). But I am not able to figure out how to cast the element so that I can then access each of the GEP expressions and its operands....