Unverified Commit 369b8221 authored by Vijay Kandiah's avatar Vijay Kandiah Committed by GitHub
Browse files

[flang] Introducing a method to dynamically and conditionally register dialect...


[flang] Introducing a method to dynamically and conditionally register dialect interfaces.  (#80881)

This change introduces the `addFIRExtensions` method to dynamically and
conditionally register dialect interfaces. As a use case of
`addFIRExtensions`, this change moves the static registration of
`FIRInlinerInterface` out of the constructor of `FIROpsDialect` to be
dynamically registered while loading the necessary MLIR dialects
required by Flang. This registration of `FIRInlinerInterface` is also
guarded by a boolean `addFIRInlinerInterface` which defaults to true.

---------

Co-authored-by: default avatarVijay Kandiah <vkandiah@nvidia.com>
parent 7a9b0e4a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment