From 4bc6d1c9352aa75fcde33f8a2884c24c8473249b Mon Sep 17 00:00:00 2001 From: hanhanW Date: Mon, 5 Aug 2024 09:57:40 -0700 Subject: [PATCH] Fixes for https://github.com/llvm/llvm-project/commit/0d9b4394081df959b3752283ed9ca303759dda61 Signed-off-by: hanhanW --- .../Common/ConvertBf16ToUInt16Buffers.cpp | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/compiler/src/iree/compiler/Codegen/Common/ConvertBf16ToUInt16Buffers.cpp b/compiler/src/iree/compiler/Codegen/Common/ConvertBf16ToUInt16Buffers.cpp index 77f717ddd78d..73d1d03fd437 100644 --- a/compiler/src/iree/compiler/Codegen/Common/ConvertBf16ToUInt16Buffers.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/ConvertBf16ToUInt16Buffers.cpp @@ -288,19 +288,19 @@ struct ConvertBf16ToUInt16BuffersPass final vector::BroadcastOp, vector::ShuffleOp, vector::ExtractElementOp, vector::ExtractOp, vector::InsertElementOp, vector::InsertOp, vector::ScalableInsertOp, vector::ScalableExtractOp, - vector::InsertStridedSliceOp, vector::ReshapeOp, - vector::ExtractStridedSliceOp, vector::TransferReadOp, - vector::TransferWriteOp, vector::LoadOp, vector::StoreOp, - vector::MaskedLoadOp, vector::MaskedStoreOp, vector::GatherOp, - vector::ScatterOp, vector::ExpandLoadOp, vector::CompressStoreOp, - vector::ShapeCastOp, vector::ConstantMaskOp, vector::CreateMaskOp, - vector::MaskOp, vector::TransposeOp, vector::FlatTransposeOp, - vector::SplatOp, vector::YieldOp>([&typeConverter](Operation *op) { - bool legal = typeConverter.isLegal(op); - LLVM_DEBUG(if (!legal) llvm::dbgs() - << "Bf16Emulation: illegal op: " << *op << "\n"); - return legal; - }); + vector::InsertStridedSliceOp, vector::ExtractStridedSliceOp, + vector::TransferReadOp, vector::TransferWriteOp, vector::LoadOp, + vector::StoreOp, vector::MaskedLoadOp, vector::MaskedStoreOp, + vector::GatherOp, vector::ScatterOp, vector::ExpandLoadOp, + vector::CompressStoreOp, vector::ShapeCastOp, vector::ConstantMaskOp, + vector::CreateMaskOp, vector::MaskOp, vector::TransposeOp, + vector::FlatTransposeOp, vector::SplatOp, vector::YieldOp>( + [&typeConverter](Operation *op) { + bool legal = typeConverter.isLegal(op); + LLVM_DEBUG(if (!legal) llvm::dbgs() + << "Bf16Emulation: illegal op: " << *op << "\n"); + return legal; + }); RewritePatternSet patterns(ctx); populateIreeBf16EmulationPatterns(patterns, typeConverter);