[all-commits] [llvm/llvm-project] d10fce: [MLIR][ODS] Optionally generate public C++ functio...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Mon Jun 16 00:06:51 PDT 2025
Branch: refs/heads/users/xlauko/mlir-attr-constaint-cpp-function-name
Home: https://github.com/llvm/llvm-project
Commit: d10fce2bd85c87b7ca4691ecd9095bb73caea17e
https://github.com/llvm/llvm-project/commit/d10fce2bd85c87b7ca4691ecd9095bb73caea17e
Author: xlauko <xlauko at mail.muni.cz>
Date: 2025-06-16 (Mon, 16 Jun 2025)
Changed paths:
M mlir/docs/DefiningDialects/Constraints.md
M mlir/include/mlir/IR/Constraints.td
A mlir/test/mlir-tblgen/attr-constraints.td
M mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
Log Message:
-----------
[MLIR][ODS] Optionally generate public C++ functions for attribute constraints
Add `gen-attr-constraint-decls` and `gen-attr-constraint-defs`, which
generate public C++ functions for type 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`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list