This is an archive of the discontinued LLVM Phabricator instance.

[mlir][cf] Add support for opaque pointers to ControlFlowToLLVM lowering
ClosedPublic

Authored by zero9178 on Feb 8 2023, 7:07 AM.

Details

Summary

Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179

This is a very simple patch since there is only one use of pointers types in cf.assert that has to be changed. Pointer types are conditionally created with element types and the GEP had to be adjusted to use the array type as base type.

Diff Detail

Event Timeline

zero9178 created this revision.Feb 8 2023, 7:07 AM
zero9178 requested review of this revision.Feb 8 2023, 7:07 AM
gysit accepted this revision.Feb 8 2023, 10:25 AM

LGTM!

This revision is now accepted and ready to land.Feb 8 2023, 10:25 AM