Page MenuHomePhabricator

[mlir][capi] Add NameLoc
ClosedPublic

Authored by jpienaar on Aug 24 2021, 5:54 PM.

Details

Summary

Add method to get NameLoc. Treat null child location as unknown to avoid
needing to create UnknownLoc in C API where child loc is not needed.

Diff Detail

Event Timeline

jpienaar created this revision.Aug 24 2021, 5:54 PM
jpienaar requested review of this revision.Aug 24 2021, 5:54 PM
ftynse accepted this revision.Aug 25 2021, 12:07 AM
ftynse added inline comments.
mlir/include/mlir-c/IR.h
165

Nit: could you describe the null childLoc behavior here?

This revision is now accepted and ready to land.Aug 25 2021, 12:07 AM
This revision was automatically updated to reflect the committed changes.
jpienaar marked an inline comment as done.