llvm-project
9fcd14d9 - [MLIR][ODS] Optionally generate public C++ functions for attribute constraints (#144275)

Commit
206 days ago
[MLIR][ODS] Optionally generate public C++ functions for attribute constraints (#144275) Add `gen-attr-constraint-decls` and `gen-attr-constraint-defs`, which generate public C++ functions for attribute constraints. The name of the C++ function is specified in the `cppFunctionName` field. This generalize `cppFunctionName` from `TypeConstraint` introduced in https://github.com/llvm/llvm-project/pull/104577 to be usable also in `AttrConstraint`.
Author
Parents
Loading