Skip to content

Commit f33095e

Browse files
TinaAMDmgehre-amd
authored andcommitted
[mlir][emitc] Restrict types in EmitC (llvm#88391)
Restrict the types which are valid for EmitC operations. Use what is currently supported by the emitter as restriction. Define a utility functions for valid types, such that they can be used to restrict the operations in table gen as well as being available for reuse in dialect conversions.
1 parent dbb2bd4 commit f33095e

File tree

1 file changed

+1
-1
lines changed
  • mlir/include/mlir/Dialect/EmitC/IR

1 file changed

+1
-1
lines changed

mlir/include/mlir/Dialect/EmitC/IR/EmitC.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ def EmitC_SubscriptOp : EmitC_Op<"subscript", []> {
12421242
EmitC_OpaqueType,
12431243
EmitC_PointerType]>,
12441244
"the value to subscript">:$value,
1245-
Variadic<AnyType>:$indices);
1245+
Variadic<EmitCType>:$indices);
12461246
let results = (outs EmitCType:$result);
12471247

12481248
let builders = [

0 commit comments

Comments
 (0)