[Mlir-commits] [mlir] [MLIR] Auto generate source location for python bindings (PR #112923)

Matthias Springer llvmlistbot at llvm.org
Fri Oct 18 08:40:12 PDT 2024


https://github.com/matthias-springer commented:

Having mandatory location information was an important point in the design of MLIR. In C++, you cannot create an op without a location. We somewhat abandoned that principle in Python by making `loc` optional. It makes sense to me to infer the location in the Python interpreter when possible.

https://github.com/llvm/llvm-project/pull/112923


More information about the Mlir-commits mailing list