summaryrefslogtreecommitdiff
path: root/utils/bazel
AgeCommit message (Collapse)Author
2025-11-21[bazel] Remove old config option (#169133)Keith Smiley
The default of this has been flipped since we're on 8.x
2025-11-21[bazel][ORC] Port #168518: orc deps (#169059)Jordan Rupprecht
2025-11-21[clang][NFC] Inline Frontend/FrontendDiagnostic.h -> ↵Jordan Rupprecht
Basic/DiagnosticFrontend.h (#162883) d076608d58d1ec55016eb747a995511e3a3f72aa moved some deps around to avoid cycles and left clang/Frontend/FrontendDiagnostic.h as a shim that simply includes clang/Basic/DiagnosticFrontend.h. This PR inlines it so that nothing in tree still includes clang/Frontend/FrontendDiagnostic.h. Doing this will help prevent future layering issues. See #162865. Frontend already depends on Basic, so no new deps need to be added anywhere except for places that do strict dep checking.
2025-11-20[bazel] Replace --experimental_guard_against_concurrent_changes usage (#168957)Jordan Rupprecht
On startup, bazel prints: `WARNING: Option 'experimental_guard_against_concurrent_changes' is deprecated: Use --guard_against_concurrent_changes instead`
2025-11-20[bazel] Bump to 8.4.2 (#168933)Keith Smiley
Just staying up to date
2025-11-20[bazel] Add explicit dep on protobuf (#168928)Keith Smiley
This is required for correctly loading the protobuf rules. It's possible we could drop the version here to a lower version, as long as that version supports the versions of bazel we support. I picked this because it is the current version being used by bazel 8.0.0 (which is defined in the .bazelversion). Users can override this in their project anyways if they need an older one
2025-11-20[bazel] Delete WORKSPACE file (#168926)Keith Smiley
This has been replaced by the MODULE.bazel file. Users can still use their own WORKSPACE files, but they didn't inherit this file anyways. Users should migrate to bzlmod as with bazel 9.x that is required.
2025-11-20[bazel][LoongArch] Port #168129: tablegen for sdnode (#168907)Jordan Rupprecht
2025-11-19[bazel] Fix #165009 (#168804)Pranav Kant
2025-11-19[bazel] Fix bzlmod reference to @vulkan_sdk (#168767)Jordan Rupprecht
vulkan_sdk_setup is the name of the method that configures it, but the repo itself has the name vulkan_sdk This was caught by enabling the bzlmod flag for CI. The GH action runs `blaze test @llvm-project/...` but the target is tagged manual, so it's excluded. The buildkite CI runs `bazel query | xargs bazel test` which will include manual targets.
2025-11-19[bazel] Flip --enable_bzlmod to true (#168555)Jordan Rupprecht
Switches to the config added in #164891 Fixes #55924
2025-11-19[ORC] Remove now unused EPCDebugObjectRegistrar (NFC) (#167868)Stefan Gränitz
EPCDebugObjectRegistrar is unused now that the ELF debugger support plugin uses AllocActions https://github.com/llvm/llvm-project/pull/167866
2025-11-18Fix #168367 (#168635)Pranav Kant
2025-11-18[libc] Implement pkey_alloc/free/get/set/mprotect for x86_64 linux (#162362)Jackson Stogel
This patch provides definitions for `pkey_*` functions for linux x86_64. `pkey_alloc`, `pkey_free`, and `pkey_mprotect` are simple syscall wrappers. `pkey_set` and `pkey_get` modify architecture-specific registers. The logic for these live in architecture specific directories: * `libc/src/sys/mman/linux/x86_64/pkey_common.h` has a real implementation * `libc/src/sys/mman/linux/generic/pkey_common.h` contains stubs that just return `ENOSYS`.
2025-11-18[bazel] fix #168212 (#168598)Pranav Kant
2025-11-18[bazel] Fix #164904 (#168593)Pranav Kant
2025-11-18[bazel] Add MODULE.bazel (#164891)Jordan Rupprecht
This is a simple translation of the current WORKSPACE file. * External repos are replaced with `bazel_dep()`. The versions have been bumped to newer versions. * `maybe()` doesn't seem to be a thing, so I just removed that. * Existing repos where we define our own BUILD file in third_party_build have *not* been replaced due to compatibility issues. For example, `nanobind_bazel` could replace the `nanobind` config we have, but switching to that caused some build errors. * For these existing repos, they have been specified as module extensions This should have no effect since `.bazelrc` defines `common --enable_bzlmod=false --enable_workspace` Tested locally: `bazel test --enable_bzlmod --noenable_workspace --config=generic_clang @llvm-project//... //...`
2025-11-18[BAZEL] Fix OrcDebugging dep (#168540)Alan Li
2025-11-18[BAZEL] Fix BAZEL build issue (#168539)Alan Li
2025-11-18[bazel] Fix #168108 (#168461)Pranav Kant
2025-11-17[bazel][buildifier] reformat changes in #168434 (#168443)Pranav Kant
2025-11-17[mlir][bazel] Fix #167957 (#168441)Pranav Kant
2025-11-17[mlir][bazel] Fix #168066 (#168435)Pranav Kant
2025-11-17[bazel] Fix #168113 (#168434)Pranav Kant
2025-11-17[bazel][libc] Fixes #165219 (#168429)Pranav Kant
2025-11-17[bazel] Port 0a58e49c44ae7cca39b3eb219efed9f0581b8b0f (#168424)Keith Smiley
2025-11-17[bazel] Port 900c517919794ff0ea83c6b15ffe03707a164800 (#168423)Keith Smiley
2025-11-17[bazel] Add support for multiple tblgen outputs (#168158)Keith Smiley
Required after https://github.com/llvm/llvm-project/pull/167700 This adds yet another format for `tbl_outs` where you pass the list of opts, and a list of outputs (where previously you could only have 1 output). In that case all outputs must be produced, but the first is used for the `-o` arg since tblgen is generating the other names based on that single argument.
2025-11-17[mlir][bazel] Fix build after #167848. (#168366)Benjamin Chetioui
2025-11-14[mlir][bazel] Add apfloat test library (#168115)Michael Jones
The apfloat code was added in #167848, and some bazel was added in #167916 but the runtime library for test-apfloat-emulation.mlir was missed. This patch adds the appropriate target.
2025-11-13[libc] Templatize strtofloatingpoint and implement wcstof. (#167755)Alexey Samsonov
This change follows the pattern of 315dfe5865962d8a3d60e21d1fffce5214fe54ef by making strtofloat also accept wchar_t* strings (in addition to regular char*). It uses overloads from wctype_utils or specialized functions to ensure comparison with literal characters (or literal strings) pick char or wchar_t variants based on the argument type. The wcstof implementation is added, with unit test cases copied from strtof test suite.
2025-11-13[bazel] Added `ArithToAPFloat` library to bazel (#167916)Nikolay Panchenko
2025-11-12[bazel] Fix LLDB :Host Build (#167711)Aiden Grossman
On some systems (probably those with a more recent clang), building :Host errors out with a layering check violation due to the histedit.h system include. Opt it out of layering checks for now, similar to other targets that depend on non standard library system includes.
2025-11-12[BLAZE] Add missing SCFUtil dep after #167356 (#167671)Will Froom
2025-11-11[BAZEL] Fix missing GpuDialect dependency added in #166865 (#167503)Will Froom
2025-11-10[bazel][clang] Port #167374: split clang options/driver (#167387)Jordan Rupprecht
2025-11-10Reland "[clang] Refactor option-related code from clangDriver into new ↵Naveen Seth Hanig
clangOptions library" (#167374) This relands #167348. The original PR was reverted due to a reported build failure, which was later diagnosed as a local issue in the developer’s checkout or build state. See discussion here: https://github.com/llvm/llvm-project/pull/163659#discussion_r2511546964 No additional changes have been made in this reland.
2025-11-10[bazel] Port #166980: TLI/VectorLibrary refactor (#167354)Jordan Rupprecht
2025-11-10Revert "[clang] Refactor option-related code from clangDriver into new ↵Naveen Seth Hanig
clangOptions library" (#167348) Reverts #163659 due to missing one reference clang/Driver/Options.h in clang/include/clang/Driver/Driver.h. See https://github.com/llvm/llvm-project/pull/163659#issuecomment-3512979187
2025-11-10[clang] Refactor option-related code from clangDriver into new clangOptions ↵Naveen Seth Hanig
library (#163659) This change moves option-related code from clangDriver into a new clangOptions library. This refactoring is part of a broader effort to support driver-managed builds for compilations using C++ named modules and/or Clang modules. It is required for linking the dependency scanning tooling against the driver without introducing cyclic dependencies, which would otherwise cause build failures when dynamic linking is enabled. In particular, clangFrontend must no longer depend on clangDriver for this to be possible. This PR is motivated by the following review comment: https://github.com/llvm/llvm-project/pull/152770#discussion_r2430756918
2025-11-10[BAZEL] Add missing dependency on /llvm:Support from XeGPUTransformOps (#167332)Will Froom
Fixes 1553f90f93d30b41457097cf274c3791b182f316
2025-11-08Fix bazel build for #166719Walter Lee
2025-11-07[bazel] Add mlir/utils/generate-test-checks.py to bazel overlay (#160693)Tom Murray
2025-11-07[bazel][mlir] Fix transform_xegpu_ext.py test for bazel (#166924)Karlo Basioli
2025-11-07Fix bazel build issue I introduced in #166918 (#166921)Karlo Basioli
2025-11-07Fix bazel build issue from #165615 (#166918)Karlo Basioli
2025-11-06[bazel] Add missing deps for AlignmentAttrInterface.h (#166899)Chenguang Wang
Commit 4a7d3df added `#include "AlignmentAttrInterface.h"` in three places: MemRef.h, SPIRVOps.h, and VectorOps.h; my previous bazel fix 7e9db96 only covered MemRef.h, but not the other two.
2025-11-06[bazel] Fix compilation for AlignmentAttrInterface and BPF. (#166872)Chenguang Wang
2025-11-06Fix openacc bazel build (#166790)Karlo Basioli
2025-11-06Fix bazel build issue caused by #165615 (#166788)Karlo Basioli