# Debian versions
clang-format-version.diff
clang-analyzer-force-version.diff

# Disabling features
23-strlcpy_strlcat_warning_removed.diff

declare_clear_cache.diff
unwind-chain-inclusion.diff

# Path updates
python-clangpath.diff
fix-clang-path-and-build.diff
0048-Set-html_static_path-_static-everywhere.patch
symbolizer-path.diff
clang-tidy-run-bin.diff
0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch
debug-jit-path.diff

# commented because of bug 903709
#force-gcc-header-obj.diff

do-not-fail-on-unexpected-pass.diff
disable-display-PASS-UNSUPPORTED-XFAIL.diff

# Lib names
0044-soname.diff
lldb/lldb-soname.diff
#lldb-libname.diff
openmp-soname.diff

# Disable some tests
silent-gold-test.diff
silent-more-tests.diff
silent-MCJIIT-tests.diff
silent-gold-utils.diff
silent-test-failing-codeverage.diff
silent-amd-tet.diff
silent-test-macho.diff
silent-llvm-isel-fuzzer.diff
remove-test-freezing.diff
disable-llvm-symbolizer-test.diff
disable-path-test-failing.diff

# Decrease the freq for the keep alive
test-keep-alive.diff

# scan-build
scan-build-clang-path.diff
scan-view-fix-path.diff
fix-scan-view-path.diff

# lldb
lldb/lldb-addversion-suffix-to-llvm-server-exec.patch
lldb/lldb-missing-install.diff
lldb/lldb-disable-swig-error.diff

# Fix arch issue
disable-error-xray.diff

# OpenMP
openmp/openmp-check-execstack.diff

# libcxx
libcxx/libcxxabi-test-don-t-fail-extended-long-double.patch
libcxx/libcxx-test-fix-lockfree-test-for-i386.patch
libcxx/libcxxabi-arm-ehabi-fix.patch
libcxx/libcxx-silent-test-libcxx.diff
libcxx/libcxx-silent-failure-ppc64el.diff
libcxx/libcxx-silent-failure-arm64.diff
libcxx/libcxx-libatomic-only-with-gcc-rtlib.diff
libcxx/libcxxabi-fix-link-builtins.diff
libcxx/libcxx-armhf-ftbfs.diff

# Change default optims
mips/mips-fpxx-enable.diff
mips/mips-force-nomadd4.patch
mips/mips-D101773-reloc.patch
mips/syscall-mips64el-def.diff

26-set-correct-float-abi.diff
clang-baseline-fix-i386.patch
disable-sse2-old-x86.diff
clang-arm-default-vfp3-on-armv7a.patch

# For the bootstrap
clangd-atomic-cmake.patch

# Fix docs
#  https://reviews.llvm.org/D60380
remove-apple-clang-manpage.diff
0049-Use-Debian-provided-MathJax-everywhere.patch

# Hurd port
hurd/hurd-pathmax.diff

# kfreebsd
# kfreebsd/clang_lib_Basic_Targets.diff
# kfreebsd/CMakeLists.txt.diff
# kfreebsd/compiler-rt_lib.diff
# kfreebsd/include_llvm_ADT_Triple.h.diff
# kfreebsd/kfreebsd-libcxx-threads-detection.diff
# kfreebsd/kfreebsd-openmp.diff
# kfreebsd/kfreebsd-threads-build.diff
# kfreebsd/kfreebsd-triple-clang.diff
# kfreebsd/kfreebsd-triple.diff
# kfreebsd/lib_Support.diff
# kfreebsd/lib_Target_X86.diff
# kfreebsd/lldb_source_Host_freebsd_Host.cpp.diff
# kfreebsd/lldb_source_Plugins_Process_FreeBSD.diff
# kfreebsd/tools_llvm-shlib_CMakeLists.txt.diff

930008-arm.diff
bootstrap-fix-include-next.diff

# bug 939472
#try-to-unbreak-thinlto.diff
#D67877-cmake-clang-example.patch

python3-shebang.patch
lldb/print-lldb-path.patch
lower-python-dep.diff
scan-build-py-fix-default-bin.diff

omp-riscv64.patch
lldb/test-disable-lldb-i386.diff
unbreak-atomic-mips.diff
llvm-fix-lld-linker-check.diff
openmp-fix-runtimes-build.diff
libclc-fix-prepare_builtins-rpath.diff
llvm-runtimes-builtins-build-check.diff
issue-54242.diff
protobuf_3.21.patch

# compiler-rt
compiler-rt/compilerrt-builtins-arch-fix-armhf.diff
compiler-rt/compilerrt-build-scudo-standalone-option.diff


# wasm patches
wasm/wasm-ld-path.diff
wasm/wasm-compiler-rt-default.diff
wasm/wasm-sysroot-usr.diff

revert-update-doc.diff
unwind-force-pthread-dl.diff
force-sse2-compiler-rt.diff
bolt-disable-emit-relocs.patch
link-grpc.diff
D158066-simd-ppc64el.patch
ubuntu-releases.patch
libclang-major-version-only.diff
D148945-revert.diff
arm32-defaults.diff
mips/D154390-pre-R6.diff

# These patches{0001~0014}, which add support for `relax` feature on LoongArch
# in LLVM 18, are backported to LLVM 17.
loongarch/relax/0001-lld-LoongArch-Support-the-R_LARCH_-ADD-SUB-6-relocat.patch
loongarch/relax/0002-LoongArch-Add-relax-feature-and-keep-relocations-721.patch
loongarch/relax/0003-LoongArch-Allow-delayed-decision-for-ADD-SUB-relocat.patch
loongarch/relax/0004-LoongArch-Emit-R_LARCH_RELAX-when-expanding-some-Loa.patch
loongarch/relax/0005-MC-LoongArch-Add-AlignFragment-size-if-layout-is-ava.patch
loongarch/relax/0006-LoongArch-RISCV-Support-R_LARCH_-ADD-SUB-_ULEB128-R_.patch
loongarch/relax/0007-LoongArch-Add-relaxDwarfLineAddr-and-relaxDwarfCFA-t.patch
loongarch/relax/0008-LoongArch-Insert-nops-and-emit-align-reloc-when-hand.patch
loongarch/relax/0009-ELF-RISCV-Implement-emit-relocs-with-relaxation.patch
loongarch/relax/0010-lld-ELF-Support-relax-R_LARCH_ALIGN-78692.patch
loongarch/relax/0011-test-Update-dwarf-loongarch-relocs.ll.patch
loongarch/relax/0012-lld-LoongArch-Support-the-R_LARCH_-ADD-SUB-_ULEB128-.patch
loongarch/relax/0013-MC-test-Change-ELF-uleb-ehtable.s-Mach-O-to-use-priv.patch
loongarch/relax/0014-Mips-MC-AttemptToFoldSymbolOffsetDifference-revert-i.patch

# These patches{0001~0042}, which add support for vector on LoongArch in LLVM 18,
# are backported to LLVM 17.
loongarch/vector/0001-Clang-LoongArch-Use-the-ClangBuiltin-class-to-automa.patch
loongarch/vector/0002-LoongArch-Add-LSX-intrinsic-support.patch
loongarch/vector/0003-LoongArch-Add-LASX-intrinsic-support.patch
loongarch/vector/0004-LoongArch-Add-LSX-intrinsic-testcases.patch
loongarch/vector/0005-LoongArch-Add-LASX-intrinsic-testcases.patch
loongarch/vector/0006-LoongArch-Add-testcases-of-LASX-intrinsics-with-imme.patch
loongarch/vector/0007-LoongArch-MC-Add-invalid-immediate-testcases-for-LSX.patch
loongarch/vector/0008-LoongArch-MC-Add-invalid-immediate-testcases-for-LAS.patch
loongarch/vector/0009-LoongArch-Add-testcases-of-LSX-intrinsics-with-immed.patch
loongarch/vector/0010-LoongArch-Reorder-LoongArchTargetLowering-.-NFC.patch
loongarch/vector/0011-LoongArch-Fix-typos.-NFC.patch
loongarch/vector/0012-LoongArch-Set-some-operations-action-for-LSX-and-LAS.patch
loongarch/vector/0013-Clang-LoongArch-Support-compiler-options-mlsx-mlasx-.patch
loongarch/vector/0014-Clang-LoongArch-Add-ABI-implementation-of-passing-ve.patch
loongarch/vector/0015-Clang-LoongArch-Support-the-builtin-functions-for-LS.patch
loongarch/vector/0016-Clang-LoongArch-Support-the-builtin-functions-for-LA.patch
loongarch/vector/0017-LoongArch-CodeGen-Add-LSX-builtin-testcases.patch
loongarch/vector/0018-LoongArch-CodeGen-Add-LASX-builtin-testcases.patch
loongarch/vector/0019-LoongArch-Add-codegen-support-for-extractelement-737.patch
loongarch/vector/0020-LoongArch-Add-some-binary-IR-instructions-testcases-.patch
loongarch/vector/0021-LoongArch-Add-codegen-support-for-insertelement.patch
loongarch/vector/0022-LoongArch-Custom-lowering-ISD-BUILD_VECTOR.patch
loongarch/vector/0023-LoongArch-Add-more-and-or-xor-patterns-for-vector-ty.patch
loongarch/vector/0024-LoongArch-Add-some-binary-IR-instructions-testcases-.patch
loongarch/vector/0025-LoongArch-Override-TargetLowering-isShuffleMaskLegal.patch
loongarch/vector/0026-Reland-LoongArch-Support-CTLZ-with-lsx-lasx.patch
loongarch/vector/0027-LoongArch-Support-MULHS-MULHU-with-lsx-lasx.patch
loongarch/vector/0028-LoongArch-Make-ISD-VSELECT-a-legal-operation-with-ls.patch
loongarch/vector/0029-LoongArch-Add-codegen-support-for-icmp-fcmp-with-lsx.patch
loongarch/vector/0030-LoongArch-Make-ISD-FSQRT-a-legal-operation-with-lsx-.patch
loongarch/vector/0031-LoongArch-Mark-ISD-FNEG-as-legal.patch
loongarch/vector/0032-LoongArch-Add-codegen-support-for-X-VF-MSUB-NMADD-NM.patch
loongarch/vector/0033-LoongArch-Fix-LASX-vector_extract-codegen.patch
loongarch/vector/0034-LoongArch-Fix-incorrect-pattern-XVREPL128VEI_-W-D-in.patch
loongarch/vector/0035-LoongArch-Fix-incorrect-pattern-X-VBITSELI_B-instruc.patch
loongarch/vector/0036-Clang-LoongArch-Do-not-pass-vector-arguments-via-vec.patch
loongarch/vector/0037-LoongArch-Permit-auto-vectorization-using-LSX-LASX-w.patch
loongarch/vector/0038-CodeGen-LoongArch-Set-SINT_TO_FP-UINT_TO_FP-to-legal.patch
loongarch/vector/0039-CodeGen-LoongArch-Set-FP_TO_SINT-FP_TO_UINT-to-legal.patch
loongarch/vector/0040-LoongArch-Fixing-the-incorrect-return-value-of-Loong.patch
loongarch/vector/0041-LoongArch-Pre-commit-test-for-76913.-NFC.patch
loongarch/vector/0042-LoongArch-Implement-LoongArchRegisterInfo-canRealign.patch

# Backport some support for compiler-rt on LoongArch from LLVM 18.
loongarch/compilerRT/0001-sanitizer-msan-VarArgHelper-for-loongarch64.patch
loongarch/compilerRT/0002-Driver-Support-fsanitize-cfi-icall-on-loongarch64-67.patch
loongarch/compilerRT/0003-LowerTypeTests-Add-loongarch64-to-CFI-jumptables-673.patch
loongarch/compilerRT/0004-CFI-Allow-LoongArch-67314.patch
loongarch/compilerRT/0005-test-compiler-rt-Mark-several-tests-as-UNSUPPORTED-o.patch
loongarch/compilerRT/0006-tsan-Add-support-for-linux-loongarch64-in-lib-tsan-g.patch
loongarch/compilerRT/0007-tsan-Refine-fstat-64-interceptors-86625.patch

# Backport some bugfixes on LoongArch from LLVM 18.
loongarch/bugfix/0001-Clang-LoongArch-Generate-_mcount-instead-of-mcount-6.patch
loongarch/bugfix/0002-LoongArch-Fix-td-pattern-for-CACOP-LDPTE-and-LDDIR.patch
loongarch/bugfix/0003-LoongArch-test-Add-some-ABI-regression-tests-for-emp.patch
loongarch/bugfix/0004-LoongArch-Fix-ABI-mismatch-with-gcc-g-about-empty-st.patch
loongarch/bugfix/0005-LoongArch-Pre-commit-test-for-issue-70890.patch
loongarch/bugfix/0006-LoongArch-Fix-ABI-mismatch-with-g-when-handling-empt.patch
loongarch/bugfix/0007-Driver-Default-LoongArch-to-fno-direct-access-extern.patch
loongarch/bugfix/0008-LoongArch-MC-Refine-MCInstrAnalysis-based-on-registe.patch
loongarch/bugfix/0009-LoongArch-NFC-Pre-commit-MCInstrAnalysis-tests-for-i.patch
loongarch/bugfix/0010-LoongArch-Set-isBarrier-to-true-for-instruction-b-72.patch
loongarch/bugfix/0011-LoongArch-MC-Pre-commit-tests-for-instr-bl-fixupkind.patch
loongarch/bugfix/0012-LoongArch-MC-Support-to-get-the-FixupKind-for-BL-729.patch
loongarch/bugfix/0013-LoongArch-MC-Modify-branch-evaluation-for-MCInstrAna.patch
loongarch/bugfix/0014-LoongArch-Precommit-a-test-for-smul-with-overflow-NF.patch
loongarch/bugfix/0015-LoongArch-Disable-mulodi4-and-muloti4-libcalls-73199.patch
loongarch/bugfix/0016-LoongArch-Fix-pattern-for-FNMSUB_-S-D-instructions-7.patch
loongarch/bugfix/0017-LoongArch-Fix-the-procossor-series-mask.patch
loongarch/bugfix/0018-LoongArch-Make-sure-that-the-LoongArchISD-BSTRINS-no.patch
loongarch/bugfix/0019-Clang-LoongArch-Precommit-test-for-fix-wrong-return-.patch
loongarch/bugfix/0020-Clang-LoongArch-Fix-wrong-return-value-type-of-__ioc.patch

# Backport some significant improvements on LoongArch from LLVM 18.
loongarch/improve/0001-LoongArch-Improve-codegen-for-atomic-ops-67391.patch
loongarch/improve/0002-LoongArch-Add-some-atomic-tests-68766.patch
loongarch/improve/0003-LoongArch-Support-finer-grained-DBAR-hints-for-LA664.patch
loongarch/improve/0004-LoongArch-Precommit-a-test-for-atomic-cmpxchg-optmiz.patch
loongarch/improve/0005-LoongArch-Improve-codegen-for-atomic-cmpxchg-ops-693.patch
loongarch/improve/0006-LoongArch-Override-LoongArchTargetLowering-getExtend.patch
loongarch/improve/0007-Memory-Call-__clear_cache-in-InvalidateInstructionCa.patch
