Skip to content

Commit

Permalink
Move bindings/ to top level.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 276299663
  • Loading branch information
Stella Laurenzo committed Oct 23, 2019
1 parent 2e2fc9c commit bd659a1
Show file tree
Hide file tree
Showing 538 changed files with 1,919 additions and 1,917 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion bindings/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("//:build_defs.google.bzl", "iree_py_library")
load("///iree:build_defs.bzl", "iree_py_library")

package(
default_visibility = ["//visibility:public"],
Expand Down
26 changes: 13 additions & 13 deletions bindings/python/pyiree/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("//:build_defs.google.bzl", "NUMPY_DEPS", "iree_py_extension")
load("///iree:build_defs.bzl", "NUMPY_DEPS", "iree_py_extension")

package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

COMPILER_DEPS = [
"///compiler/Translation/Sequencer",
"///compiler/Translation/Interpreter",
"///compiler/Translation/SPIRV",
"///iree/compiler/Translation/Sequencer",
"///iree/compiler/Translation/Interpreter",
"///iree/compiler/Translation/SPIRV",
]

DRIVER_DEPS = [
"///hal/interpreter:interpreter_driver_module",
"///hal/vulkan:vulkan_driver_module",
"///iree/hal/interpreter:interpreter_driver_module",
"///iree/hal/vulkan:vulkan_driver_module",
]

iree_py_extension(
Expand Down Expand Up @@ -56,13 +56,13 @@ iree_py_extension(
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:optional",
"///base:api",
"///base:init",
"///base:status",
"///hal:api",
"///rt:api",
"///schemas",
"///vm:api",
"///iree/base:api",
"///iree/base:init",
"///iree/base:status",
"///iree/hal:api",
"///iree/rt:api",
"///iree/schemas",
"///iree/vm:api",
"@llvm//:support",
"@local_config_mlir//:IR",
"@local_config_mlir//:Parser",
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyiree/binding.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <vector>

#include "absl/types/optional.h"
#include "base/api.h"
#include "iree/base/api.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"

Expand Down
4 changes: 2 additions & 2 deletions bindings/python/pyiree/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
#include "bindings/python/pyiree/binding.h"
#include "bindings/python/pyiree/initialize.h"
#include "bindings/python/pyiree/status_utils.h"
#include "compiler/Translation/Sequencer/SequencerModuleTranslation.h"
#include "iree/compiler/Translation/Sequencer/SequencerModuleTranslation.h"
#include "iree/schemas/module_def_generated.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/Module.h"
#include "mlir/Parser.h"
#include "schemas/module_def_generated.h"

namespace py = pybind11;

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyiree/hal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "bindings/python/pyiree/hal.h"

#include "hal/api.h"
#include "iree/hal/api.h"

namespace iree {
namespace python {
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyiree/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "bindings/python/pyiree/binding.h"
#include "bindings/python/pyiree/status_utils.h"
#include "hal/api.h"
#include "iree/hal/api.h"

namespace iree {
namespace python {
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyiree/initialize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <mutex> // NOLINT

#include "base/init.h"
#include "iree/base/init.h"

namespace iree {
namespace python {
Expand Down
4 changes: 2 additions & 2 deletions bindings/python/pyiree/rt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

#include "bindings/python/pyiree/rt.h"

#include "base/api.h"
#include "bindings/python/pyiree/status_utils.h"
#include "hal/api.h"
#include "iree/base/api.h"
#include "iree/hal/api.h"

namespace iree {
namespace python {
Expand Down
6 changes: 3 additions & 3 deletions bindings/python/pyiree/rt.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#define IREE_BINDINGS_PYTHON_PYIREE_RT_H_

#include "absl/container/inlined_vector.h"
#include "base/api.h"
#include "bindings/python/pyiree/binding.h"
#include "bindings/python/pyiree/hal.h"
#include "bindings/python/pyiree/initialize.h"
#include "bindings/python/pyiree/status_utils.h"
#include "hal/api.h"
#include "rt/api.h"
#include "iree/base/api.h"
#include "iree/hal/api.h"
#include "iree/rt/api.h"

namespace iree {
namespace python {
Expand Down
4 changes: 2 additions & 2 deletions bindings/python/pyiree/status_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#ifndef IREE_BINDINGS_PYTHON_PYIREE_STATUS_UTILS_H_
#define IREE_BINDINGS_PYTHON_PYIREE_STATUS_UTILS_H_

#include "base/api.h"
#include "base/status.h"
#include "iree/base/api.h"
#include "iree/base/status.h"
#include "pybind11/pytypes.h"

namespace iree {
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyiree/vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "bindings/python/pyiree/binding.h"
#include "bindings/python/pyiree/rt.h"
#include "vm/api.h"
#include "iree/vm/api.h"

namespace iree {
namespace python {
Expand Down
15 changes: 8 additions & 7 deletions BUILD.oss → iree/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Main IREE build file.
# Note that project-wide, bazel repo aliases are used:
# "//third_party/absl/python"
# "//third_party/absl"
# "//third_party/benchmark"
# "//third_party/llvm/llvm/projects/google_mlir"
# "//third_party/llvm/llvm"
# "//third_party/flatbuffers"
# "//third_party/tensorflow"
# "@com_google_absl//absl/python"
# "@com_google_absl//absl"
# "@com_google_benchmark//:benchmark"
# "@local_config_mlir//"
# "@llvm//"
# "@com_github_google_flatbuffers//:flatbuffers"
# "@org_tensorflow//tensorflow"
#
# Various scripts and helpers operate on these prefixes textually, so
# avoid doing any systematic construction that would break the matching.

package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

Expand Down
2 changes: 1 addition & 1 deletion base/BUILD → iree/base/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Common types and utilities used in the IREE codebase.

load("//:build_defs.google.bzl", "platform_trampoline_deps")
load("///iree:build_defs.bzl", "platform_trampoline_deps")

package(
default_visibility = ["//visibility:public"],
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions base/api.cc → iree/base/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "base/api.h"
#include "iree/base/api.h"

#include <cstdlib>
#include <string>

#include "base/api_util.h"
#include "base/file_mapping.h"
#include "base/tracing.h"
#include "iree/base/api_util.h"
#include "iree/base/file_mapping.h"
#include "iree/base/tracing.h"

namespace iree {

Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions base/api_util.h → iree/base/api_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

#include "absl/base/macros.h"
#include "absl/time/time.h"
#include "base/api.h"
#include "base/logging.h"
#include "base/shape.h"
#include "base/status.h"
#include "iree/base/api.h"
#include "iree/base/logging.h"
#include "iree/base/shape.h"
#include "iree/base/status.h"

namespace iree {

Expand Down
4 changes: 2 additions & 2 deletions base/arena.cc → iree/base/arena.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "base/arena.h"
#include "iree/base/arena.h"

#include <memory>

#include "absl/base/attributes.h"
#include "base/logging.h"
#include "iree/base/logging.h"

namespace iree {

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion base/arena_test.cc → iree/base/arena_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "base/arena.h"
#include "iree/base/arena.h"

#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion base/bitfield_test.cc → iree/base/bitfield_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "base/bitfield.h"
#include "iree/base/bitfield.h"

#include <cstdint>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion base/file_io.h → iree/base/file_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <string>

#include "base/status.h"
#include "iree/base/status.h"

namespace iree {
namespace file_io {
Expand Down
4 changes: 2 additions & 2 deletions base/file_mapping.h → iree/base/file_mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <string>

#include "absl/types/span.h"
#include "base/ref_ptr.h"
#include "base/status.h"
#include "iree/base/ref_ptr.h"
#include "iree/base/status.h"

namespace iree {

Expand Down
2 changes: 1 addition & 1 deletion base/file_path.cc → iree/base/file_path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "base/file_path.h"
#include "iree/base/file_path.h"

#include "absl/strings/str_cat.h"

Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions base/flatbuffer_util.cc → iree/base/flatbuffer_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "base/flatbuffer_util.h"
#include "iree/base/flatbuffer_util.h"

#include <cerrno>
#include <cstring>

#include "absl/memory/memory.h"
#include "base/file_mapping.h"
#include "base/memory.h"
#include "base/source_location.h"
#include "base/status.h"
#include "base/tracing.h"
#include "iree/base/file_mapping.h"
#include "iree/base/memory.h"
#include "iree/base/source_location.h"
#include "iree/base/status.h"
#include "iree/base/tracing.h"

namespace iree {

Expand Down
4 changes: 2 additions & 2 deletions base/flatbuffer_util.h → iree/base/flatbuffer_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include "absl/types/span.h"
#include "base/memory.h"
#include "base/status.h"
#include "flatbuffers/flatbuffers.h"
#include "iree/base/memory.h"
#include "iree/base/status.h"

namespace iree {

Expand Down
4 changes: 2 additions & 2 deletions base/init.h → iree/base/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
// should be called early in main(), before other code runs.

#ifdef IREE_CONFIG_GOOGLE_INTERNAL
#include "base/google/init_google.h"
#include "iree/base/google/init_google.h"
#else
#include "base/internal/init_internal.h"
#include "iree/base/internal/init_internal.h"
#endif // IREE_CONFIG_GOOGLE_INTERNAL

namespace iree {
Expand Down
Loading

0 comments on commit bd659a1

Please sign in to comment.