[Mlir-commits] [mlir] [mlir][EmitC] Add support for pointer and opaque types to subscript op (PR #86266)
Marius Brehler
llvmlistbot at llvm.org
Fri Mar 22 04:00:00 PDT 2024
================
@@ -781,11 +786,52 @@ LogicalResult emitc::YieldOp::verify() {
//===----------------------------------------------------------------------===//
LogicalResult emitc::SubscriptOp::verify() {
- if (getIndices().size() != (size_t)getArray().getType().getRank()) {
- return emitOpError() << "requires number of indices ("
- << getIndices().size()
- << ") to match the rank of the array type ("
- << getArray().getType().getRank() << ")";
+ if (auto arrayType = llvm::dyn_cast<emitc::ArrayType>(getRef().getType())) {
+ // Check arity of indices.
----------------
marbre wrote:
Did you really meant to say "arity"?
https://github.com/llvm/llvm-project/pull/86266
More information about the Mlir-commits
mailing list