[CIR][X86]Implement handling for shiftleft/shiftright builtins in CIR (#176653)
Related to: #167765
---------
Co-authored-by: Roberto Turrado Camblor <rturrado at gmail.com>
[llvm][DebugInfo] Alias DITypeRefArray to DITypeArray (#176938)
These two types serve the same purpose (providing an array-like view
over an `MDTuple`) and are pretty much implemented in the same way
(`DITypeArray` is itself an alias for `MDTupleTypedArrayWrapper`, the
generic array-like wrapper over typed metadata). IIUC `DITypeRefArray`
is a remnant of the old debug-info metadata hierarchy.
This patch aliases `DITypeRefArray` to `DITypeArray`.
In a follow-up patch I'm planning to turn all the `DITypeRefArray`
references into `DITypeArray` and remove the alias entirely. Splitting
this into two makes it easier to review imo
[AMDGPU] Introduce `AMDGPUSubtargetFeature` multiclass to reduce boilerplate (#176981)
Many `SubtargetFeature` definitions in `AMDGPU.td` follow a repetitive
pattern where a `FeatureXYZ` is paired with a `HasXYZ` predicate. This
creates significant code duplication.
This PR introduces `AMDGPUSubtargetFeature` multiclass that generates
both the `SubtargetFeature` and its corresponding `Predicate` from a
single definition. The multiclass accepts an optional `GenPredicate`
parameter (default 1) to skip predicate generation when not needed.
Not converted:
- Features with dependencies - multiclass doesn't support this yet. Will
do it in a follow-up.
- Features with irregular predicates (e.g., Predicate without
`AssemblerPredicate`, negated `Predicate`, complex multi-feature
conditions). For those without `AssemblerPredicate`, this can be done by
adding an extra optional argument to indicate whether
[3 lines not shown]
[lldb][DWARFASTParserClang] RequireCompleteType for ObjC types (#176765)
Currently we forcefully complete C++ types if we can't find their
definition for layout purposes. This ensures that we at least don't
crash in Clang when laying out the type. The definition is required for
types of members/array elements/base classes for the purposes of
calculating their layout. This is also true for Obj-C types, but we
haven't been forcefully completing those.
The test-case that's being un-XFAILed in this patch demonstrates a case
where not completing the super-class forcefully causes a clang crash.
rdar://168440264
[flang] Avoid descriptor conversion for descriptor args with ignore_tkr(c) (#176240)
For descriptor arguments marked with `!dir$ ignore_tkr(c)` we want to
leave them unmodified: don't create another descriptor or change the
existing descriptor.
[MCA] Retire all non-carried-over instructions in InOrderIssueStage (#176686)
Otherwise we might be left with instructions that never retire which can
create some weird results. This showed up originally on the MCA
timeline.
Fixes #176103.
[X86] combineX86ShuffleChainWithExtract - check inputs after resolveTargetShuffleInputsAndMask (#176980)
Make sure resolveTargetShuffleInputsAndMask hasn't removed the need for widening
Fixes #176951
Merge tag 'dma-mapping-6.19-2026-01-20' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux
Pull dma-mapping fixes from Marek Szyprowski:
- minor fixes for the corner cases of the SWIOTLB pool management
(Robin Murphy)
* tag 'dma-mapping-6.19-2026-01-20' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux:
dma/pool: Avoid allocating redundant pools
mm_zone: Generalise has_managed_dma()
dma/pool: Improve pool lookup
[flang][OpenACC] Fix link failure with BUILD_SHARED_LIBS=ON (#176982)
```
/usr/bin/ld: tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROp enACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o: in function `fir::acc ::FIROpenACCSupportAnalysis::isValidValueUse(mlir::Value, mlir::Region&) ':
FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnaly sis15isValidValueUseEN4mlir5ValueERNS2_6RegionE+0xb): undefined referenc e to `mlir::acc::isValidValueUse(mlir::Value, mlir::Region&)' clang++: error: linker command failed with exit code 1 (use -v to see in vocation)
```
[AMDGPU] Introduce `AMDGPUSubtargetFeature` multiclass to reduce boilerplate
Many `SubtargetFeature` definitions in `AMDGPU.td` follow a repetitive pattern where a `FeatureXYZ` is paired with a `HasXYZ` predicate. This creates significant code duplication.
This PR introduces `AMDGPUSubtargetFeature` multiclass that generates both the `SubtargetFeature` and its corresponding `Predicate` from a single definition. The multiclass accepts an optional `GenPredicate` parameter (default 1) to skip predicate generation when not needed.
Not converted:
- Features with dependencies - multiclass doesn't support this yet. Will do it in a follow-up.
- Features with irregular predicates (e.g., `Predicate` without `AssemblerPredicate`, negated `Predicate`, complex multi-feature conditions).
- Features where field name doesn't match the `HasXYZ` pattern.
148 features converted, saving ~529 lines of code.
[Sema][HLSL] Reject empty initializer lists for LHS containing an incomplete array. (#176075)
This PR rejects empty initializer lists when the LHS is or contains an
incomplete array type.
Without this early validation, an assumption would be made that there
was an argument in the initializer list.
This would cause an assertion failure.
Fixes https://github.com/llvm/llvm-project/issues/173076
[HLSL] Handle WaveActiveBallot struct return type appropriately (#175105)
The previous WaveActiveBallot implementation did not account for the
fact that the DXC implementation of the intrinsic returns a struct type
with 4 uints, rather than a vector of 4 uints. This must be respected,
otherwise the validator will reject the uses of WaveActiveBallot that
return a vector of 4 uints.
This PR updates the return type and adds the DXC-specific return type
`fouri32` to use for the intrinsic.