[llvm-dev] Converting i32** to [4 x i32]* ? (original) (raw)
Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 11 14:47:06 PDT 2017
- Previous message: [llvm-dev] Converting i32** to [4 x i32]* ?
- Next message: [llvm-dev] Converting i32** to [4 x i32]* ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/11/2017 3:40 PM, Siddharth Bhat via llvm-dev wrote:
This is a general question regarding type conversion: from: ** to: [ x ]* From what I understand, bitcast is wrong in this case because a GEP into a ** should be computed differently from a GEP into [ x ]*. So, what is the correct way to perform this type conversion?
Bitcast, then use the correct form of GEP and other affected instructions.
-Krzysztof
-- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
- Previous message: [llvm-dev] Converting i32** to [4 x i32]* ?
- Next message: [llvm-dev] Converting i32** to [4 x i32]* ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]