diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2023-09-13 23:38:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 23:38:39 +0200 |
commit | be59265bbde77bba40599f114a6bedfe91da5c07 (patch) | |
tree | 09712aade989b8c92fd310d2dd9c6dab82674692 /clang/lib/Serialization/ModuleManager.cpp | |
parent | c0f5015afb45297d637677bbdfb7a5df067cbb5e (diff) | |
download | llvm-be59265bbde77bba40599f114a6bedfe91da5c07.zip llvm-be59265bbde77bba40599f114a6bedfe91da5c07.tar.gz llvm-be59265bbde77bba40599f114a6bedfe91da5c07.tar.bz2 |
[mlir] Make `extraClassOf` compile with attribute and type interfaces (#66292)
Using `extraClassOf` currently does not work with attribute or type
interfaces as the generated code calls `getInterfaceFor`, a private
method of `AttributeInterface` and `TypeInterface` respectively.
This PR fixes this by applying the same change that has been done to
`OpInterface` in the past: Make `getInterfaceFor` a protected member of
the class, allowing the generated code in subclasses to use it.
An attribute and type interface with `extraClassOf` have been added as
interfaces in the test dialect to ensure it compiles without errors.
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions