diff options
author | rkayaith <rkayaith@gmail.com> | 2022-02-24 10:21:40 +0100 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2022-02-24 10:26:31 +0100 |
commit | e9db306dcd53f33b982d772793ffe7326d40c018 (patch) | |
tree | c921ddd2021b15882834970239c9f50b968ad7a1 /clang/lib/Sema/SemaModule.cpp | |
parent | bfb4afee74c8d6e3b1d020564bfe163073f07a04 (diff) | |
download | llvm-e9db306dcd53f33b982d772793ffe7326d40c018.zip llvm-e9db306dcd53f33b982d772793ffe7326d40c018.tar.gz llvm-e9db306dcd53f33b982d772793ffe7326d40c018.tar.bz2 |
[mlir][python] Support more types in IntegerAttr.value
Previously only accessing values for `index` and signless int types
would work; signed and unsigned ints would hit an assert in
`IntegerAttr::getInt`. This exposes `IntegerAttr::get{S,U}Int` to the C
API and calls the appropriate function from the python bindings.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D120194
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions