[mlir][sparse] Add codegen for expand op.
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D133454
This commit is contained in:
@@ -175,7 +175,9 @@ struct SparseTensorCodegenPass
|
||||
[&](bufferization::DeallocTensorOp op) {
|
||||
return converter.isLegal(op.getTensor().getType());
|
||||
});
|
||||
// Legal dialects may occur in generated code.
|
||||
// The following operations and dialects may be introduced by the
|
||||
// codegen rules, and are therefore marked as legal.
|
||||
target.addLegalOp<linalg::FillOp>();
|
||||
target.addLegalDialect<arith::ArithmeticDialect,
|
||||
bufferization::BufferizationDialect,
|
||||
memref::MemRefDialect, scf::SCFDialect>();
|
||||
|
||||
Reference in New Issue
Block a user