[all-commits] [llvm/llvm-project] 514ddd: [mlir][python] Allow specifying block arg locations
rk via All-commits
all-commits at lists.llvm.org
Wed May 24 18:56:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 514dddbeba643e32310c508a15d7b6ff42f2c461
https://github.com/llvm/llvm-project/commit/514dddbeba643e32310c508a15d7b6ff42f2c461
Author: Rahul Kayaith <rkayaith at gmail.com>
Date: 2023-05-24 (Wed, 24 May 2023)
Changed paths:
M mlir/lib/Bindings/Python/IRCore.cpp
M mlir/python/mlir/dialects/_func_ops_ext.py
M mlir/test/python/ir/blocks.py
Log Message:
-----------
[mlir][python] Allow specifying block arg locations
Currently blocks are always created with UnknownLoc's for their arguments. This
adds an `arg_locs` argument to all block creation APIs, which takes an optional
sequence of locations to use, one per block argument. If no locations are
supplied, the current Location context is used.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D150084
More information about the All-commits
mailing list