Skip to content

Conversation

@shantanu-gontia
Copy link

@shantanu-gontia shantanu-gontia commented Dec 6, 2025

WORKSPACE are deprecated and to be replaced by MODULE. Bazel roadmap mentions WORKSPACE are going to be removed entirely. Mainline LLVM has also upgraded from WORKSPACE to MODULE.

This PR updates the Torch-MLIR overlay to use MODULE and fixes the bazel build.

  1. WORKSPACE -> MODULE
  2. Add a .bazelversion to 8.4.0 (parity with mainline LLVM)
  3. Update the docker imagefile for the bazel build to use bazelisk
  4. Add the AArch64 target to the LLVM Build (to support local builds on Arm)
  5. Update test tooling to support the new MODULE system's idiosynracies

@shantanu-gontia shantanu-gontia marked this pull request as draft December 6, 2025 07:23
@shantanu-gontia shantanu-gontia marked this pull request as ready for review December 7, 2025 09:32
@shantanu-gontia
Copy link
Author

Hi, @sjain-stanford the wiki listed you as the maintainer for the bazel build. Could you review this PR? Thanks.

llvm_config.with_system_environment(["HOME", "INCLUDE", "LIB", "TMP", "TEMP"])

# llvm_config.use_default_substitutions()
llvm_config.use_default_substitutions()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for FileCheck substitution using @LLVM_TOOLS_DIR@

@sjain-stanford
Copy link
Member

sjain-stanford commented Dec 7, 2025

Hi, @sjain-stanford the wiki listed you as the maintainer for the bazel build. Could you review this PR? Thanks.

Thanks for the ping. I am no longer overseeing the bazel build for torch-mlir but let me loop in someone who can help.
cc: @mfeliz-cruise , @matthewfl (also, we should update the current set of maintainers if possible)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants