[Mlir-commits] [mlir] [mlir][spirv] Implement vector type legalization for function signatures (PR #98337)
Ivan Butygin
llvmlistbot at llvm.org
Thu Jul 11 13:56:30 PDT 2024
================
@@ -37,20 +37,37 @@ using namespace mlir;
namespace {
/// A pass to perform the SPIR-V conversion.
-struct ConvertToSPIRVPass final
- : impl::ConvertToSPIRVPassBase<ConvertToSPIRVPass> {
+struct ConvertToSPIRVPass
+ : public impl::ConvertToSPIRVPassBase<ConvertToSPIRVPass> {
+ using ConvertToSPIRVPassBase::ConvertToSPIRVPassBase;
void runOnOperation() override {
MLIRContext *context = &getContext();
Operation *op = getOperation();
+ if (runSignatureConversion) {
+ // Unroll vectors in function signatures to native vector size.
+ {
----------------
Hardcode84 wrote:
I don't think these extra brackets are needed.
https://github.com/llvm/llvm-project/pull/98337
More information about the Mlir-commits
mailing list