[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


================
@@ -142,6 +148,10 @@ static LogicalResult verifyInitializationAttribute(Operation *op,
   Type resultType = op->getResult(0).getType();
   Type attrType = cast<TypedAttr>(value).getType();
 
+  if (isa<emitc::SignedSizeTType, emitc::SizeTType>(resultType) &&
----------------
simon-camp wrote:

use `isAnySizeTType` and a test [here](https://github.com/llvm/llvm-project/blob/fbd643fb22607b933a4e129ae86a7334b62c9b55/mlir/test/Dialect/EmitC/ops.mlir#L43)

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


More information about the Mlir-commits mailing list