mirror of https://github.com/llvm/torch-mlir
Register dialects in ATen lowering pass
parent
fb2d1a1559
commit
124bc65a70
|
@ -891,6 +891,10 @@ MemRefType convertTensorType(TensorType tensor) {
|
|||
struct ATenLoweringPass
|
||||
: public PassWrapper<ATenLoweringPass, OperationPass<ModuleOp>> {
|
||||
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<LLVM::LLVMDialect, StandardOpsDialect>();
|
||||
}
|
||||
|
||||
void runOnOperation() override {
|
||||
LLVMTypeConverter typeConverter(getOperation().getContext());
|
||||
typeConverter.addConversion([&](Type type) {
|
||||
|
|
Loading…
Reference in New Issue