aboutsummaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2025-12-01[MLIR|BUILD]: Fix for 8ceeba838 (#170110)Sohaib Iftikhar1-0/+1
2025-11-30[bazel] Port #169873 (#170027)Aiden Grossman1-0/+1
A new dependency was added.
2025-11-28[ARM] Auto-decode pred operands of Thumb instructions (#156540)Sergei Barannikov1-4/+1
Most predicable Thumb instructions do not encode the predicate operand, but rather take it from an enclosing IT block. Add `bits<0> p` to the encoding of these instructions to make the predicate operand decodable by the generated code. The previous approach was to analyze an instruction after it has been decoded and add missing predicate operand if necessary. The post-decoding pass is still required to check predicate applicability and advance IT block state, but it no longer modifies a decoded instruction. Some of the custom decoder methods have become redundant and can be removed in the future, delegating the decoding task to TableGen-erated decoder. Pull Request: https://github.com/llvm/llvm-project/pull/156540
2025-11-27[mlir:bazel] Fix build broken by #169670. (#169804)Ingo Müller1-0/+1
This PR adds a dependency to the `BUILD` files overlay silently added by #169670. Signed-off-by: Ingo Müller <ingomueller@google.com>
2025-11-26[bazel] Fix build after #169086 (#169725)Aiden Grossman1-0/+6
Just required wiring up some additional AMDGPU table generated files.
2025-11-26Reland "[clang] Refactor to remove clangDriver dependency from clangFrontend ↵Naveen Seth Hanig1-1/+1
and flangFrontend" (#169599) This relands #165277 by reverting #169397. This also relands the corresponding Bazel port by reverting #169410. The original revert was due to a report of a broken build, which was later resolved by fully clearing the build directory.
2025-11-25[bazel] Add alias for zlib-ng for WORKSPACE compat (#169530)Keith Smiley1-0/+5
The consumer of zlib in third-party/BUILD.bazel expects zlib-ng from the BCR, if you still load this version from your WORKSPACE / MODULE.bazel you need to use this name instead.
2025-11-25[bazel] Delete redundant visibility (#169493)Walter Lee1-1/+0
default_visibility is already public.
2025-11-24[bazel] Use zlib-ng from the BCR (#169450)Keith Smiley8-41/+39
This way if a downstream project also uses this, it is dedup'd
2025-11-24[bazel][libc] Remove target compatibility restrictions for float128 (#169292)Chandler Carruth1-5/+0
The restrictions here aren't nearly as much about the OS as the compiler and architecture, but the Bazel restriction was OS-based. Everything seems to work well on even Arm64 macOS, and I would expect most BSDs and other OSes to work well with Clang's support on x86-64. The source code here already handles detecting when there is compiler support for the type. And the users of this don't `select` or do anything else to conditionally include the header, so it seems better to not restrict access to the header from the build system, and instead continue making the source code compatible or a no-op on relevant configurations.
2025-11-24[bazel] Use zstd from the BCR (#169146)Keith Smiley8-40/+95
This way if the downstream consuming project uses zstd we make sure they are dedup'd. This uses a new rule to make sure layering_check still works while allowing us to augment the upstream library rules with LLVM specific `defines`.
2025-11-24[bazel][clang] Port dea330b38d9c18b68219abdb52baaa72c9f1103d (#169410)Jordan Rupprecht1-1/+1
2025-11-24[mlir:x86vector:transform] Fix bazel build (again) after #168074. (#169316)Ingo Müller1-0/+8
This is a second attempt to fix the bazel build (after the first in #169294, which was accidentally merged before CI passed). In the first attempt, not all bazel dependencies had been added; this PR should add them all and make CI pass. Signed-off-by: Ingo Müller <ingomueller@google.com>
2025-11-24[mlir:x86vector:transform] Fix bazel build after #168074. (#169294)Ingo Müller1-0/+41
This PR fixes the bazel build that went out of sync with the changes introduced in #168074. Signed-off-by: Ingo Müller <ingomueller@google.com>
2025-11-23[bazel] Fully port 3773bbe9e7916ec89fb3e3cd02e29c54cabac82b (#169247)Aiden Grossman3-1/+3
e5edb512072bc040face27ed6c9e92f4a5f1e910 attempted to port this, but seemed to miss a couple things that still showed up on CI. This patch fixes up the missing pieces.
2025-11-23[bazel] Port 3773bbe9e7916ec89fb3e3cd02e29c54cabac82bBenjamin Kramer4-2/+14
2025-11-21[bazel] Remove old config option (#169133)Keith Smiley1-3/+0
The default of this has been flipped since we're on 8.x
2025-11-21[bazel][ORC] Port #168518: orc deps (#169059)Jordan Rupprecht1-0/+1
2025-11-21[clang][NFC] Inline Frontend/FrontendDiagnostic.h -> ↵Jordan Rupprecht1-0/+1
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 Rupprecht1-1/+1
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 Smiley2-12/+18
Just staying up to date
2025-11-20[bazel] Add explicit dep on protobuf (#168928)Keith Smiley3-7/+359
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 Smiley1-215/+0
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 Rupprecht1-0/+4
2025-11-19[bazel] Fix #165009 (#168804)Pranav Kant1-0/+11
2025-11-19[bazel] Fix bzlmod reference to @vulkan_sdk (#168767)Jordan Rupprecht3-4/+4
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 Rupprecht2-17/+15
Switches to the config added in #164891 Fixes #55924
2025-11-19[ORC] Remove now unused EPCDebugObjectRegistrar (NFC) (#167868)Stefan Gränitz2-3/+3
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 Kant1-0/+4
2025-11-18[libc] Implement pkey_alloc/free/get/set/mprotect for x86_64 linux (#162362)Jackson Stogel3-1/+111
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 Kant1-0/+4
2025-11-18[bazel] Fix #164904 (#168593)Pranav Kant1-0/+10
2025-11-18[bazel] Add MODULE.bazel (#164891)Jordan Rupprecht3-0/+655
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 Li1-0/+1
2025-11-18[BAZEL] Fix BAZEL build issue (#168539)Alan Li1-0/+1
2025-11-18[bazel] Fix #168108 (#168461)Pranav Kant1-0/+4
2025-11-17[bazel][buildifier] reformat changes in #168434 (#168443)Pranav Kant1-1/+1
2025-11-17[mlir][bazel] Fix #167957 (#168441)Pranav Kant1-0/+3
2025-11-17[mlir][bazel] Fix #168066 (#168435)Pranav Kant1-0/+1
2025-11-17[bazel] Fix #168113 (#168434)Pranav Kant1-0/+4
2025-11-17[bazel][libc] Fixes #165219 (#168429)Pranav Kant1-0/+1
2025-11-17[bazel] Port 0a58e49c44ae7cca39b3eb219efed9f0581b8b0f (#168424)Keith Smiley1-0/+4
2025-11-17[bazel] Port 900c517919794ff0ea83c6b15ffe03707a164800 (#168423)Keith Smiley1-0/+4
2025-11-17[bazel] Add support for multiple tblgen outputs (#168158)Keith Smiley2-342/+1187
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 Chetioui1-0/+1
2025-11-14[mlir][bazel] Add apfloat test library (#168115)Michael Jones1-0/+23
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 Samsonov1-0/+1
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 Panchenko1-0/+20
2025-11-12[bazel] Fix LLDB :Host Build (#167711)Aiden Grossman1-0/+1
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 Froom1-0/+1