This allows for setting an attribute using the underlying C++ type,
which is generally much nicer to interact with than the attribute type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D135838
[mlir:ODS] Generate unwrapped operation attribute setters ClosedPublic Authored by rriddle on Oct 12 2022, 6:01 PM.
Details Summary This allows for setting an attribute using the underlying C++ type,
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 14 2022, 11:42 AM Closed by commit rGcdfeeb8a4058: [mlir:ODS] Generate unwrapped operation attribute setters (authored by rriddle). · Explain WhyOct 14 2022, 4:04 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 467954 mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
mlir/lib/Dialect/Arith/IR/ArithOps.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/test/mlir-tblgen/op-attribute.td
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
|
Is this the best way we have for detecting UnitAttr?