llvm-capstone/mlir/include
Andrei Golubev 0680e84a3f [mlir] Revert to old fold logic in IR::Dialect::add{Types, Attributes}() (#79582)
Fold expressions on Clang are limited to 256 elements. This causes
compilation errors in cases when the amount of elements added exceeds
this limit. Side-step the issue by restoring the original trick that
would use the std::initializer_list. For the record, in our downstream
Clang 16 gives:

mlir/include/mlir/IR/Dialect.h:269:23: fatal error: instantiating fold
expression with 688 arguments exceeded expression nesting limit of 256
    (addType<Args>(), ...);

Partially reverts 26d811b3ec.

Co-authored-by: Nikita Kudriavtsev <nikita.kudriavtsev@intel.com>
(cherry picked from commit e3a38a75ddc6ff00301ec19a0e2488d00f2cc297)
2024-01-29 15:10:47 -08:00
..
mlir [mlir] Revert to old fold logic in IR::Dialect::add{Types, Attributes}() (#79582) 2024-01-29 15:10:47 -08:00
mlir-c [mlir][spirv] Add support for C-API/python binding to SPIR-V dialect (#76055) 2024-01-02 08:11:44 -08:00