Skip to content

Commit

Permalink
bump llvm tag to 3580daa (#1078)
Browse files Browse the repository at this point in the history
This patch makes some rudimentary changes to torch-mlir's use of MLIR
Python bindings to work with the most recent LLVM code.  We can perhaps
do better by being more selective in what we link against, instead of
using `MLIRPythonExtension.RegisterEverything`.
  • Loading branch information
ashay authored Jul 18, 2022
1 parent df0b1e7 commit 7f08169
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion externals/llvm-project
Submodule llvm-project updated 1515 files
2 changes: 1 addition & 1 deletion include/torch-mlir-c/Dialects.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef TORCHMLIR_C_DIALECTS_H
#define TORCHMLIR_C_DIALECTS_H

#include "mlir-c/Registration.h"
#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ set(_source_components
# tree, which seems excessive.
MLIRPythonSources
MLIRPythonExtension.Core
MLIRPythonExtension.AllPassesRegistration
MLIRPythonExtension.RegisterEverything
MLIRPythonExtension.ExecutionEngine
TorchMLIRPythonSources
TorchMLIRPythonExtensions
Expand Down
1 change: 0 additions & 1 deletion python/TorchMLIRModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//

#include "mlir-c/Bindings/Python/Interop.h"
#include "mlir-c/Registration.h"
#include "mlir/Bindings/Python/PybindAdaptors.h"
#include "torch-mlir-c/Dialects.h"
#include "torch-mlir-c/Registration.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from torch_mlir.dialects.torch.importer.jit_ir import ModuleBuilder
from torch_mlir.passmanager import PassManager
import torch_mlir.all_passes_registration

from .registry import Registry

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "mlir-c/BuiltinAttributes.h"
#include "mlir-c/BuiltinTypes.h"
#include "mlir-c/Diagnostics.h"
#include "mlir-c/Registration.h"
#include "torch-mlir-c/Registration.h"

namespace py = pybind11;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from torch_mlir.passmanager import *
from torch_mlir.execution_engine import *
from torch_mlir.runtime import *
# Imported for side effects.
import torch_mlir.all_passes_registration
import torch_mlir.dialects.torch
from torch_mlir.compiler_utils import run_pipeline_with_repro_report

Expand Down
2 changes: 0 additions & 2 deletions python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

from torch_mlir.ir import *
from torch_mlir.passmanager import *
# Imported for side effects.
import torch_mlir.all_passes_registration
from torch_mlir.compiler_utils import run_pipeline_with_repro_report

from torch_mlir_e2e_test.linalg_on_tensors_backends.refbackend import RefBackendLinalgOnTensorsBackend
Expand Down

0 comments on commit 7f08169

Please sign in to comment.