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

Matthias Gehre llvmlistbot at llvm.org
Wed May 29 01:34:23 PDT 2024


================
@@ -227,9 +235,11 @@ bool CastOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
   Type input = inputs.front(), output = outputs.front();
 
   return ((llvm::isa<IntegerType, FloatType, IndexType, emitc::OpaqueType,
----------------
mgehre-amd wrote:

Can we use `return emitc::isIntegerIndexOrOpaqueType(input) || emitc::isSupportedFloatType(input) || isa<emitc::PointerType>(input);` here and for `output`?

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


More information about the Mlir-commits mailing list