[Mlir-commits] [mlir] [mlir][ODS] Copy constant generated interface model prototypes (PR #226323)
Matthias Springer
llvmlistbot at llvm.org
Mon Sep 28 17:53:18 PDT 2026
================
@@ -157,6 +159,15 @@ class InterfaceMap {
template <typename T>
using detect_initialize_method = llvm::is_detected<has_initialize_method, T>;
+ // Only exact generated models with trivial copy construction can be copied
+ // from a constant prototype. Derived models may carry additional state.
----------------
matthias-springer wrote:
Can derived models also have a constructor that set up fields in a different way? If so, that would be another reason worth mentioning here.
https://github.com/llvm/llvm-project/pull/226323
More information about the Mlir-commits
mailing list