IR: Remove trailing space from printed AVR calling convention names
avr_intrcc and avr_signalcc were printed with a trailing space, which
produced a double space before the return type.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Generate peephole.mir's checks
The hand-written checks pinned vreg numbers. The generated ones check the
whole output, so func's CHECK-NOT is covered by its CHECK-NEXT lines.
Assisted-by: Claude Opus 5.5
IR: Add avr_builtincc calling convention keyword
AVR_BUILTIN had no textual IR name so it was printed as "cc86". Use
the same avr_builtincc spelling the MLIR LLVM dialect already uses for
this calling convention.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Fold the undef-use test into peephole.mir
A separate file costs an llc run for one function. Run the file with
-passes while here.
Assisted-by: Claude Opus 5.5
[RISCV] Remove TuneConditionalCompressedMoveFusion from sifive-p870-d. (#245766)
This feature has been disabled in some sifive-p870-d implementations.
When hardware doesn't support this optimization, the branch is treated
as a normal branch and may mispredict. Disable the tuning feature so
that we will use Zicond instructions instead.
[NFC][AMDGPU] Make DsAtomicAsyncBarrierArriveB64PipeBug a target feature
Fixes LCOMPILER-3199.
This PR was assisted by AI but I reviewed all the changes.
[GISel] Use CastTy.getElementType() in LLT::vector calls in bitcastExtractSubvector/bitcastInsertSubvector.
This avoids creating a vector s types on targets that use extended LLTs.
Assisted-by: Claude
[CIR] Enable CallConvLowering for SPIRV triples (#244409)
This PR adds support of spirv* triples to clang CIR pipeline:
- Map `spirv`, `spirv32` and `spirv64` triples (excluding AMD-vendor
SPIR-V, HLSL, and OpenMP device code) to the SPIR-V ABI target in the
clang pipeline, so `cir-call-conv-lowering` pass runs by default for
SPIR-V device code.
- Add clang tests that check SPIR-V argument types, return types, C++
records, SYCL and CUDA kernel arguments, and the Intel vendor triple
against classic codegen, plus a test of which SPIR-V triples run the
pass. Add ClangIR RUN lines to the existing SPIR-V kernel ABI tests.
Assisted by: Claude Opus 5.5
[acc][flang] Query whether a call captures a variable address (#245415)
`OpenACCSupport::isAddressNotCapturedByCalls` reports whether a call
that receives a variable can still use that address after it returns.
The method is optional. The default is false, so the address may be kept
and a client treats the call as an escape.
The FIR implementation answers from the variable's fir.declare. The
result is true for a Fortran user variable that is not TARGET or
POINTER, not host-associated, not accessible to an internal procedure,
and not asynchronous or volatile. intent(in) does not change the result.
A value that is not a Fortran user variable returns false.
[flang][OpenMP] Rank METADIRECTIVEs nested in BEGIN METADIRECTIVE
Inside the body of a BEGIN METADIRECTIVE, semantics does not know which
replacement encloses the code, so it checks every replacement of an
inner METADIRECTIVE against its loop. In
!$omp parallel
!$omp begin metadirective &
!$omp& when(implementation={vendor(llvm)}: target) otherwise(nothing)
!$omp metadirective &
!$omp& when(construct={parallel}: simd collapse(2)) &
!$omp& otherwise(nothing)
do i = 1, n
end do
!$omp end metadirective
!$omp end parallel
the region always selects TARGET, which hides the enclosing PARALLEL,
so the inner METADIRECTIVE always selects NOTHING. The SIMD is still
[13 lines not shown]