Files
clang-p2996/mlir/test/Bytecode/operand_segment_sizes.mlir
Mehdi Amini 2ef44aa443 [MLIR][Bytecode] Add missing field initializer in constructor initializer list
Leaving this field unitialized could led to crashes when it'll diverge from the
IRNumbering phase.

Differential Revision: https://reviews.llvm.org/D156965
2023-08-02 23:31:01 -07:00

9 lines
324 B
MLIR

// RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s
func.func @roundtripOperandSizeAttr(%arg0: i32) {
// CHECK: odsOperandSegmentSizes = array<i32: 0, 2, 1, 1>}>
"test.attr_sized_operands"(%arg0, %arg0, %arg0, %arg0) <{odsOperandSegmentSizes = array<i32: 0, 2, 1, 1>}> : (i32, i32, i32, i32) -> ()
return
}