[Mlir-commits] [mlir] [emitc][mlir] Add an option to cast array type to ptr type (PR #126385)
Andrey Timonin
llvmlistbot at llvm.org
Sat Feb 8 13:13:12 PST 2025
================
@@ -247,11 +247,12 @@ LogicalResult emitc::AssignOp::verify() {
bool CastOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
Type input = inputs.front(), output = outputs.front();
----------------
EtoAndruwa wrote:
> that the array element type and pointee type match
So we want to prohibit casts like `float arr[3]; int* ptr = (int*)arr;`?
> that the array has rank 1
I was thinking about not dealing with zero rank arrays. Thanks.
https://github.com/llvm/llvm-project/pull/126385
More information about the Mlir-commits
mailing list