forked from OSchip/llvm-project
[mlir] Fix integration tests failures introduced in D108505
This commit is contained in:
parent
92c9b28347
commit
798e4bfbed
|
@ -333,8 +333,9 @@ struct LinalgBufferizePass : public LinalgBufferizeBase<LinalgBufferizePass> {
|
|||
return typeConverter.isLegal(op);
|
||||
};
|
||||
target.addDynamicallyLegalDialect<linalg::LinalgDialect>(isLegalOperation);
|
||||
target.addDynamicallyLegalOp<ConstantOp, vector::TransferReadOp,
|
||||
vector::TransferWriteOp>(isLegalOperation);
|
||||
target
|
||||
.addDynamicallyLegalOp<vector::TransferReadOp, vector::TransferWriteOp>(
|
||||
isLegalOperation);
|
||||
|
||||
RewritePatternSet patterns(&context);
|
||||
populateLinalgBufferizePatterns(typeConverter, patterns);
|
||||
|
|
|
@ -175,6 +175,7 @@ struct TensorBufferizePass : public TensorBufferizeBase<TensorBufferizePass> {
|
|||
target.addLegalDialect<memref::MemRefDialect>();
|
||||
target.addDynamicallyLegalDialect<StandardOpsDialect>(
|
||||
[&](Operation *op) { return typeConverter.isLegal(op); });
|
||||
target.addLegalOp<CallOp>();
|
||||
target.addLegalOp<ReturnOp>();
|
||||
target.addLegalDialect<scf::SCFDialect>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue