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
|
struct ATenLoweringPass
|
||||||
: public PassWrapper<ATenLoweringPass, OperationPass<ModuleOp>> {
|
: public PassWrapper<ATenLoweringPass, OperationPass<ModuleOp>> {
|
||||||
|
|
||||||
|
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||||
|
registry.insert<LLVM::LLVMDialect, StandardOpsDialect>();
|
||||||
|
}
|
||||||
|
|
||||||
void runOnOperation() override {
|
void runOnOperation() override {
|
||||||
LLVMTypeConverter typeConverter(getOperation().getContext());
|
LLVMTypeConverter typeConverter(getOperation().getContext());
|
||||||
typeConverter.addConversion([&](Type type) {
|
typeConverter.addConversion([&](Type type) {
|
||||||
|
|
Loading…
Reference in New Issue