[clang][NFC] Replace includes of "Attrs.inc" with "Attr.h" (#180356)
"clang/AST/Attrs.inc" is not a self-contained header and is not intended
to be included directly. Instead, "clang/AST/Attr.h" is the header that
users need.
[lld][ELF] Remove redundant size check in nopInstrFill
We checked twice of size is equal to zero. This is not necessary and
makes the code a little bit less readable.
Reviewers: MaskRay, tmsri
Pull Request: https://github.com/llvm/llvm-project/pull/180304
[InferAddressSpaces] Initialize op(generic const, generic const, ...) -> generic (#172143)
Fixes #171890
If the pointer operands of an instruction are all constants with generic
AS, we always infer the AS of the instruction as uninitialized finally.
And the rewrite process will skip cloning the instruction, producing
invalid IR.
This patch fixes it by inferring the AS of this kind of instruction as
flat. Maybe we can fold the operator with all constants to get better
performance, but I think this case is rare in the real world.
[HIP][Sema] Fix incorrect CK_NoOp for lvalue-to-rvalue conversion in … (#180314)
…builtin args
The HIP implicit address space cast for builtin pointer arguments used
CK_NoOp to convert lvalue args to rvalues.
This caused an assertion failure in LifetimeSafety analysis:
Assertion `Dst->getLength() == Src->getLength()` failed
in FactsGenerator::flow() in some cases.
Use DefaultLvalueConversion which correctly emits CK_LValueToRValue.
Refactor InstallUpdate.read_output() and consolidate dialog windows
This commit simplifies the package update installation process and standardizes window close behavior across the application.
Frontend refactoring (frontend.py):
- Moved subprocess creation from frontend to backend via command_output()
- Extracted read_output() into focused helper methods:
* process_output() - runs commands and reads stdout line-by-line
* log_failure() - writes error details to update.failed file
* needs_reboot() - checks if installed packages require reboot
* is_pkg_only_update() - detects pkg-only updates
* install_packages() - handles install with retry logic for temp file failures
* fetch_packages() - downloads package updates
* bootstrap_major_upgrade() - bootstraps pkg for major version upgrades
* prepare_backup() - creates ZFS boot environment backups
- Improved returncode==3 retry logic: delete failed packages, collect for
reinstall after upgrade completes (max 5 retries)
- Fixed race condition: replaced `if proc.poll() is not None` with
`if not line: break` for EOF detection, then proc.wait()
[25 lines not shown]
Fix PSTL backend (names) in __config_site
Upstream libc++ renamed these macros in the following commit:
https://github.com/llvm/llvm-project/commit/d423d80
We had the correct names in the libcxx* makefiles, so no ABI changes are
required.
Reported by c2qd and also provided the __config_site diff. OK robert@
[GlobalISel] add G_ROTL, G_ROTR to computeKnownBits (#166365)
Adresses one of the subtasks of #150515.
The code is ported from `SelectionDAG::computeKnownBits` and tests are
loosely based on `AArch64/GlobalISel/knownbits-shl.mir`.