[DirectX][NFC] Use addSection to create SRCI in DXContainerGlobals (#204028)
A tiny follow-up for #202761.
Use `addSection()` helper function to create a global for SRCI part.
[llvm-objcopy][DirectX][NFC] Reuse isProgramPart() in DXContainerObjcopy (#204032)
#201423 introduced a helper function to determine if a given
DXContainer part name is DXIL or ILDB (i.e. a program part).
Reuse it everywhere.
[RFC][IR] Extract AMDGPU-specific verification logic into `VerifierAMDGPU.cpp`
`Verifier.cpp` is large and already mixes generic IR verification with
target-specific checks. We also have a growing amount of AMDGPU verifier logic
downstream, which would all end up in the same file if we don't address this,
and that is not ideal.
This patch extracts AMDGPU-specific verification logic into a separate
`VerifierAMDGPU.cpp` file, with shared infrastructure (`VerifierSupport`) moved
into `VerifierInternal.h`.
This is purely a code organization change, not a target-dependent IR verifier.
All checks remain compiled and linked into `LLVMCore` regardless of the target
triple. The extracted functions are called unconditionally at well-defined
extension points in `Verifier.cpp`, and each function internally gates on
target-specific conditions (for example, triple checks or intrinsic IDs) as
needed. The file is strictly limited to AMDGPU-specific IR constructs (amdgcn
intrinsics, AMDGPU module flags, etc.), and does not contain generic IR rules
that vary by target.
[10 lines not shown]
[docs] Remove myself from security response (#203061)
I haven't really been active in this group, so I think it's best for me
to voluntarily leave. My affiliations are still covered by others, and
anyway I think cross-cutting issues (e.g. with Rust) should pull in
those orgs rather than relying on direct membership.
[OpenMP] Introduce the ompx_name clause for kernel naming
This adds support for the ompx_name clause that allows users to specify
custom kernel names for OpenMP target offloading regions. The clause
accepts a string literal and overrides the default compiler-generated
kernel names.
Example usage:
#pragma omp target ompx_name("my_kernel")
{ ... }
Kernel names need to be unique or they are diagnosed at compile or link
time as errors.
Co-Authored-By: Claude (claude-sonnet-4.5) <noreply at anthropic.com>
[MLIR][XeGPU] Update layout for simple_mxfp_gemm_dequantizeB_F4.mlir (#203636)
Update layout to proper values to enable lowering of the test case on
CRI with gpu to xevm lowering pipeline.
[Matrix][HLSL] Fix transpose matrix layout bugs (#202486)
This change will resolve https://github.com/llvm/wg-hlsl/issues/305
It is a two-part change. First, we had a bug. The transpose builtin was
previously only considering the Src for RowMajor when we also need to
consider the Dst RowMajor.
The second issue was the return stmt needs us to re-type the call with
the sugared typed. We only want to do this for what I am calling Layout
Adapting Matrix Builtins ie transpose and matrix multiply builtins.
Assisted by Claude Opus 4.8
[LLVM] Register static pass plugins in LLVMRunPasses C-API (#196754)
LLVMRunPasses and LLVMRunPassesOnFunction create their own PassBuilder,
but did not register statically linked pass plugin callbacks from
Extension.def. This made C API pipelines fail to parse passes provided
by statically linked plugins, even when the same plugins were available
to opt and LTO.
Register the static extension callbacks after constructing the
PassBuilder, matching opt's NewPMDriver behavior.
Add coverage using the Bye plugin when it is linked into tools.
---------
Co-authored-by: Vadmeme <invalid at example.com>
[InstCombine] Fold constant shift/mul into select arms for mul instruction (#196872)
Fixes llvm#190907
Extends the optimization reported to cover four symmetric
patterns where one operand of a multiplication is a constant shift or
multiply, and the other is a select with constant arms.
Instead of keeping the outer shl/mul, the constant is pushed into the
select arms:
```
(shl X, C1) * (select cond, C2, C3) --> X * (select cond, C2<<C1, C3<<C1)
(mul X, C1) * (select cond, C2, C3) --> X * (select cond, C2*C1, C3*C1)
```
(Also handles their commuted forms )
Alive2 Proof :https://alive2.llvm.org/ce/z/dwTXJw
[clang][AST] Adding Release Note for Attributed Type Dedupe Fix (#204384)
https://github.com/llvm/llvm-project/pull/200961 fixed a regression that
could lead to significant increase in pcm/pch sizes and load time. This
PR adds a release note.
tcp.fastopen.client_enable: Fix documented default
The default value has been 1 since June 2018, but the docs were not
updated to reflect the change.
MFC after: 3 days
Reviewed by: ziaee
Fixes: af4da5865557 (Enable TCP_FASTOPEN by default)
Signed-off-by: Matteo Riondato <matteo at FreeBSD.org>
Closes: https://github.com/freebsd/freebsd-src/pull/2285
Ensure oath users file entries are always valid
If we have an invalid TOTP entry (interval not supported by
liboath) then lookups will fail with OATH_UNKNOWN_USER, which
is an incorrect response when we'd expect rather to have an
explicit failure mode. API model / more thorough changes are
tracked in NAS-141431.
(cherry picked from commit 416fb338554797a2fc6c47e647b0e3840e999fc2)
NAS-141437 / 27.0.0-BETA.1 / Ensure oath users file entries are always valid (#19159)
If we have an invalid TOTP entry (interval not supported by liboath)
then lookups will fail with OATH_UNKNOWN_USER, which is an incorrect
response when we'd expect rather to have an explicit failure mode. API
model / more thorough changes are tracked in NAS-141431.