llvm-project/mlir/test/Bytecode/operand_segment_sizes.mlir
Mehdi Amini 363b655920 Finish renaming getOperandSegmentSizeAttr() from operand_segment_sizes to operandSegmentSizes
This renaming started with the native ODS support for properties, this is completing it.

A mass automated textual rename seems safe for most codebases.
Drop also the ods prefix to keep the accessors the same as they were before
this change:
 properties.odsOperandSegmentSizes
reverts back to:
 properties.operandSegementSizes

The ODS prefix was creating divergence between all the places and make it harder to
be consistent.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D157173
2023-08-09 19:37:01 -07:00

9 lines
318 B
MLIR

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