[Mlir-commits] [mlir] [mlir][emitc] Add EmitC index types (PR #93155)

Simon Camphausen llvmlistbot at llvm.org
Thu May 23 05:11:11 PDT 2024


================
@@ -76,6 +76,7 @@ def EmitC_ArrayType : EmitC_Type<"Array", "array", [ShapedTypeInterface]> {
 
     static bool isValidElementType(Type type) {
       return type.isIntOrIndexOrFloat() ||
+         emitc::isAnySizeTType(type) ||
----------------
simon-camp wrote:

add a test for this in [here](https://github.com/llvm/llvm-project/blob/4e0f8a4919b1920ed715ca19314e6b3e06a70763/mlir/test/Dialect/EmitC/types.mlir#L6).

https://github.com/llvm/llvm-project/pull/93155


More information about the Mlir-commits mailing list