This is an archive of the discontinued LLVM Phabricator instance.

[mlir][LLVMIR] Add `llvm.eh.typeid.for` intrinsic
ClosedPublic

Authored by zero9178 on Dec 31 2021, 12:35 AM.

Details

Summary

MLIR already exposes landingpads, the invokeop and the personality function on LLVM functions. With this intrinsic it should be possible to implement exception handling via the exception handling mechanisms provided by the Itanium ABI.

Diff Detail

Event Timeline

zero9178 created this revision.Dec 31 2021, 12:35 AM
zero9178 requested review of this revision.Dec 31 2021, 12:35 AM
zero9178 updated this revision to Diff 396764.Dec 31 2021, 12:38 AM

Fix typo in test and spelling of the Op

Can you add a test in mlir/test/Dialect/LLVMIR/roundtrip.mlir ?

zero9178 updated this revision to Diff 396836.Dec 31 2021, 4:55 PM

Add use and check for the intrinsic in roundtrip.mlir

mehdi_amini accepted this revision.Dec 31 2021, 5:01 PM

Thanks!

This revision is now accepted and ready to land.Dec 31 2021, 5:01 PM
This revision was landed with ongoing or failed builds.Dec 31 2021, 5:03 PM
This revision was automatically updated to reflect the committed changes.