-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]compiler:codegenGeneration of LLVM IR and native codeGeneration of LLVM IR and native code
Milestone
Description
I don't like the way reinterpret is currently implemented. It puns on the notion of an array. One problem we recently had to deal with is that alignment guarantees are different between different types (those are now disallowed). Another is that it prevents us from doing more strict TBAA on array element types. I think we should get rid of reinterpret completely and replace it with a ReinterpretArray type, who's getindex method performs the appropriate load from the original array. That way we never have an Array with incorrectly typed storage, but can retain the convenience (and once again allow reinterpret for types with mismatched alignment).
iamed2 and StefanKarpinski
Metadata
Metadata
Assignees
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]compiler:codegenGeneration of LLVM IR and native codeGeneration of LLVM IR and native code