Commit Graph

7 Commits

Author SHA1 Message Date
Lauri Vasama 4c97c6e7ab Make CAttributeListBuilder conversion explicit 2026-04-30 15:09:16 +03:00
Lauri Vasama 90e5dfd4c9 Pass MLIRContext by address
Passing by address is more conventional. This is what MLIR does most of
the time, and it avoids dereferences and addressofs everywhere.
2026-04-30 15:09:16 +03:00
Lauri Vasama a338194eb7 Move namespace mlir::clift out of namespace mlir 2026-04-27 12:48:24 +03:00
Ivan Krysak 458cb1f3fe CAttributeListBuilder: expose append method 2026-04-22 08:19:27 +00:00
Ivan Krysak 539a8370c6 CAttributeListBuilder: allow chaining the methods
This lets callees do stuff like:
```cpp
CAttributeListBuilder{Context}
  .setOrUpdate<"_MY_ATTRIBUTE_1">()
  .setOrUpdate<"_MY_ATTRIBUTE_2">()
  .setOrUpdate<"_MY_ATTRIBUTE_3">()
  .get()
```
2026-04-22 06:14:52 +00:00
Lauri Vasama 9ba90e9b81 Replace ValueType with mlir::Type where applicable
`mlir::Type` is now used as the default C++ type for representing all
MLIR types, even when `ValueType` would be a valid constraint, unless
doing so provides a clear benefit in that specific context.
2026-04-08 12:20:00 +03:00
Ivan Krysak 1c14ae1c93 Introduce: CAttributeListBuilder 2026-03-27 07:19:27 +00:00