diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2022-08-25 19:09:10 +0200 |
---|---|---|
committer | Markus Böck <markus.boeck02@gmail.com> | 2022-08-25 19:09:18 +0200 |
commit | 0393443bf8069fbfaabcc64ee276ac7da5cf2814 (patch) | |
tree | 9ae81d9b40841e714a94d7d84bce5af12af40f47 /llvm/lib/Support/Timer.cpp | |
parent | 525af9f8eb51b1eb2c800eee116a0c81e1d5a5da (diff) | |
download | llvm-0393443bf8069fbfaabcc64ee276ac7da5cf2814.zip llvm-0393443bf8069fbfaabcc64ee276ac7da5cf2814.tar.gz llvm-0393443bf8069fbfaabcc64ee276ac7da5cf2814.tar.bz2 |
[mlir][ODS] Automatically create `result_segment_sizes` in builder
When using multiple variadic results of differing sizes, using `AttrSizedResultSegments` is currently a requirement. Unlike `AttrSizedOperandSegments` however, it is not created within the default builders created by tablegen. Instead, one has to explicitly add `DenseI32ArrayAttr:$result_segments_sizes` as argument and then also explicitly specify all the sizes when using the builder from C++.
This patch fixes that redundancy, by making the builder generate the attribute in similar fashion as it already does for `AttrSizedOperandSegments`. The sizes required are simply gathered from the result type arguments of the builder.
Differential Revision: https://reviews.llvm.org/D132656
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
0 files changed, 0 insertions, 0 deletions