This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Expose CallSiteLoc Python side
ClosedPublic

Authored by jpienaar on Oct 12 2021, 12:43 PM.

Details

Summary

This exposes creating a CallSiteLoc with a callee & list of frames for
callers. Follows the creation approach in C++ side where a list of
frames may be provided.

Diff Detail

Event Timeline

jpienaar created this revision.Oct 12 2021, 12:43 PM
jpienaar requested review of this revision.Oct 12 2021, 12:43 PM
jpienaar updated this revision to Diff 379154.Oct 12 2021, 12:58 PM

Rebase & update test

ftynse accepted this revision.Oct 13 2021, 1:18 AM
ftynse added inline comments.
mlir/lib/Bindings/Python/IRCore.cpp
1974

Nit: throw py::value_error

mlir/test/python/ir/location.py
88

Nit: run already does this.

This revision is now accepted and ready to land.Oct 13 2021, 1:18 AM
This revision was automatically updated to reflect the committed changes.