[all-commits] [llvm/llvm-project] 0264d4: [mlir][CAPI][python] bind CallSiteLoc, FileLineCol...

Maksim Levental via All-commits all-commits at lists.llvm.org
Mon Mar 10 02:10:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0264d42dc750666e0f57a85d57f563bc8ea43536
      https://github.com/llvm/llvm-project/commit/0264d42dc750666e0f57a85d57f563bc8ea43536
  Author: Maksim Levental <maksim.levental at gmail.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/include/mlir/Bindings/Python/NanobindAdaptors.h
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/test/python/ir/location.py

  Log Message:
  -----------
  [mlir][CAPI][python] bind CallSiteLoc, FileLineColRange, FusedLoc, NameLoc (#129351)

This PR extends the python bindings for CallSiteLoc, FileLineColRange,
FusedLoc, NameLoc with field accessors. It also adds the missing
`value.location` accessor.

I also did some "spring cleaning" here (`cast` -> `dyn_cast`) after
running into some of my own illegal casts.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list