diff options
| author | Adam Paszke <apaszke@google.com> | 2023-03-08 10:41:34 -0800 |
|---|---|---|
| committer | Jacques Pienaar <jpienaar@google.com> | 2023-03-08 11:11:45 -0800 |
| commit | 99dee31ef48012f8984ddab806b7345c24b02a72 (patch) | |
| tree | 780d1ef9d5803ca47fe081a094524056855d60b1 /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp | |
| parent | 79272ec028ec9c8bd2e3842f6624b13417fbcebd (diff) | |
| download | llvm-99dee31ef48012f8984ddab806b7345c24b02a72.zip llvm-99dee31ef48012f8984ddab806b7345c24b02a72.tar.gz llvm-99dee31ef48012f8984ddab806b7345c24b02a72.tar.bz2 | |
Make it possible to create DenseElementsAttrs with arbitrary shaped types in Python bindings
Right now the bindings assume that all DenseElementsAttrs correspond to tensor values,
making it impossible to create vector-typed constants. I didn't want to change the API
significantly, so I opted for reusing the current signature of `.get`. Its `type` argument
now accepts both element types (in which case `shape` and `signless` can be specified too),
or a shaped type, which specifies the full type of the created attr (`shape` cannot be specified
in that case).
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D145053
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions
