[all-commits] [llvm/llvm-project] 54dcc8: [MLIR][ODS] Optionally generate public C++ functio...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Sun Jun 15 12:42:10 PDT 2025
Branch: refs/heads/users/xlauko/mlir-attr-constaint-cpp-function-name
Home: https://github.com/llvm/llvm-project
Commit: 54dcc87e18310a3f9f1368d18b46e33b43e0e34c
https://github.com/llvm/llvm-project/commit/54dcc87e18310a3f9f1368d18b46e33b43e0e34c
Author: xlauko <xlauko at mail.muni.cz>
Date: 2025-06-15 (Sun, 15 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