Skip to content

Dramatically simplify our build configuration and get cmake install working (tracking issue) #3843

Closed

Description

@benvanik

Disaster-scale stuff here. We should be able to simplify things a lot. Let's work hard to not create death-by-a-thousand-papercuts by having a build that is as complex as some of the projects we are trying to replace.

  • [ ] Build compiler C API, iree-compile driver, and make installable #3817: expose a C API to the compiler (not going to block this)
  • remove repo_utils.bzl
  • remove flatbuffers
    • iree-dump-module
    • hal compiler builders
    • hal backend parsers
    • vm compiler builder
      • constant encoder
      • bytecode module
    • byte->ubyte in fbs (avoid signedness)
  • prune MSVC overrides/warnings to minimal set
  • sort copts/linkopts to allow defaults to be overridden
  • remove as many COPTS overrides as possible
    • flatbuffers stuff
    • VMA stuff
    • -DVK_NO_PROTOTYPES
    • -D_GNU_SOURCE
  • remove as many LINKOPTS overrides as possible
    • -frameworks on metal HAL backend should not be needed with #import? and -fcxx-modules
    • -ldl/-lpthread
  • remove PLATFORM_VULKAN_DEPS and PLATFORM_VULKAN_TEST_DEPS
  • rework most build/cmake files to simplify total target count (no globs tho)
    • hal
    • hal backends
    • vm
  • remove IREE_COMMON_INCLUDE_DIRS
    • usage for .td files
    • usage for generated outputs/weird bundling stuff
    • usage for third party files
  • kill alwayslink
    • remove use from tblgen
    • make HAL backend explicit
    • remove iree/base/initializer.h
    • remove iree_api_init
    • remove bazel/cmake alwayslink support
  • remove iree::InitializeEnvironment
  • fix iree/base/tracing rule to be bazel-to-cmake compatible
  • multipy/etc simplification/isolation? (may just need this)
  • Drop SDL2 and dear_imgui from repo #3842: remove sdl2/dear_imgui deps and build config
    • remove bazel overlays for both and build guis as cmake-only
    • drop sdl2 submodule and use cmake find_package instead
    • delete gui sample using imgui (or move to experimental)
    • drop imgui submodule
  • remove llvmjit runtime driver
  • Excise abseil usage from iree/ #3848: continue excising abseil parts from core
    • abseil headers exposed in our API (sometimes through things like absl/base/thread_annotations.h and stuff) are the highest priority to eliminate
  • remove IREE_MLIR_DEP_MODE
  • signature_mangler; rename to iree/compat/tf/tf_signature_mangler or whatever and clean up attrs API later
  • rework cross-compilation to be standard cmake as much as possible (Rework cross-compilation to be standard cmake as much as possible #4323)
  • move cmake add all subdirs to macros
  • add a well-documented top-level cmake options file
  • make iree/base/main.h c, add flags parsing
  • move the random ass iree/tools/init_* files to where they belong in iree/compiler/
  • Replace usage of abseil flags in runtime binaries with something reasonable #3814: flags
  • Replace logging with a C log sink API #2843: logging

more to come

Activity

  1. added
    infrastructure
    on Nov 14, 2020
  2. added this to the milestone on Nov 14, 2020
  3. self-assigned this
    on Nov 14, 2020
  4. added
    yolo
    on Nov 14, 2020
  5. added
    runtime/api
    ew 🤮
    on Nov 20, 2020
  6. GMNGeoffrey commented on Jun 13, 2022

    @GMNGeoffrey
    Member

    What is left to be done here?

  7. benvanik commented on Jul 1, 2022

    @benvanik
    CollaboratorAuthor

    Mostly done!
    image

  8. moved this to Done in IREEon Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ew 🤮infrastructureruntime/apiyolo

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions