[all-commits] [llvm/llvm-project] c606fe: [MLIR][python bindings] Add more basic AttrBuilder...
HarmonyHu via All-commits
all-commits at lists.llvm.org
Mon May 22 09:38:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c606fefa8579f1d00b53d0a7a6b63319526003e4
https://github.com/llvm/llvm-project/commit/c606fefa8579f1d00b53d0a7a6b63319526003e4
Author: pengchao.hu <pengchao.hu at sophgo.com>
Date: 2023-05-22 (Mon, 22 May 2023)
Changed paths:
M mlir/python/mlir/ir.py
M mlir/test/python/dialects/python_test.py
M mlir/test/python/python_test_ops.td
Log Message:
-----------
[MLIR][python bindings] Add more basic AttrBuilder for _ops_gen.py files
Add more attribute builders, such as "F32Attr", "F64Attr" and "F64ArrayAttr", which are useful to create operations by python bindings. For example, tosa.clamp in _tosa_ops_gen.py need 'F32Attr'.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D150757
More information about the All-commits
mailing list