Rahul Joshi
bccd37f69f
[NFC][MLIR][TableGen] Eliminate llvm::
for commonly used types ( #110841 )
...
Eliminate `llvm::` namespace qualifier for commonly used types in MLIR
TableGen backends to reduce code clutter.
2024-10-02 13:23:44 -07:00
Rahul Joshi
d256b9e88b
[TableGen] Change DefInit::Def
to a const Record pointer ( #110747 )
...
This change undoes a const_cast<> introduced in an earlier change to
help transition to const pointers. It is a part of effort to have better
const correctness in TableGen backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-10-02 09:48:26 -07:00
Rahul Joshi
a140931be5
[TableGen] Change getValueAsListOfDefs
to return const pointer vector ( #110713 )
...
Change `getValueAsListOfDefs` to return a vector of const Record
pointer, and remove `getValueAsListOfConstDefs` that was added as a
transition aid.
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-10-01 14:30:38 -07:00
Rahul Joshi
a5dfcccd58
[MLIR][TableGen] Change MLIR TableGen to use const Record * ( #110687 )
...
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2024-10-01 09:54:11 -07:00
Rahul Joshi
b60c6cbc0b
[MLIR][TableGen] Migrate MLIR backends to use const RecordKeeper ( #107505 )
...
- Migrate MLIR backends to use a const RecordKeeper reference.
2024-09-07 15:13:19 -07:00
Mogball
ba468d4dab
[mlir][ods] Emit bytecode readers with generic Attribute/Type (NFC)
...
This aligns the API with the builder API that allows arbitrary
attributes or types to be returned.
2023-10-24 08:06:51 +00:00
Jacques Pienaar
c3c2585bd5
[mlir][bytecodegen] Don't emit empty case (NFC)
2023-06-07 11:15:06 -07:00
Jacques Pienaar
1f8a33c19c
[mlir][bytecodegen] Add list helper methods.
...
Previously the SignedVarInt was incorrectly defined. Follow up work
needed for improving Array printing/parsing, but correcting the
definitions for now.
2023-06-04 15:52:37 -07:00
Jacques Pienaar
a9d003ef85
[mlir][bytecodegen] Add ReservedOrDead marker.
...
Enables reserving or marking dead in enum list, resulting in skipping in dispatches.
2023-06-04 14:59:50 -07:00
Jacques Pienaar
0911558005
[mlir] Dialect type/attr bytecode read/write generator.
...
Tool to help generate dialect bytecode Attribute & Type reader/writing.
Show usage by flipping builtin dialect.
It helps reduce boilerplate when writing dialect bytecode attribute and
type readers/writers. It is not an attempt at a generic spec mechanism
but rather practically focussing on boilerplate reduction while also
considering that it need not be the only in memory format and make it
relatively easy to change.
There should be some cleanup in follow up as we expand to more dialects.
Differential Revision: https://reviews.llvm.org/D144820
2023-04-24 11:53:58 -07:00