This is an automated email from the git hooks/post-receive script.
tcwg-buildslave pushed a change to branch linaro-local/ci/tcwg_kernel/llvm-master-arm-lts-allyesconfig in repository toolchain/ci/llvm-project.
from 5599c43124c5 GlobalISel: Swap order of operand checks in ConstantFoldVe [...] adds 7294d7dae7c0 [mlir] Fix bazel build of GPU dialect adds f100bedb0362 [mlir][linalg] Insert a cast for identity linalg.generics [...] adds ff5de8a9e0e5 [linalg][fusion] Disallow fusion when it would create an i [...] adds 17beee44e19b [LangRef] Clarify that inaccessiblememonly functions are a [...] adds e847b30369ad [flang] runtime error on inappropriate OPEN(UNIT=extant,RECL=n) adds 047884e71e67 [flang] runtime: catch OPEN(ACCESS='DIRECT',POSITION=) adds 167af7bbfe2d [MemoryBuiltins] Demote isMallocLikeFn to implementation r [...] adds fcab2d130939 Revert "[MemoryBuiltins] Demote isMallocLikeFn to implemen [...] adds ca6c9e43ea9c [OpenMP] Remove hidden visibility for declare target variables adds 4863fed933c3 [Libomptarget] Fix external visibility for internal variables adds 215bd469058e [MemoryBuiltins] Demote isMallocLikeFn to implementation r [...] adds a56796157498 [flang] Better messages for function vs. array errors adds e5347f2556cb [lld-macho] Allow deduplicate-literals to be overridden adds 355acf2bef0e [bazel] Port 755dc07d69ed adds fa40c53960e2 [llvm-jitlink] Prevent dead-stripping of test callback adds e3dd47f987e7 AMDGPU: Fix using deprecated buffer intrinsics in test adds b6a93967d9c1 [NFC][libunwind] Fix uintptr_t vs size_t confusion for lengths adds eafd34581f58 [ELF] Simplify/optimize EhInputSection::split adds d230848a85a9 [lldb] Print an error message when we're reading libobjc.A [...] adds 5f404a749a84 [ELF] De-template InputSectionBase::getLocation. NFC adds 76b74236c7f9 Update bitcode format doc to mention that a multi-module b [...] adds c8ecf12bc3e4 [Coroutines] Offering llvm.coro.align intrinsic adds 2e2999cd44f6 [NFC] Test commit to verify commit access. adds ff0b634d97b9 [CSSPGO] Print "context-nested" instead of "preilnined" fo [...] adds 7ed95d157755 [debug-info] Add support for llvm.dbg.addr in DIBuilder. adds a00f3e2d09af [libc++] Re-enable the _BitInt test for std::atomic on Clang 14 adds d5db25fb1d08 [mlir][textmate] Add support for function visibility adds a94739985b2c [libcxx][test] test _LIBCPP_VERSION with #ifdef, not #if adds 41574554257b [mlir][Pass] Deprecate FunctionPass in favor of OperationP [...] adds d288656368e3 [mlir] Mark FunctionPass as deprecated using the C++14 dep [...] adds a56a7d99e859 [MLIR][OpenMP] Support schedule chunk size with various bit width adds 196c4279c08d [flang] Convert uses of FunctionPass to OperationPass<FuncOp> adds b0cd3abf032e [libc] Remove as_double usage as constant initializations [...] adds 7ceffae18c43 [mlir] Convert OpTrait::FunctionLike to FunctionOpInterface adds 5a4bf4c2b33f [BOLT][CMAKE] Use BOLT_CLANG_EXE and BOLT_LLD_EXE as is adds d7c8d51f9413 [libc][Obvious] Add -Wno-c++17-extensions to sinf, cosf an [...] adds 9f27941c2fbb [RISCV] Add patterns for vector narrowing integer right sh [...] adds 3df97bfebc8e Fix GCC 5 MLIR Build (NFC) adds 84944b63f36e [ELF] Simplify ObjFile<ELFT>::initializeSections. NFC adds a0262043bb87 Revert "[clang][dataflow] Add a test to justify skipping p [...] adds 41d05e29c04f [mlir][tosa] Add tosa.clamp as no-op canonicalization adds 288082d45d61 [ELF] Move SHT_REL/SHT_RELA handling from createInputSecti [...] adds f3471dc51769 [llvm-objcopy] Preserve ARM and AArch64 mapping symbols adds 7af959673e67 [AMDGPU] Tweak some compares in wave32.ll test adds 05fffac1f9ad [NFC][XCOFF] commit tests for D113552. adds b9d85a52317e [NFC][XCOFF] remove the tool name `yaml2obj` in the test. adds b83c67d97894 [mlir][linalg][bufferize] Support scf.execute_region buffe [...] adds 480a1fab72f4 [clang-format] Fix incorrect alignment of operator= overloads. adds b44defa5a596 [mlir][linalg][bufferize] Generalize destination-passing s [...] adds be8742b6c9c7 [mlir][linalg][bufferize][NFC] Merge AllocationCallbacks i [...] adds 8dfb417e67e3 [AMDGPU] Fix missing waitcnt issue adds acd4b0359097 Revert "Revert "[clang][dataflow] Add a test to justify sk [...] adds 165e36bf180e [VPlan] Assert can IV is only used by increments during ep [...] adds 89103bd2f06d [libc++] Fix GDB pretty printers when GDB uses Python 2.7 adds a8890995ee67 [X86][AVX] LowerFunnelShift - improve FSHL/FSHR per-elemen [...] adds ed21c9276a4c [mlir] Introduce Python bindings for the PDL dialect adds a115bbea9b0c [Attributor] Remove notional overindexing check adds d56b0ad441a3 [ConstantHoist] Remove check for notional overindexing adds ed0cdb29397e [Constants] Remove unused isGEPWithNoNotionalOverIndexing( [...] adds 0731f6ba4f57 [Doc] Add documentation for the clang-offload-wrapper tool (NFC) adds 93e8cd26857a [IR] Remove NumElements tracking from GEP type iterator adds d544a89a3764 [LoopFlatten] Update MemorySSA state adds da61cb019eb2 [Attributes] Make attribute addition behavior consistent adds 6ee965471363 [Doc] Fix wrong indentation adds a2f488c6a5ce [clang][AVR] Implement '__flashN' for variables on differe [...] adds d8bff13a8a68 [NFC] Add missing <map> includes adds 42a68215a129 [AttrBuilder] Change storage to sorted vector (NFC) adds 6eb8fc924485 [X86] Add some missing dependency-breaking zero idiom patt [...] adds 6ff4af8e1823 [lldb] Fix D114722 for python<=3.6 adds 8bfa7a6dcc27 [lldb] Fix NativeThreadLinux to build with older compilers adds b2a162e63bd7 [lldb] Remove the requirement for windows clients to speci [...] adds 903424532f0b [lldb] Introduce SBPlatform::SetSDKRoot adds 26f81984e797 [DSE] Handle inaccessiblememonly calloc adds 5ba73c924df8 [BuildLibCalls] Mark calloc as inaccessiblememonly adds d6b073483712 [NFC] Use Register instead of unsigned adds 0bc14a0a989f [AMDGPU] Tweak some compares in wqm.ll test adds 19c3026891e8 [mlir] Fix PDL python bindings build adds 31355482e518 [mlir][linalg][bufferize][NFC] Split analysis-related code [...] adds cae932b6c6d3 [clangd] Sort targets before printing for tests adds 73cc8dd2d7d3 [bazel] Port 7ceffae18c43 adds 6c78703e3abc [AST] Fix the incorrect auto-keyword loc for constrained a [...] adds 579c4921c010 [bazel] Fix the python bindings for 7ceffae18c43 adds d649faff9c0c [LLD][COFF] Support GNU style == aliases adds f41d2d9469d6 [AVR] Remove redundant dynalloca SP save/restore pass adds 3d59d94a206a [AVR] Mark call-clobbered registers as clobbered in interr [...] adds ca27b026f990 [AVR] Do not clear r0 at interrupt entry adds 5ea98988c65b [clang-format] [docs] Fix link to avoid redirection. NFC. adds cd0a923b4c0c [mlir][linalg][bufferize][NFC] Move analysis-related code [...] adds 367c4ed2f8c3 [flang][NFC] Fix includes order adds 64d7d5a59787 [flang][NFC] Remove number of inlined elements adds 6df82597af78 [flang][NFC] Fix indentation adds db04d3e30b38 [AArch64][SVE][VLS] Move extends into arguments of comparisons adds dc18c5fa97e1 [JITLink] Add RISCV label subtraction and addition relocations adds 881b6a009fb6 [analyzer][NFC] Re-enable skipped SValTests by relaxing ex [...] adds c740a07863b4 [LoopVectorize] Test in-loop reductions with tail folding [...] adds 016022e5daa8 Recommit "[LoopFlatten] Move it to a LoopPassManager" adds f269ec230e2b [LoopFlatten] Move it from LPM2 to LPM1 adds 9c4e93c71a80 [LLDB] Adjust compiler-full-path.test for Windows/Arm64 adds 4dc4815f5613 [MemCpyOpt] Add some debug output to call slot optimization (NFC) adds 0db30adcfbaa [MemCpyOpt] Test invalid noalias metadata after call slot [...] adds 55b702c37b7e [clangd] NFC, emit source ranges in selection debug messages. adds 7f26a1027f0c AMDGPU/GlobalISel: Introduce pseudo to copy sp in call sequences adds b965617ccc36 GlobalISel: Fix assert on unmerge to different element of [...] adds 63eea41de63a [AMDGPU] Simplify SILoadStoreOptimizer::getSubRegIdxs. NFC. adds adab71711ea9 AMDGPU/GlobalISel: Fix legalize failure on i65 ctpop adds b8cb79404b55 [LangRef] Mangle all vector operands in insert/extract intrinsics adds e35c8f541cfa [openmp][amdgpu] Temporarily disable tests on old runtime adds 4f89157b9d73 [lldb] Make StatsDuration thread-safe adds 052503979e98 AMDGPU/GlobalISel: Fix introducing f16 fmed3 for gfx8 adds ca84c43d6955 [openmp][amdgpu] Disable tests on old runtime, enable test [...] adds aaa50e54e60f [gn build] port b2a162e63bd73 (liblldb.dll) adds 8baf4ba89085 [openmp][amdgpu] Remove xfail from test using declare targ [...] adds 14a793ab0589 [lit] Fix compatibility with upstream gtest adds d261660af96d Fix the use of -fno-approx-func along with -Ofast or -ffast-math adds 7260a926cfd8 [gn build] link lldb-vscode against ws2_32.lib adds 8e53ae3d3719 [clang][dataflow] Add a transfer function for conditional [...] adds 9fbd33ad623d [OMPIRBuilder] Add support for simd (loop) directive. adds cc639dde8c6d [gn build] port c22329972f02 (lldb REPL/Clang) adds 1324bb29f7ce [PowerPC] Fix issue with strict float to int conversion. adds bfed654e9888 [LLVM-C] Use NameLen in LLVMGetNamedGlobalAlias adds 89a92fb3ba66 [mlir] Rework subclass construction in PybindAdaptors.h adds 5ad96992ef90 [mlir][cmake] Use `GNUInstallDirs` to support custom insta [...] adds 3062a1469da0 [AIX] identify big archive magic as archive. Summary: adds 5fa826f4e284 [RISCV] Test expected inst opcode in sink-splat test adds ce9f2ab0cc4d [X86] Add mul(x,x) self-multiply known bits test coverage [...] adds d6fee6c3b0e7 [DAG] SelectionDAG::computeKnownBits - add mul(x,x) self-m [...] adds 32842c1bc9cd [CMake] Add explicit return to GetErrcMessages test program adds 85c2bd2a0e0e Prevent adding module flag amdgpu_hostcall multiple times adds eb5c0ea68180 [lldb] Initialize Python exactly once adds baa9b7c3c83a unique_ptrify the ModuleManager's VisitState linked list adds d492a7b2cac3 [mlir][Linalg] Add a useLinalgCopy option to Linalg buffer [...] adds d838bf2adc9c [ELF] Allow non-bitcode archive with an empty index adds 15f54dd5e496 AMDGPU: Account for usage HIP-style dynamic LDS adds f2dac557f574 [flang] Intrinsic assignment of distinct but "same" derived types adds fd0782a37bbf [DebugInfod] Prefix debuginfod cache directory adds 88d81770f110 [InstrProf] Restore InstrProfData.inc to fix Fuchsia builds adds 4f61749e16f6 [clang] support relative roots to vfs overlays adds 0aae2bf37318 [lld-macho] Add --start-lib --end-lib adds 81c66933292b [flang] Prevent any non constant result extent to be inlin [...] adds a4bdeb9a5634 [clang-tidy][NFC] replace some redundant std::string creations adds ccb09a48891f Fix broken comment in InstrProfData.inc adds a01523ea9939 [libc] improve error message for unsupported target platforms adds c167fa4a4f36 [dsymutil] Print the swift interface modification time in warning adds 4060b81e76e6 [RISCV] Obey -riscv-v-fixed-length-vector-elen-max when lo [...] adds d9edc1a585d7 [mlir][spirv] Add math.fma lowering to spirv adds 7cca13bc3a02 [PartialInline] Bail out on asm-goto/callbr adds e67430cca404 [MLGO] ML Regalloc Eviction Advisor adds bb8e7ebaad0d [BOLT] Remove unreachable uncond branch after return adds a9935b5db706 [openmp] Unconditionally set march commandline argument adds b9b10c0e615f [tosa][mlir] Lowering for dynamic shapes in the reduce_x o [...] adds c4017f9d0cf2 [mlir][sparse] Simplifying assertions in fromCOO adds d83ecd77cc0f [clang-tidy] Narrow cppguidelines-macro-usage to actual constants adds 3a1b178a0b8b [libcxx][test] Portably test that `{w,}format_context` is [...] adds 073e09683d0d Fix build break introduced by D117147 adds 438f80514521 [mlir] Configure mlir so that it can be directly included [...] adds 5bd38a2826b1 [ELF] Fix split-stack caller with hidden non-split-stack callee adds e7ab36f19110 Change elided large constant syntax to make it more explicit adds 67090e3446e8 [lld-macho] Implement -noall_load adds 3f38dc5c046c [lld-macho] Silence XAR deprecation warning adds 771613295d92 [docs][lli] Fix lli rst docs formatting adds 86cdff0e2123 [OpenMPOpt] Use SetVector to store list of kernels. adds a767ae2c5ce7 [RISCV] Fix incomplete asm statement parsing adds 429a717ea5ec [cmake] Move HandleOutOfTreeLLVM to common cmake utils adds ce8f365884e9 [openmp] Always pass valid triple to openmp-targets when u [...] adds 75d2fcb03fa5 [libc] Add a naming rule for global constants. adds 742bfb3581e7 [lldb] Fix LLDB_FULL_VERSION_STRING adds 058d2123792d [clang-tidy] Use literal block instead of code block (NFC) adds c7b71acef268 [AMDGPU][NFC] Add autogenerated tests for vgpr-tuple-alloc [...] adds 24bc072edb5b Fix modules build by moving implementation into .cpp file adds 4b12f4b2b1a2 Fix crash in MLIR opaque attribute parser adds fabbe8d5fdc6 [ORC] Fix typo in comment. adds d75c3e839605 [mlir] Don't print `// no predecessors` on entry blocks adds 1e09f0a97271 Preserve function argument locations. adds 10ed3c9d2ca4 [libc] Move type definitions to their own self contained h [...] adds ef95d45138ec [lld-macho] Mention string literal deduplication as a diff [...] adds b4a7559844d0 [OpenMP][FIX] Replace ICVs only with values valid at the g [...] adds dd75a6b2ae5c [DWARF][FIX] Try not to crash for nvptx with missing debug [...] adds aba5b91b699c Re-land [CodeView] Add full repro to LF_BUILDINFO record adds 1507786c2295 [LoopPeeling] Fix stale comments. NFC adds 70cef70b131e [docs] Put define DEBUG_TYPE after include directives. adds d93ffa1b37b3 [docs] Fix typo in the example code in ProgrammersManual. adds 28d718602ad2 [OpenMP] Expand short verisions of OpenMP offloading triples adds 2985d5623c88 [flang] Improve error message (initialized variable in pur [...] adds 028477758d19 [flang] Accept BOZ literals for some actual arguments adds 21c79be5d7a3 [RISCV] Add patterns to MIR sign-extension removal pass. adds e084679f961b [mlir] Make locations required when adding/creating block [...] adds bddfb81a312e [flang] Accept sparse argument keyword names for MAX/MIN adds 78649a8499a0 [flang] Accept INDEX(..., BACK=array) adds 02d9a4d56d7b [LoopPeel] Pass TripCount to computePeelCount by value ins [...] adds b6a7ae2c5ddc Optimize shift and accumulate pattern in AArch64. adds 30c17e70a4d7 [MLGO] Don't run the 'release' mode tests in non-autogener [...] adds e95ad93e6ef8 [llvm-dis] Add an option `dump-thinlto-index-only` in llvm [...] adds 70002a7a62c9 [gn build] (manually) port 30c17e70a4d7 adds 34570f4faf4c [RISCV] Add a test to show the bug in the RA caused by res [...] adds c1dd607463db [AVR][MC] Generate section '.progmemX.data' for extended f [...] adds 94173dc24cb5 [AVR] Generate ELPM for loading byte/word from extended pr [...] adds 5dea7a865e6f Combine to vpdpbusd when operand is constant and small enough. adds e39dae85f162 [mlir] Fix GCC5 build broken by improper name redefinition adds 03909c4400b5 [ELF] Remove StringRefZ adds eb675e972d74 [WebAssembly] Support Wasm EH + Wasm SjLj adds 1e447d03e2f6 [OpenMP] Introduce an environment variable to disable atom [...] adds b0789a1b12cd [OpenMP] Avoid costly shadow map traversals whenever possible adds 216ac31dd7d7 [M68k][NFC] Rename Bt(BT) to Btst(BTST) adds 6f2ee1ca5e39 [OpenMP][AMDGPU] Optimize the linked in math libraries adds 10ea7316995d [dsymutil] Don't print timestamp warning if we have no timestamp adds a7a4115bf3bc [ELF] Replace .zdebug string comparison with SHF_COMPRESSE [...] adds 9eb4939b862a [ORC] Allow JITDylib::getDFSLinkOrder and friends to fail [...] adds f8752e28fd3d [ORC] Fix missing std::move from 9eb4939b862. adds d5ae7a99d1e8 [ORC] Fix another missing std::move from 9eb4939b862. adds 8eae99dfe541 [RISCV] Add the zve extension according to the v1.0 spec adds 560eb2277bb5 [clang-format] Fix bug in parsing `operator<` with template adds 8f811effac48 [lld-macho] Fix grammar in doc adds 22ee510dac94 [Support] Remove incorrect noalias return attribute in Bum [...] adds d7bff2e9d2e4 [MemCpyOpt] Fix metadata merging during call slot optimization adds 0be3da1fab5a [RISCV] Add intrinsic for Zbt extension adds baa08d1ec3e2 [clang-tidy] Revert documentation change (NFC) adds 655a7024dbbc Reapply [MemCpyOpt] Make capture check during call slot op [...] adds 0d20407d1ac5 Reapply [MemCpyOpt] Look through pointer casts when checki [...] adds 794b1eebe749 [clang-format] Add tests for aligning `operator=` with `=d [...] adds c10c74887875 [LegalizeTypes][VP] Add widening support for vp.gather and [...] adds 6732c4389786 [llvm][AArch64] Accept armv8.8 "hbc" and "mops" in .arch_e [...] adds 7a1579ac67fd [mlir][bufferization] Move one-shot bufferization to Buffe [...] adds 96ca6d312ceb [flang][NFC] Fix header guard adds 60b6e73769f8 [RISCV] Imply extensions in RISCVTargetInfo::initFeatureMap adds 67d483aba23c [libcxx][test] Use TEST_HAS_BUILTIN in test code adds 90efbe697a39 [flang][NFC] Fix header guard and comment adds 782c0dd1a1c2 [IRBuilder] Migrate and-folding to value-based FoldAnd. adds 585abe3ba506 [lldb] Rename MemoryTagManager RemoveNonAddressBits to Rem [...] adds 787f91b0bb34 [lldb] Remove non-address bits from addresses given to mem [...] adds 770353cd94f8 [MLIR] The return type in the `computeSingleVarRepr` funct [...] adds 5a12024b95e4 [RISCV] Optimize lowering of floating-point -0.0 adds d4a6bf4d1a91 Revert "[AArch64][SVE][VLS] Move extends into arguments of [...] adds ca36cc56ac6c [RISCV] Match RVV VF variants also through masked operations adds 911c1370546f [flang][NFC] Cleanup dependent dialects and make def homogenous adds ccaaeca9106d [flang][NFC] Move current inliner files in Dialect directory adds 847bb26820b1 [AMDGPU] Regenerate some MIR checks adds c4f5fd76da93 [X86] combineConcatVectorOps - add handling for X86ISD::VS [...] adds 304cfc706ad4 [X86] combineConcatVectorOps - remove superfluous Subtarge [...] adds 69ecd2484f0d [clang-format] Indicate source location on test failure. NFC. adds d8b690409dae [AMDGPU] Set MemoryVT for truncstores in tblgen. adds 19b9cd4eae6f [MC] Add a disassembly test for Armv8-R sysregs. adds a4ac40e92f71 [AArch64] Remove PRBAR0_ELn and PRLAR0_ELn sysregs. adds 67aa314bcee7 [IRGen] Do not overwrite existing attributes in CGCall. adds 60147c6034e3 [EarlyCSE] Regenerate test checks (NFC) adds 35737df4dcd2 [Clang][AArch64][ARM] Unaligned Access Warning Added
No new revisions were added by this update.
Summary of changes: bolt/lib/Core/BinaryFunction.cpp | 3 +- bolt/test/AArch64/jmp-after-ret.s | 24 + bolt/test/X86/jmp-after-ret.s | 24 + bolt/test/lit.cfg.py | 6 +- .../bugprone/EasilySwappableParametersCheck.cpp | 79 +- .../cppcoreguidelines/MacroUsageCheck.cpp | 39 +- .../modernize/UseTrailingReturnTypeCheck.cpp | 25 - .../clang-tidy/mpi/TypeMismatchCheck.cpp | 109 +- .../readability/RedundantPreprocessorCheck.cpp | 11 +- .../readability/SuspiciousCallArgumentCheck.cpp | 63 +- clang-tools-extra/clangd/FindTarget.cpp | 14 +- clang-tools-extra/clangd/Selection.cpp | 8 +- .../clangd/unittests/FindTargetTests.cpp | 7 +- clang-tools-extra/docs/ReleaseNotes.rst | 3 + .../checks/cppcoreguidelines-macro-usage.rst | 36 +- clang-tools-extra/docs/clang-tidy/checks/list.rst | 2 +- .../checkers/cppcoreguidelines-macro-usage.cpp | 30 +- clang/cmake/caches/BaremetalARM.cmake | 1 + clang/cmake/caches/CrossWinToARMLinux.cmake | 1 + clang/cmake/caches/Fuchsia-stage2.cmake | 1 + clang/docs/ClangFormatStyleOptions.rst | 2 +- clang/docs/ClangOffloadWrapper.rst | 223 + clang/docs/index.rst | 1 + clang/include/clang/Basic/BuiltinsRISCV.def | 6 + clang/include/clang/Basic/DiagnosticASTKinds.td | 5 + clang/include/clang/Basic/DiagnosticGroups.td | 1 + clang/include/clang/Format/Format.h | 2 +- clang/include/clang/Serialization/ModuleManager.h | 13 +- clang/lib/AST/Decl.cpp | 11 + clang/lib/AST/RecordLayoutBuilder.cpp | 17 + clang/lib/Analysis/FlowSensitive/Transfer.cpp | 10 + clang/lib/Basic/Targets/AVR.cpp | 559 +-- clang/lib/Basic/Targets/RISCV.cpp | 29 +- clang/lib/CodeGen/CGBuiltin.cpp | 16 +- clang/lib/CodeGen/CGCall.cpp | 4 +- clang/lib/CodeGen/CGStmtOpenMP.cpp | 60 + clang/lib/CodeGen/CodeGenModule.cpp | 4 +- clang/lib/CodeGen/TargetInfo.cpp | 9 +- clang/lib/Driver/Driver.cpp | 12 + clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp | 41 +- clang/lib/Driver/ToolChains/Arch/AArch64.cpp | 11 +- clang/lib/Driver/ToolChains/Arch/AArch64.h | 1 + clang/lib/Driver/ToolChains/Arch/ARM.cpp | 28 +- clang/lib/Driver/ToolChains/Clang.cpp | 13 +- clang/lib/Format/FormatTokenLexer.cpp | 13 +- clang/lib/Format/TokenAnnotator.cpp | 3 + clang/lib/Format/WhitespaceManager.cpp | 5 + clang/lib/Parse/ParseDecl.cpp | 2 +- clang/lib/Serialization/ModuleManager.cpp | 22 +- .../CodeGen/RISCV/rvb-intrinsics/riscv32-zbt.c | 54 + .../CodeGen/RISCV/rvb-intrinsics/riscv64-zbt.c | 116 + clang/test/CodeGen/address-space-avr.c | 10 +- clang/test/CodeGen/attr-noundef.cpp | 8 +- clang/test/CodeGen/avr-flash.c | 11 +- .../CodeGen/catch-nullptr-and-nonzero-offset.c | 9 +- clang/test/CodeGen/catch-pointer-overflow.c | 12 +- clang/test/CodeGen/cmse-clear-return.c | 6 +- clang/test/CodeGen/debug-info-codeview-buildinfo.c | 26 + clang/test/CodeGenCUDA/amdgpu-asan-printf.cu | 18 + clang/test/CodeGenCUDA/vtbl.cu | 2 +- .../test/CodeGenCXX/amdgcn-automatic-variable.cpp | 4 +- clang/test/CodeGenCXX/amdgcn-func-arg.cpp | 8 +- clang/test/CodeGenCXX/arm64-constructor-return.cpp | 2 +- clang/test/CodeGenCXX/attr-musttail.cpp | 12 +- .../constructor-destructor-return-this.cpp | 56 +- clang/test/CodeGenCXX/for-range.cpp | 36 +- clang/test/CodeGenCXX/ibm128-declarations.cpp | 8 +- clang/test/CodeGenCXX/matrix-casts.cpp | 4 +- .../CodeGenCXX/microsoft-abi-cdecl-method-sret.cpp | 2 +- .../test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp | 2 +- .../CodeGenCXX/microsoft-abi-extern-template.cpp | 2 +- .../microsoft-abi-virtual-inheritance.cpp | 4 +- .../test/CodeGenCXX/msabi-ctor-abstract-vbase.cpp | 4 +- clang/test/CodeGenCXX/pr13396.cpp | 12 +- clang/test/CodeGenCXX/this-nonnull.cpp | 8 +- clang/test/CodeGenObjCXX/objc-struct-cxx-abi.mm | 6 +- clang/test/Driver/fast-math.c | 23 +- clang/test/Driver/fat_archive_nvptx.cpp | 10 +- clang/test/Driver/riscv-arch.c | 24 +- clang/test/OpenMP/declare_target_codegen.cpp | 22 +- .../declare_target_only_one_side_compilation.cpp | 6 +- .../OpenMP/distribute_firstprivate_codegen.cpp | 272 +- .../test/OpenMP/distribute_lastprivate_codegen.cpp | 304 +- .../OpenMP/distribute_parallel_for_codegen.cpp | 64 +- ...istribute_parallel_for_firstprivate_codegen.cpp | 304 +- ...distribute_parallel_for_lastprivate_codegen.cpp | 368 +- ...distribute_parallel_for_num_threads_codegen.cpp | 240 +- .../distribute_parallel_for_private_codegen.cpp | 368 +- .../distribute_parallel_for_simd_codegen.cpp | 72 +- ...bute_parallel_for_simd_firstprivate_codegen.cpp | 534 +-- ...ibute_parallel_for_simd_lastprivate_codegen.cpp | 664 +-- ...istribute_parallel_for_simd_private_codegen.cpp | 664 +-- clang/test/OpenMP/distribute_private_codegen.cpp | 304 +- .../distribute_simd_firstprivate_codegen.cpp | 504 +-- .../OpenMP/distribute_simd_lastprivate_codegen.cpp | 600 +-- .../OpenMP/distribute_simd_private_codegen.cpp | 600 +-- .../OpenMP/distribute_simd_reduction_codegen.cpp | 12 +- clang/test/OpenMP/for_firstprivate_codegen.cpp | 284 +- clang/test/OpenMP/for_lastprivate_codegen.cpp | 472 +-- clang/test/OpenMP/for_linear_codegen.cpp | 120 +- clang/test/OpenMP/for_private_codegen.cpp | 148 +- clang/test/OpenMP/for_reduction_codegen.cpp | 608 +-- clang/test/OpenMP/for_reduction_codegen_UDR.cpp | 428 +- clang/test/OpenMP/irbuilder_for_iterator.cpp | 20 +- clang/test/OpenMP/irbuilder_for_rangefor.cpp | 24 +- clang/test/OpenMP/irbuilder_simd.cpp | 71 + clang/test/OpenMP/nvptx_lambda_capturing.cpp | 52 +- clang/test/OpenMP/parallel_copyin_codegen.cpp | 444 +- clang/test/OpenMP/parallel_for_linear_codegen.cpp | 68 +- clang/test/OpenMP/parallel_master_codegen.cpp | 32 +- .../OpenMP/parallel_master_taskloop_codegen.cpp | 16 +- ...arallel_master_taskloop_lastprivate_codegen.cpp | 196 +- .../parallel_master_taskloop_simd_codegen.cpp | 64 +- ...el_master_taskloop_simd_lastprivate_codegen.cpp | 374 +- clang/test/OpenMP/parallel_private_codegen.cpp | 216 +- clang/test/OpenMP/parallel_reduction_codegen.cpp | 380 +- .../test/OpenMP/sections_firstprivate_codegen.cpp | 292 +- clang/test/OpenMP/sections_lastprivate_codegen.cpp | 376 +- clang/test/OpenMP/sections_private_codegen.cpp | 164 +- clang/test/OpenMP/sections_reduction_codegen.cpp | 316 +- clang/test/OpenMP/single_codegen.cpp | 1398 +++---- clang/test/OpenMP/single_private_codegen.cpp | 164 +- clang/test/OpenMP/target_parallel_codegen.cpp | 32 +- clang/test/OpenMP/target_parallel_for_codegen.cpp | 32 +- .../OpenMP/target_parallel_for_simd_codegen.cpp | 96 +- clang/test/OpenMP/target_parallel_if_codegen.cpp | 32 +- .../OpenMP/target_parallel_num_threads_codegen.cpp | 32 +- clang/test/OpenMP/target_teams_codegen.cpp | 32 +- .../OpenMP/target_teams_distribute_codegen.cpp | 32 +- .../target_teams_distribute_collapse_codegen.cpp | 16 +- ...rget_teams_distribute_dist_schedule_codegen.cpp | 16 +- ...arget_teams_distribute_firstprivate_codegen.cpp | 512 +-- ...target_teams_distribute_lastprivate_codegen.cpp | 304 +- ...ms_distribute_parallel_for_collapse_codegen.cpp | 16 +- ...stribute_parallel_for_dist_schedule_codegen.cpp | 16 +- ...istribute_parallel_for_firstprivate_codegen.cpp | 1042 ++--- ...distribute_parallel_for_lastprivate_codegen.cpp | 368 +- ...ams_distribute_parallel_for_private_codegen.cpp | 642 +-- ...s_distribute_parallel_for_reduction_codegen.cpp | 8 +- ...ms_distribute_parallel_for_schedule_codegen.cpp | 32 +- ...stribute_parallel_for_simd_collapse_codegen.cpp | 32 +- ...ute_parallel_for_simd_dist_schedule_codegen.cpp | 32 +- ...bute_parallel_for_simd_firstprivate_codegen.cpp | 1580 ++++---- ...ibute_parallel_for_simd_lastprivate_codegen.cpp | 664 +-- ...istribute_parallel_for_simd_private_codegen.cpp | 1308 +++--- ...tribute_parallel_for_simd_reduction_codegen.cpp | 12 +- ...stribute_parallel_for_simd_schedule_codegen.cpp | 48 +- .../target_teams_distribute_private_codegen.cpp | 352 +- .../target_teams_distribute_reduction_codegen.cpp | 8 +- .../target_teams_distribute_simd_codegen.cpp | 96 +- ...rget_teams_distribute_simd_collapse_codegen.cpp | 32 +- ...teams_distribute_simd_dist_schedule_codegen.cpp | 32 +- ..._teams_distribute_simd_firstprivate_codegen.cpp | 796 ++-- ...t_teams_distribute_simd_lastprivate_codegen.cpp | 600 +-- ...arget_teams_distribute_simd_private_codegen.cpp | 700 ++-- ...get_teams_distribute_simd_reduction_codegen.cpp | 12 +- .../test/OpenMP/target_teams_num_teams_codegen.cpp | 32 +- .../OpenMP/target_teams_thread_limit_codegen.cpp | 32 +- clang/test/OpenMP/task_codegen.cpp | 160 +- clang/test/OpenMP/task_member_call_codegen.cpp | 8 +- clang/test/OpenMP/teams_codegen.cpp | 16 +- clang/test/OpenMP/teams_distribute_codegen.cpp | 16 +- .../OpenMP/teams_distribute_collapse_codegen.cpp | 16 +- .../teams_distribute_dist_schedule_codegen.cpp | 16 +- .../teams_distribute_firstprivate_codegen.cpp | 512 +-- .../teams_distribute_lastprivate_codegen.cpp | 304 +- .../teams_distribute_parallel_for_codegen.cpp | 16 +- ...ms_distribute_parallel_for_collapse_codegen.cpp | 16 +- ...eams_distribute_parallel_for_copyin_codegen.cpp | 8 +- ...stribute_parallel_for_dist_schedule_codegen.cpp | 16 +- ...istribute_parallel_for_firstprivate_codegen.cpp | 640 +-- ...distribute_parallel_for_lastprivate_codegen.cpp | 368 +- ...distribute_parallel_for_num_threads_codegen.cpp | 136 +- ...ams_distribute_parallel_for_private_codegen.cpp | 416 +- ...s_distribute_parallel_for_reduction_codegen.cpp | 8 +- ...ms_distribute_parallel_for_schedule_codegen.cpp | 32 +- .../teams_distribute_parallel_for_simd_codegen.cpp | 32 +- ...stribute_parallel_for_simd_collapse_codegen.cpp | 32 +- ...ute_parallel_for_simd_dist_schedule_codegen.cpp | 32 +- ...bute_parallel_for_simd_firstprivate_codegen.cpp | 924 ++--- ...ibute_parallel_for_simd_lastprivate_codegen.cpp | 664 +-- ...ibute_parallel_for_simd_num_threads_codegen.cpp | 248 +- ...istribute_parallel_for_simd_private_codegen.cpp | 764 ++-- ...tribute_parallel_for_simd_reduction_codegen.cpp | 12 +- ...stribute_parallel_for_simd_schedule_codegen.cpp | 48 +- .../OpenMP/teams_distribute_private_codegen.cpp | 352 +- .../OpenMP/teams_distribute_reduction_codegen.cpp | 8 +- .../teams_distribute_simd_aligned_messages.cpp | 1 + .../test/OpenMP/teams_distribute_simd_codegen.cpp | 64 +- .../teams_distribute_simd_collapse_codegen.cpp | 32 +- ...teams_distribute_simd_dist_schedule_codegen.cpp | 32 +- .../teams_distribute_simd_firstprivate_codegen.cpp | 796 ++-- .../teams_distribute_simd_lastprivate_codegen.cpp | 600 +-- .../teams_distribute_simd_private_codegen.cpp | 700 ++-- .../teams_distribute_simd_private_messages.cpp | 1 + .../teams_distribute_simd_reduction_codegen.cpp | 12 +- clang/test/OpenMP/teams_private_codegen.cpp | 448 +- clang/test/OpenMP/threadprivate_codegen.cpp | 4278 ++++++++++---------- clang/test/OpenMP/tile_codegen.cpp | 16 +- clang/test/Preprocessor/aarch64-target-features.c | 2 +- clang/test/Preprocessor/arm-target-features.c | 2 +- clang/test/Preprocessor/riscv-target-features.c | 62 +- clang/test/Sema/avr-flash.c | 12 + clang/test/Sema/test-wunaligned-access.c | 516 +++ clang/test/Sema/test-wunaligned-access.cpp | 274 ++ .../test/VFS/Inputs/vfsoverlay-root-relative.yaml | 17 + clang/test/VFS/vfsoverlay-relative-root.c | 3 + .../Inputs/basic-cplusplus.cpp.expected | 12 +- .../explicit-template-instantiation.cpp.expected | 20 +- clang/unittests/AST/SourceLocationTest.cpp | 8 + .../Analysis/FlowSensitive/TransferTest.cpp | 42 +- .../Format/DefinitionBlockSeparatorTest.cpp | 9 +- clang/unittests/Format/FormatTest.cpp | 51 + clang/unittests/Format/FormatTestTextProto.cpp | 10 +- clang/unittests/Format/SortImportsTestJS.cpp | 8 +- clang/unittests/StaticAnalyzer/SValTest.cpp | 48 +- .../Modules/HandleOutOfTreeLLVM.cmake | 2 +- compiler-rt/include/profile/InstrProfData.inc | 7 +- compiler-rt/lib/profile/InstrProfilingMerge.c | 14 +- compiler-rt/lib/profile/InstrProfilingWriter.c | 7 + flang/docs/Extensions.md | 7 +- flang/include/flang/Optimizer/CodeGen/CGOps.td | 2 +- flang/include/flang/Optimizer/CodeGen/CGPasses.td | 7 +- flang/include/flang/Optimizer/CodeGen/CodeGen.h | 8 +- flang/include/flang/Optimizer/Dialect/FIRDialect.h | 9 + flang/include/flang/Optimizer/Transforms/Passes.h | 10 +- flang/include/flang/Optimizer/Transforms/Passes.td | 10 +- flang/include/flang/Semantics/tools.h | 3 +- flang/include/flang/Semantics/type.h | 1 - flang/lib/Evaluate/intrinsics.cpp | 36 +- flang/lib/Evaluate/shape.cpp | 11 +- flang/lib/Evaluate/tools.cpp | 3 + flang/lib/Optimizer/CodeGen/TargetRewrite.cpp | 27 +- flang/lib/Optimizer/Dialect/CMakeLists.txt | 1 + flang/lib/Optimizer/Dialect/FIRAttr.cpp | 2 +- flang/lib/Optimizer/Dialect/FIROps.cpp | 14 +- .../Optimizer/{Transforms => Dialect}/Inliner.cpp | 11 +- flang/lib/Optimizer/Support/InternalNames.cpp | 2 +- flang/lib/Optimizer/Transforms/AbstractResult.cpp | 2 +- flang/lib/Optimizer/Transforms/AffineDemotion.cpp | 4 +- flang/lib/Optimizer/Transforms/AffinePromotion.cpp | 4 +- flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp | 4 +- flang/lib/Optimizer/Transforms/CMakeLists.txt | 1 - .../lib/Optimizer/Transforms/MemRefDataFlowOpt.cpp | 4 +- flang/lib/Optimizer/Transforms/RewriteLoop.cpp | 6 +- flang/lib/Semantics/check-call.cpp | 45 +- flang/lib/Semantics/check-declarations.cpp | 9 +- flang/lib/Semantics/expression.cpp | 59 +- flang/lib/Semantics/tools.cpp | 23 +- flang/lib/Semantics/type.cpp | 11 - flang/runtime/io-api.cpp | 14 +- flang/runtime/io-stmt.cpp | 18 +- flang/runtime/io-stmt.h | 2 +- flang/test/Evaluate/folding05.f90 | Bin 10119 -> 10212 bytes flang/test/Evaluate/rewrite01.f90 | 27 + flang/test/Semantics/assign08.f90 | 48 + flang/test/Semantics/boz-literal-constants.f90 | 16 + flang/test/Semantics/call10.f90 | 6 +- flang/test/Semantics/call23.f90 | 6 +- flang/test/Semantics/resolve59.f90 | 8 +- flang/test/Semantics/resolve93.f90 | 5 +- libc/.clang-tidy | 2 + libc/CMakeLists.txt | 2 +- libc/config/linux/api.td | 19 +- libc/include/CMakeLists.txt | 22 +- libc/include/__llvm-libc-stdc-types.h | 37 - libc/include/__posix-types.h | 21 - libc/include/llvm-libc-types/CMakeLists.txt | 5 + libc/include/llvm-libc-types/double_t.h | 24 + libc/include/llvm-libc-types/float_t.h | 24 + .../include/llvm-libc-types/off_t.h | 12 +- libc/include/llvm-libc-types/size_t.h | 18 + .../include/llvm-libc-types/ssize_t.h | 12 +- libc/src/__support/FPUtil/aarch64/FEnvImpl.h | 74 +- libc/src/math/generic/CMakeLists.txt | 11 + libc/src/math/generic/cosf.cpp | 8 +- libc/src/math/generic/math_utils.cpp | 18 +- libc/src/math/generic/math_utils.h | 18 +- libc/src/math/generic/sincosf.cpp | 8 +- libc/src/math/generic/sincosf_data.cpp | 44 +- libc/src/math/generic/sincosf_utils.h | 12 +- libc/src/math/generic/sinf.cpp | 8 +- libcxx/test/libcxx/atomics/bit-int.verify.cpp | 3 +- .../coroutine.handle.noop/noop_coroutine.pass.cpp | 4 +- .../format.arg/operator_bool.pass.cpp | 2 +- .../format.context/types.compile.pass.cpp | 19 +- .../format/format.functions/format_tests.h | 4 +- libcxx/test/support/test_macros.h | 2 +- libcxx/utils/gdb/libcxx/printers.py | 6 + libcxxabi/CMakeLists.txt | 4 - libunwind/CMakeLists.txt | 4 - libunwind/src/AddressSpace.hpp | 24 +- libunwind/src/DwarfParser.hpp | 6 +- lld/COFF/Config.h | 2 + lld/COFF/Driver.cpp | 2 + lld/ELF/Driver.cpp | 29 +- lld/ELF/EhFrame.cpp | 23 - lld/ELF/EhFrame.h | 1 - lld/ELF/InputFiles.cpp | 115 +- lld/ELF/InputFiles.h | 4 +- lld/ELF/InputSection.cpp | 71 +- lld/ELF/InputSection.h | 2 +- lld/ELF/Symbols.h | 41 +- lld/ELF/Target.cpp | 2 +- lld/MachO/Driver.cpp | 58 +- lld/MachO/InputFiles.cpp | 85 +- lld/MachO/InputFiles.h | 27 +- lld/MachO/Options.td | 11 +- lld/MachO/SymbolTable.cpp | 22 + lld/MachO/SymbolTable.h | 1 + lld/MachO/Symbols.h | 17 + lld/MachO/SyntheticSections.cpp | 3 + lld/MachO/UnwindInfoSection.cpp | 2 +- lld/MachO/ld64-vs-lld.rst | 16 + lld/test/COFF/Inputs/library.def | 1 + lld/test/COFF/Inputs/pdb_lines_1_relative.yaml | 127 +- lld/test/COFF/Inputs/pdb_lines_2_relative.yaml | 93 +- lld/test/COFF/lib.test | 10 + lld/test/COFF/pdb-relative-source-lines.test | 36 +- lld/test/ELF/Inputs/x86-64-split-stack-main.s | 7 + lld/test/ELF/archive-no-index.s | 10 +- lld/test/ELF/invalid/bad-reloc-target.test | 4 +- .../ELF/invalid/multiple-relocations-sections.test | 2 +- lld/test/ELF/lto/archive-no-index.ll | 6 +- .../x86-64-split-stack-prologue-adjust-success.s | 8 + lld/test/MachO/archive.s | 8 +- lld/test/MachO/literal-dedup.s | 23 + lld/test/MachO/objc-uses-custom-personality.s | 2 + lld/test/MachO/objc.s | 12 +- lld/test/MachO/silent-ignore.s | 1 - lld/test/MachO/start-lib.s | 129 + lld/test/MachO/weak-definition-direct-fetch.s | 17 + lldb/bindings/interface/SBPlatform.i | 3 + lldb/include/lldb/API/SBDefines.h | 10 + lldb/include/lldb/API/SBPlatform.h | 2 + lldb/include/lldb/Breakpoint/Breakpoint.h | 4 +- lldb/include/lldb/Core/Module.h | 4 +- lldb/include/lldb/Symbol/SymbolFile.h | 4 +- lldb/include/lldb/Target/MemoryTagManager.h | 4 +- lldb/include/lldb/Target/Statistics.h | 33 +- lldb/include/lldb/lldb-defines.h | 12 - lldb/source/API/CMakeLists.txt | 5 +- lldb/source/API/SBDebugger.cpp | 15 +- lldb/source/API/SBPlatform.cpp | 6 + lldb/source/Breakpoint/Breakpoint.cpp | 2 +- lldb/source/Commands/CommandObjectMemoryTag.cpp | 23 +- .../ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp | 28 +- .../ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h | 1 + .../Plugins/Process/Linux/NativeProcessLinux.cpp | 10 +- .../Plugins/Process/Linux/NativeThreadLinux.cpp | 2 +- .../Process/Utility/MemoryTagManagerAArch64MTE.cpp | 6 +- .../Process/Utility/MemoryTagManagerAArch64MTE.h | 2 +- .../ScriptInterpreter/Python/PythonDataObjects.cpp | 22 + .../ScriptInterpreter/Python/PythonDataObjects.h | 14 +- .../Python/ScriptInterpreterPython.cpp | 59 +- .../Python/ScriptInterpreterPythonImpl.h | 2 +- lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h | 4 +- .../Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 4 +- .../Plugins/SymbolFile/DWARF/SymbolFileDWARF.h | 6 +- .../SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp | 8 +- .../SymbolFile/DWARF/SymbolFileDWARFDebugMap.h | 4 +- lldb/source/Target/Platform.cpp | 3 + lldb/source/Target/Statistics.cpp | 10 +- lldb/source/Version/CMakeLists.txt | 2 +- .../TestAArch64LinuxMTEMemoryTagAccess.py | 5 + lldb/test/API/linux/aarch64/mte_tag_access/main.c | 14 +- .../API/python_api/sbplatform/TestSBPlatform.py | 8 + .../test/Shell/BuildScript/compiler-full-path.test | 2 +- lldb/tools/driver/CMakeLists.txt | 4 - lldb/tools/lldb-vscode/CMakeLists.txt | 1 - .../Utility/MemoryTagManagerAArch64MTETest.cpp | 9 +- .../ScriptInterpreter/Python/PythonTestSuite.cpp | 2 - llvm/CMakeLists.txt | 7 + llvm/cmake/modules/GetErrcMessages.cmake | 1 + llvm/docs/BitCodeFormat.rst | 7 +- llvm/docs/CommandGuide/lli.rst | 6 +- llvm/docs/Coroutines.rst | 26 + llvm/docs/LangRef.rst | 20 +- llvm/docs/ProgrammersManual.rst | 4 +- llvm/include/llvm/Analysis/InstSimplifyFolder.h | 7 +- llvm/include/llvm/Analysis/MemoryBuiltins.h | 6 - .../include/llvm/Analysis/SyncDependenceAnalysis.h | 1 + llvm/include/llvm/Analysis/TargetFolder.h | 11 +- .../llvm/Analysis/TargetTransformInfoImpl.h | 1 + .../GlobalISel/LegalizationArtifactCombiner.h | 3 +- llvm/include/llvm/CodeGen/Passes.h | 4 + llvm/include/llvm/ExecutionEngine/JITLink/riscv.h | 49 +- llvm/include/llvm/ExecutionEngine/Orc/Core.h | 27 +- llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | 6 + llvm/include/llvm/IR/Attributes.h | 53 +- llvm/include/llvm/IR/ConstantFolder.h | 12 +- llvm/include/llvm/IR/Constants.h | 7 - llvm/include/llvm/IR/DIBuilder.h | 38 + llvm/include/llvm/IR/GetElementPtrTypeIterator.h | 22 +- llvm/include/llvm/IR/IRBuilder.h | 8 +- llvm/include/llvm/IR/IRBuilderFolder.h | 4 +- llvm/include/llvm/IR/Intrinsics.td | 1 + llvm/include/llvm/IR/IntrinsicsRISCV.td | 8 + llvm/include/llvm/IR/NoFolder.h | 6 +- llvm/include/llvm/InitializePasses.h | 1 + llvm/include/llvm/ProfileData/InstrProfData.inc | 7 +- llvm/include/llvm/ProfileData/SampleProf.h | 8 +- llvm/include/llvm/Support/Allocator.h | 8 +- llvm/include/llvm/Support/RISCVISAInfo.h | 8 +- llvm/include/llvm/Support/VirtualFileSystem.h | 3 + llvm/include/llvm/Transforms/IPO/OpenMPOpt.h | 2 +- llvm/include/llvm/Transforms/Utils/Local.h | 2 +- llvm/include/llvm/Transforms/Utils/LoopPeel.h | 2 +- llvm/lib/Analysis/BranchProbabilityInfo.cpp | 1 + llvm/lib/Analysis/MemoryBuiltins.cpp | 7 +- .../models/gen-regalloc-eviction-test-model.py | 103 + llvm/lib/BinaryFormat/Magic.cpp | 5 +- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 5 + llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 + llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 41 +- llvm/lib/CodeGen/CMakeLists.txt | 31 +- llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | 2 +- llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp | 697 +++- llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp | 8 +- llvm/lib/CodeGen/RegAllocGreedy.h | 1 + llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h | 2 + .../CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 55 + llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 9 +- llvm/lib/CodeGen/TargetPassConfig.cpp | 3 + llvm/lib/Debuginfod/Debuginfod.cpp | 1 + llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp | 81 + llvm/lib/ExecutionEngine/JITLink/riscv.cpp | 16 + llvm/lib/ExecutionEngine/Orc/Core.cpp | 26 +- llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp | 9 +- llvm/lib/ExecutionEngine/Orc/LLJIT.cpp | 87 +- llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp | 9 +- llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | 61 + llvm/lib/IR/Attributes.cpp | 226 +- llvm/lib/IR/Constants.cpp | 22 - llvm/lib/IR/Core.cpp | 2 +- llvm/lib/IR/DIBuilder.cpp | 57 +- llvm/lib/Passes/PassBuilderPipelines.cpp | 14 +- llvm/lib/ProfileData/InstrProfReader.cpp | 4 +- llvm/lib/ProfileData/SampleProfReader.cpp | 9 +- llvm/lib/ProfileData/SampleProfWriter.cpp | 4 +- llvm/lib/Support/RISCVISAInfo.cpp | 79 +- llvm/lib/Support/VirtualFileSystem.cpp | 15 +- .../Target/AArch64/AArch64ExpandPseudoInsts.cpp | 4 +- llvm/lib/Target/AArch64/AArch64FastISel.cpp | 214 +- llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | 6 +- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 32 +- llvm/lib/Target/AArch64/AArch64InstrInfo.td | 24 +- .../Target/AArch64/AArch64LoadStoreOptimizer.cpp | 2 +- .../Target/AArch64/AArch64SpeculationHardening.cpp | 2 +- .../Target/AArch64/AArch64StackTaggingPreRA.cpp | 2 +- llvm/lib/Target/AArch64/AArch64SystemOperands.td | 4 +- .../Target/AArch64/AsmParser/AArch64AsmParser.cpp | 2 + llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp | 16 +- .../Target/AMDGPU/AMDGPUInstructionSelector.cpp | 29 + llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h | 1 + llvm/lib/Target/AMDGPU/AMDGPUInstructions.td | 9 +- llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | 5 +- llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | 11 + llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp | 12 +- llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp | 10 + llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp | 2 +- llvm/lib/Target/AMDGPU/GCNRegPressure.cpp | 4 +- llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 3 +- llvm/lib/Target/AMDGPU/SIInstrInfo.cpp | 8 + llvm/lib/Target/AMDGPU/SIInstructions.td | 9 + llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | 47 +- llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp | 2 +- llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | 10 +- llvm/lib/Target/ARM/ARMFastISel.cpp | 98 +- llvm/lib/Target/ARM/ARMFrameLowering.cpp | 16 +- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp | 4 +- llvm/lib/Target/ARM/ARMISelLowering.cpp | 12 +- llvm/lib/Target/ARM/Thumb1FrameLowering.cpp | 18 +- llvm/lib/Target/AVR/AVR.h | 48 +- llvm/lib/Target/AVR/AVRCallingConv.td | 2 +- llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp | 67 +- llvm/lib/Target/AVR/AVRFrameLowering.cpp | 96 +- llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp | 88 +- llvm/lib/Target/AVR/AVRISelLowering.cpp | 2 +- llvm/lib/Target/AVR/AVRInstrInfo.td | 37 +- llvm/lib/Target/AVR/AVRRegisterInfo.cpp | 5 +- llvm/lib/Target/AVR/AVRSubtarget.h | 3 + llvm/lib/Target/AVR/AVRTargetMachine.cpp | 6 - llvm/lib/Target/AVR/AVRTargetObjectFile.cpp | 53 +- llvm/lib/Target/AVR/AVRTargetObjectFile.h | 5 + llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp | 8 +- llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp | 2 +- llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | 4 +- llvm/lib/Target/Hexagon/HexagonSplitDouble.cpp | 8 +- llvm/lib/Target/Lanai/LanaiISelLowering.cpp | 6 +- llvm/lib/Target/Lanai/LanaiRegisterInfo.cpp | 2 +- llvm/lib/Target/M68k/M68kISelLowering.cpp | 60 +- llvm/lib/Target/M68k/M68kISelLowering.h | 6 +- llvm/lib/Target/M68k/M68kInstrBits.td | 8 +- llvm/lib/Target/M68k/M68kInstrInfo.td | 2 +- llvm/lib/Target/MSP430/MSP430FrameLowering.cpp | 2 +- llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | 4 +- llvm/lib/Target/Mips/Mips16FrameLowering.cpp | 4 +- llvm/lib/Target/Mips/Mips16InstrInfo.cpp | 2 +- llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 2 +- llvm/lib/Target/Mips/MipsFastISel.cpp | 112 +- llvm/lib/Target/Mips/MipsISelLowering.cpp | 2 +- llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | 4 +- llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 2 +- llvm/lib/Target/PowerPC/PPCFastISel.cpp | 86 +- llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 12 +- llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 36 +- llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 8 +- llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | 24 +- llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp | 2 +- llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp | 4 +- llvm/lib/Target/RISCV/RISCV.td | 72 +- llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 29 +- llvm/lib/Target/RISCV/RISCVInstrInfo.cpp | 2 +- llvm/lib/Target/RISCV/RISCVInstrInfoD.td | 4 + llvm/lib/Target/RISCV/RISCVInstrInfoF.td | 4 +- llvm/lib/Target/RISCV/RISCVInstrInfoV.td | 163 +- llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td | 88 +- llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td | 1 + llvm/lib/Target/RISCV/RISCVMCInstLower.cpp | 2 +- llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp | 34 +- llvm/lib/Target/RISCV/RISCVSchedRocket.td | 2 +- llvm/lib/Target/RISCV/RISCVSubtarget.h | 22 +- llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp | 6 +- llvm/lib/Target/Sparc/SparcISelLowering.cpp | 2 +- llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp | 30 +- llvm/lib/Target/SystemZ/SystemZISelLowering.cpp | 4 +- llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | 2 +- llvm/lib/Target/VE/VEISelLowering.cpp | 6 +- llvm/lib/Target/VE/VEInstrInfo.cpp | 2 +- .../WebAssembly/WebAssemblyExplicitLocals.cpp | 2 +- .../lib/Target/WebAssembly/WebAssemblyFastISel.cpp | 64 +- .../Target/WebAssembly/WebAssemblyISelLowering.cpp | 2 +- .../WebAssemblyLowerEmscriptenEHSjLj.cpp | 122 +- .../WebAssembly/WebAssemblyLowerGlobalDtors.cpp | 2 + .../WebAssemblyOptimizeLiveIntervals.cpp | 2 +- .../WebAssemblyPrepareForLiveIntervals.cpp | 2 +- .../Target/WebAssembly/WebAssemblyRegColoring.cpp | 8 +- .../Target/WebAssembly/WebAssemblyRegNumbering.cpp | 2 +- .../Target/WebAssembly/WebAssemblyRegStackify.cpp | 4 +- llvm/lib/Target/X86/X86FrameLowering.cpp | 14 +- llvm/lib/Target/X86/X86ISelLowering.cpp | 62 +- llvm/lib/Target/X86/X86PartialReduction.cpp | 7 +- llvm/lib/Target/X86/X86SchedBroadwell.td | 36 + llvm/lib/Target/X86/X86SchedHaswell.td | 36 + llvm/lib/Target/X86/X86SchedIceLake.td | 44 + llvm/lib/Target/X86/X86SchedSandyBridge.td | 31 + llvm/lib/Target/X86/X86SchedSkylakeClient.td | 36 + llvm/lib/Target/X86/X86SchedSkylakeServer.td | 44 + llvm/lib/Target/X86/X86ScheduleSLM.td | 18 + llvm/lib/Target/X86/X86ScheduleZnver1.td | 79 + llvm/lib/Target/X86/X86ScheduleZnver2.td | 79 + .../lib/Target/X86/X86SpeculativeLoadHardening.cpp | 8 +- llvm/lib/Target/XCore/XCoreFrameLowering.cpp | 4 +- llvm/lib/Target/XCore/XCoreRegisterInfo.cpp | 4 +- llvm/lib/Transforms/Coroutines/CoroInstr.h | 12 + llvm/lib/Transforms/Coroutines/CoroInternal.h | 1 + llvm/lib/Transforms/Coroutines/CoroSplit.cpp | 10 +- llvm/lib/Transforms/Coroutines/Coroutines.cpp | 4 + llvm/lib/Transforms/IPO/AttributorAttributes.cpp | 2 +- llvm/lib/Transforms/IPO/OpenMPOpt.cpp | 25 +- llvm/lib/Transforms/IPO/PartialInlining.cpp | 7 + llvm/lib/Transforms/Scalar/ConstantHoisting.cpp | 12 +- .../lib/Transforms/Scalar/DeadStoreElimination.cpp | 13 +- llvm/lib/Transforms/Scalar/LoopFlatten.cpp | 78 +- llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp | 64 +- llvm/lib/Transforms/Utils/BuildLibCalls.cpp | 1 + llvm/lib/Transforms/Utils/Local.cpp | 5 +- llvm/lib/Transforms/Utils/LoopPeel.cpp | 8 +- llvm/lib/Transforms/Vectorize/VPlan.cpp | 10 + llvm/lib/Transforms/Vectorize/VPlan.h | 10 + .../thinlto-index-disassembled-by-llvm-dis.ll | 30 + llvm/test/CMakeLists.txt | 1 + llvm/test/CodeGen/AArch64/O3-pipeline.ll | 1 + llvm/test/CodeGen/AArch64/shift-accumulate.ll | 122 + .../AMDGPU/GlobalISel/artifact-combiner-asserts.ll | 40 + .../artifact-combiner-unmerge-values.mir | 166 + .../AMDGPU/GlobalISel/call-outgoing-stack-args.ll | 450 ++ .../CodeGen/AMDGPU/GlobalISel/combine-itofp.mir | 152 +- .../GlobalISel/fmed3-min-max-const-combine.ll | 129 + .../GlobalISel/inst-select-amdgpu-wave-address.mir | 41 + .../GlobalISel/irtranslator-call-implicit-args.ll | 40 +- .../AMDGPU/GlobalISel/irtranslator-call-sret.ll | 8 +- .../CodeGen/AMDGPU/GlobalISel/irtranslator-call.ll | 218 +- .../AMDGPU/GlobalISel/irtranslator-sibling-call.ll | 36 +- .../CodeGen/AMDGPU/GlobalISel/legalize-ctpop.mir | 617 +++ .../CodeGen/AMDGPU/GlobalISel/load-unaligned.ll | 56 +- .../postlegalizercombiner-load-and-mask.mir | 11 +- .../regbankselect-amdgpu-wave-address.mir | 32 + .../AMDGPU/GlobalISel/widen-i8-i16-scalar-loads.ll | 12 +- llvm/test/CodeGen/AMDGPU/ds-alignment.ll | 183 +- llvm/test/CodeGen/AMDGPU/gfx90a-enc.ll | 16 +- .../promote-alloca-to-lds-constantexpr-use.ll | 51 + llvm/test/CodeGen/AMDGPU/vgpr-tuple-allocation.ll | 394 +- llvm/test/CodeGen/AMDGPU/waitcnt.mir | 36 + llvm/test/CodeGen/AMDGPU/wave32.ll | 12 +- llvm/test/CodeGen/AMDGPU/wqm.ll | 78 +- llvm/test/CodeGen/ARM/O3-pipeline.ll | 1 + llvm/test/CodeGen/AVR/dynalloca.ll | 48 +- llvm/test/CodeGen/AVR/elpm.ll | 270 ++ llvm/test/CodeGen/AVR/interrupts.ll | 75 +- llvm/test/CodeGen/AVR/lpmx.ll | 148 + llvm/test/CodeGen/AVR/sections.ll | 41 +- llvm/test/CodeGen/MLRegalloc/Inputs/input.ll | 687 ++++ .../test/CodeGen/MLRegalloc/dev-mode-log-2-fcts.ll | 58 + llvm/test/CodeGen/MLRegalloc/dev-mode-logging.ll | 33 + .../test/CodeGen/MLRegalloc/dev-rel-equivalence.ll | 20 + llvm/test/CodeGen/MLRegalloc/rel-codepath.ll | 16 + llvm/test/CodeGen/PowerPC/O3-pipeline.ll | 1 + llvm/test/CodeGen/PowerPC/aix-fptoint.ll | 54 + llvm/test/CodeGen/RISCV/attributes.ll | 8 +- llvm/test/CodeGen/RISCV/fp-imm.ll | 24 +- llvm/test/CodeGen/RISCV/large-stack.ll | 4 - llvm/test/CodeGen/RISCV/rv32zbt-intrinsic.ll | 43 + llvm/test/CodeGen/RISCV/rv64zbt-intrinsic.ll | 83 + llvm/test/CodeGen/RISCV/rvv/ctlz-sdnode.ll | 4 +- llvm/test/CodeGen/RISCV/rvv/cttz-sdnode.ll | 4 +- llvm/test/CodeGen/RISCV/rvv/fixed-vectors-ctlz.ll | 8 +- llvm/test/CodeGen/RISCV/rvv/fixed-vectors-cttz.ll | 8 +- .../RISCV/rvv/fixed-vectors-mask-buildvec.ll | 1751 ++++++++ .../RISCV/rvv/fixed-vectors-reduction-fp.ll | 287 +- .../CodeGen/RISCV/rvv/fixed-vectors-vfadd-vp.ll | 48 +- .../CodeGen/RISCV/rvv/fixed-vectors-vfdiv-vp.ll | 48 +- .../CodeGen/RISCV/rvv/fixed-vectors-vfmul-vp.ll | 48 +- .../CodeGen/RISCV/rvv/fixed-vectors-vfsub-vp.ll | 48 +- .../CodeGen/RISCV/rvv/fixed-vectors-vpgather.ll | 40 + .../CodeGen/RISCV/rvv/fixed-vectors-vpscatter.ll | 36 + .../test/CodeGen/RISCV/rvv/reg-alloc-reserve-bp.ll | 74 + llvm/test/CodeGen/RISCV/rvv/regalloc-fast-crash.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/sink-splat-operands.ll | 4 +- llvm/test/CodeGen/RISCV/rvv/vloxseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vloxseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlsegff-rv32-dead.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlsegff-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlsegff-rv64-dead.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlsegff-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlsseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vlsseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vluxseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vluxseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vnsra-sdnode.ll | 225 + llvm/test/CodeGen/RISCV/rvv/vnsrl-sdnode.ll | 225 + llvm/test/CodeGen/RISCV/rvv/vpgather-sdnode.ll | 266 ++ llvm/test/CodeGen/RISCV/rvv/vpscatter-sdnode.ll | 265 ++ .../CodeGen/RISCV/rvv/vreductions-fp-sdnode.ll | 142 +- llvm/test/CodeGen/RISCV/rvv/vsoxseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vsoxseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vsseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vsseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vssseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vssseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vsuxseg-rv32.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/vsuxseg-rv64.ll | 2 +- llvm/test/CodeGen/RISCV/rvv/zvlsseg-zero-vl.ll | 2 +- llvm/test/CodeGen/RISCV/sextw-removal.ll | 103 + llvm/test/CodeGen/RISCV/zfh-imm.ll | 16 +- llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll | 259 ++ llvm/test/CodeGen/X86/combine-mul.ll | 32 + llvm/test/CodeGen/X86/dpbusd_const.ll | 276 +- llvm/test/CodeGen/X86/opt-pipeline.ll | 1 + llvm/test/CodeGen/X86/vector-fshl-128.ll | 98 +- llvm/test/CodeGen/X86/vector-fshl-256.ll | 100 +- llvm/test/CodeGen/X86/vector-fshl-512.ll | 256 +- llvm/test/CodeGen/X86/vector-fshr-128.ll | 90 +- llvm/test/CodeGen/X86/vector-fshr-256.ll | 68 +- llvm/test/CodeGen/X86/vector-fshr-512.ll | 244 +- llvm/test/CodeGen/X86/vector-fshr-rot-128.ll | 18 +- llvm/test/DebugInfo/COFF/build-info.ll | 2 +- llvm/test/DebugInfo/COFF/global-type-hashes.ll | 3 +- llvm/test/DebugInfo/COFF/types-basic.ll | 12 +- llvm/test/DebugInfo/COFF/types-data-members.ll | 12 +- .../DebugInfo/NVPTX/crash-missing-DISubprogram.ll | 27 + llvm/test/DebugInfo/X86/dbg-addr.ll | 40 +- .../JITLink/RISCV/riscv_reloc_add.s | 27 + llvm/test/MC/AArch64/armv8r-sysreg.s | 64 +- .../MC/AArch64/directive-arch_extension-negative.s | 17 +- llvm/test/MC/AArch64/directive-arch_extension.s | 9 + .../test/MC/Disassembler/AArch64/armv8r-sysreg.txt | 574 +++ llvm/test/MC/RISCV/attribute-arch.s | 45 +- llvm/test/MC/RISCV/rvv/add.s | 118 +- llvm/test/MC/RISCV/rvv/and.s | 12 +- llvm/test/MC/RISCV/rvv/clip.s | 24 +- llvm/test/MC/RISCV/rvv/compare.s | 142 +- llvm/test/MC/RISCV/rvv/convert.s | 86 +- llvm/test/MC/RISCV/rvv/div.s | 32 +- llvm/test/MC/RISCV/rvv/ext.s | 24 +- llvm/test/MC/RISCV/rvv/fadd.s | 24 +- llvm/test/MC/RISCV/rvv/fcompare.s | 50 +- llvm/test/MC/RISCV/rvv/fdiv.s | 12 +- llvm/test/MC/RISCV/rvv/fmacc.s | 96 +- llvm/test/MC/RISCV/rvv/fminmax.s | 16 +- llvm/test/MC/RISCV/rvv/fmul.s | 16 +- llvm/test/MC/RISCV/rvv/fmv.s | 6 +- llvm/test/MC/RISCV/rvv/fothers.s | 26 +- llvm/test/MC/RISCV/rvv/freduction.s | 26 +- llvm/test/MC/RISCV/rvv/fsub.s | 28 +- llvm/test/MC/RISCV/rvv/invalid-eew.s | 131 +- llvm/test/MC/RISCV/rvv/load.s | 116 +- llvm/test/MC/RISCV/rvv/macc.s | 60 +- llvm/test/MC/RISCV/rvv/mask.s | 52 +- llvm/test/MC/RISCV/rvv/minmax.s | 32 +- llvm/test/MC/RISCV/rvv/mul.s | 64 +- llvm/test/MC/RISCV/rvv/mv.s | 18 +- llvm/test/MC/RISCV/rvv/or.s | 12 +- llvm/test/MC/RISCV/rvv/others.s | 48 +- llvm/test/MC/RISCV/rvv/reduction.s | 42 +- llvm/test/MC/RISCV/rvv/shift.s | 86 +- llvm/test/MC/RISCV/rvv/sign-injection.s | 24 +- llvm/test/MC/RISCV/rvv/store.s | 74 +- llvm/test/MC/RISCV/rvv/sub.s | 100 +- llvm/test/MC/RISCV/rvv/vsetvl.s | 50 +- llvm/test/MC/RISCV/rvv/xor.s | 16 +- .../CodeExtractor/PartialInlinePGOMultiRegion.ll | 6 + .../ARM/const-hoist-gep-overindexing.ll | 45 + llvm/test/Transforms/Coroutines/coro-align-01.ll | 54 + llvm/test/Transforms/Coroutines/coro-align-02.ll | 46 + llvm/test/Transforms/Coroutines/coro-align-03.ll | 54 + llvm/test/Transforms/Coroutines/coro-align-04.ll | 54 + llvm/test/Transforms/Coroutines/coro-align-05.ll | 54 + .../DeadStoreElimination/calloc-store.ll | 2 +- .../Transforms/DeadStoreElimination/noop-stores.ll | 4 +- .../DeadStoreElimination/operand-bundles.ll | 2 +- llvm/test/Transforms/EarlyCSE/atomics.ll | 194 +- llvm/test/Transforms/EarlyCSE/basic.ll | 226 +- llvm/test/Transforms/EarlyCSE/const-speculation.ll | 18 +- llvm/test/Transforms/EarlyCSE/floatingpoint.ll | 37 +- llvm/test/Transforms/EarlyCSE/memoryssa.ll | 173 +- llvm/test/Transforms/EarlyCSE/pr33406.ll | 20 +- .../test/Transforms/EarlyCSE/readnone-mayunwind.ll | 9 +- llvm/test/Transforms/EarlyCSE/writeonly.ll | 8 +- .../test/Transforms/InferFunctionAttrs/annotate.ll | 6 +- llvm/test/Transforms/Inline/ret_attr_update.ll | 4 +- .../test/Transforms/InstCombine/deref-alloc-fns.ll | 2 +- .../LoopIdiom/X86/left-shift-until-bittest.ll | 36 +- .../LoopVectorize/AArch64/sve-tail-folding.ll | 114 +- .../LoopVersioning/bound-check-partially-known.ll | 4 +- llvm/test/Transforms/MemCpyOpt/callslot.ll | 12 +- llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll | 26 + llvm/test/Transforms/MemCpyOpt/capturing-func.ll | 11 +- .../Transforms/OpenMP/icv_tracking_out_of_scope.ll | 53 + .../PhaseOrdering/AArch64/loopflatten.ll | 64 + llvm/test/lit.cfg.py | 3 + llvm/test/lit.site.cfg.py.in | 1 + llvm/test/tools/dsymutil/X86/swift-ast-x86_64.test | 5 +- .../X86/Barcelona/reg-move-elimination-1.s | 4 +- .../X86/Barcelona/reg-move-elimination-2.s | 94 +- .../X86/Barcelona/reg-move-elimination-3.s | 72 +- .../X86/Barcelona/reg-move-elimination-4.s | 63 +- .../X86/Barcelona/reg-move-elimination-5.s | 63 +- .../X86/Barcelona/reg-move-elimination-6.s | 4 +- .../tools/llvm-mca/X86/Barcelona/zero-idioms.s | 18 +- .../tools/llvm-mca/X86/Broadwell/zero-idioms.s | 30 +- llvm/test/tools/llvm-mca/X86/Haswell/zero-idioms.s | 30 +- .../tools/llvm-mca/X86/IceLakeServer/zero-idioms.s | 50 +- llvm/test/tools/llvm-mca/X86/SLM/zero-idioms.s | 30 +- .../tools/llvm-mca/X86/SandyBridge/zero-idioms.s | 30 +- .../tools/llvm-mca/X86/SkylakeClient/zero-idioms.s | 30 +- .../tools/llvm-mca/X86/SkylakeServer/zero-idioms.s | 50 +- llvm/test/tools/llvm-mca/X86/Znver1/zero-idioms.s | 464 +-- llvm/test/tools/llvm-mca/X86/Znver2/zero-idioms.s | 464 +-- .../llvm-objcopy/ELF/strip-unneeded-aarch64.test | 53 + .../tools/llvm-objcopy/ELF/strip-unneeded-arm.test | 60 + .../llvm-profdata/cs-sample-nested-profile.test | 4 +- llvm/test/tools/yaml2obj/XCOFF/aux-symbols.yaml | 581 +++ llvm/tools/dsymutil/DwarfLinkerForBinary.cpp | 5 +- llvm/tools/llvm-dis/llvm-dis.cpp | 25 +- llvm/tools/llvm-jitlink/llvm-jitlink.cpp | 3 +- llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp | 50 +- llvm/unittests/Analysis/MemoryBuiltinsTest.cpp | 1 - llvm/unittests/BinaryFormat/TestFileMagic.cpp | 2 + .../unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp | 18 +- llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | 31 + llvm/unittests/IR/DebugInfoTest.cpp | 67 + llvm/unittests/Support/VirtualFileSystemTest.cpp | 30 +- llvm/utils/gn/secondary/lldb/source/API/BUILD.gn | 18 +- .../gn/secondary/lldb/source/Plugins/BUILD.gn | 4 + .../lldb/source/Plugins/REPL/Clang/BUILD.gn | 17 + llvm/utils/gn/secondary/lldb/tools/driver/BUILD.gn | 1 - .../gn/secondary/lldb/tools/lldb-vscode/BUILD.gn | 3 + llvm/utils/gn/secondary/llvm/test/BUILD.gn | 1 + llvm/utils/lit/lit/formats/googletest.py | 4 +- .../DummySubDir/OneTest.py | 5 +- mlir/CMakeLists.txt | 6 +- mlir/cmake/modules/AddMLIR.cmake | 3 +- mlir/cmake/modules/CMakeLists.txt | 4 +- mlir/cmake/modules/MLIRConfig.cmake.in | 7 +- mlir/cmake/modules/MLIRDetectPythonEnv.cmake | 2 +- mlir/docs/Bufferization.md | 4 +- mlir/docs/Rationale/Rationale.md | 10 +- mlir/docs/Traits.md | 28 - mlir/docs/Tutorials/Toy/Ch-4.md | 18 +- mlir/docs/Tutorials/Toy/Ch-5.md | 8 +- mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp | 8 +- mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp | 10 +- mlir/examples/toy/Ch5/mlir/ShapeInferencePass.cpp | 8 +- mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp | 10 +- mlir/examples/toy/Ch6/mlir/ShapeInferencePass.cpp | 8 +- mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp | 10 +- mlir/examples/toy/Ch7/mlir/ShapeInferencePass.cpp | 8 +- mlir/include/mlir-c/Dialect/PDL.h | 2 + mlir/include/mlir-c/IR.h | 6 +- .../mlir/Analysis/Presburger/IntegerPolyhedron.h | 11 +- mlir/include/mlir/Analysis/Presburger/Utils.h | 25 +- mlir/include/mlir/Bindings/Python/PybindAdaptors.h | 65 +- mlir/include/mlir/Conversion/Passes.td | 18 +- mlir/include/mlir/Dialect/Affine/Passes.h | 2 +- mlir/include/mlir/Dialect/Affine/Passes.td | 20 +- .../mlir/Dialect/Arithmetic/Transforms/Passes.td | 4 +- .../IR}/BufferizableOpInterface.h | 248 +- .../IR}/BufferizableOpInterface.td | 12 +- .../IR}/BufferizationInterfaceImpl.h | 12 +- .../mlir/Dialect/Bufferization/IR/CMakeLists.txt | 1 + .../Dialect/Bufferization/Transforms/Bufferize.h | 16 + .../Bufferization/Transforms/OneShotAnalysis.h | 184 + .../mlir/Dialect/Bufferization/Transforms/Passes.h | 2 +- .../Dialect/Bufferization/Transforms/Passes.td | 6 +- mlir/include/mlir/Dialect/GPU/GPUDialect.h | 2 +- mlir/include/mlir/Dialect/GPU/GPUOps.td | 29 +- mlir/include/mlir/Dialect/GPU/Passes.td | 2 +- mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | 29 +- mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h | 10 +- .../Linalg/ComprehensiveBufferize/CMakeLists.txt | 7 +- .../ComprehensiveBufferize.h | 40 - .../ComprehensiveBufferize/LinalgInterfaceImpl.h | 22 +- .../ComprehensiveBufferize/ModuleBufferization.h | 14 +- .../ComprehensiveBufferize/SCFInterfaceImpl.h | 14 +- mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td | 5 +- mlir/include/mlir/Dialect/Linalg/Passes.h | 2 + mlir/include/mlir/Dialect/Linalg/Passes.td | 48 +- mlir/include/mlir/Dialect/Quant/Passes.td | 4 +- mlir/include/mlir/Dialect/SCF/Passes.td | 16 +- mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td | 2 +- .../mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td | 25 +- .../include/mlir/Dialect/Shape/Transforms/Passes.h | 4 +- .../mlir/Dialect/Shape/Transforms/Passes.td | 6 +- .../mlir/Dialect/StandardOps/Transforms/Passes.td | 4 +- .../mlir/Dialect/Tensor/Transforms/Passes.td | 2 +- mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td | 2 + .../include/mlir/Dialect/Tosa/Transforms/Passes.td | 7 +- mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h | 46 +- mlir/include/mlir/IR/Block.h | 11 +- mlir/include/mlir/IR/Builders.h | 11 +- mlir/include/mlir/IR/BuiltinOps.h | 2 +- mlir/include/mlir/IR/BuiltinOps.td | 40 +- mlir/include/mlir/IR/BuiltinTypes.td | 4 + mlir/include/mlir/IR/CMakeLists.txt | 6 + mlir/include/mlir/IR/FunctionImplementation.h | 38 +- mlir/include/mlir/IR/FunctionInterfaces.h | 295 ++ mlir/include/mlir/IR/FunctionInterfaces.td | 535 +++ mlir/include/mlir/IR/FunctionSupport.h | 803 ---- mlir/include/mlir/IR/OpBase.td | 2 - mlir/include/mlir/IR/OpImplementation.h | 13 +- mlir/include/mlir/IR/Region.h | 18 +- mlir/include/mlir/Pass/Pass.h | 14 +- mlir/include/mlir/Pass/PassBase.td | 2 + mlir/include/mlir/Transforms/DialectConversion.h | 18 +- mlir/include/mlir/Transforms/Passes.td | 12 +- .../Analysis/AliasAnalysis/LocalAliasAnalysis.cpp | 4 +- mlir/lib/Analysis/Presburger/IntegerPolyhedron.cpp | 21 +- mlir/lib/Analysis/Presburger/PresburgerSet.cpp | 21 +- mlir/lib/Analysis/Presburger/Utils.cpp | 11 +- mlir/lib/Bindings/Python/DialectPDL.cpp | 102 + mlir/lib/Bindings/Python/IRCore.cpp | 34 +- mlir/lib/CAPI/Dialect/Linalg.cpp | 7 +- mlir/lib/CAPI/Dialect/PDL.cpp | 4 + mlir/lib/CAPI/IR/IR.cpp | 10 +- .../ArithmeticToLLVM/ArithmeticToLLVM.cpp | 6 +- .../ArithmeticToSPIRV/ArithmeticToSPIRV.cpp | 32 +- mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp | 2 +- .../ComplexToStandard/ComplexToStandard.cpp | 6 +- mlir/lib/Conversion/GPUCommon/GPUOpsLowering.cpp | 2 +- mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp | 2 +- mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp | 6 +- mlir/lib/Conversion/MathToLibm/MathToLibm.cpp | 3 +- mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp | 53 +- mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp | 8 +- .../Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp | 3 +- mlir/lib/Conversion/SCFToGPU/SCFToGPUPass.cpp | 4 +- mlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp | 6 +- mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRV.cpp | 5 +- .../lib/Conversion/SCFToStandard/SCFToStandard.cpp | 8 +- mlir/lib/Conversion/SPIRVCommon/Pattern.h | 7 +- .../Conversion/StandardToLLVM/StandardToLLVM.cpp | 12 +- .../Conversion/StandardToSPIRV/StandardToSPIRV.cpp | 12 +- mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp | 30 +- .../TosaToLinalg/TosaToLinalgNamedPass.cpp | 4 +- .../Conversion/TosaToLinalg/TosaToLinalgPass.cpp | 4 +- mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp | 12 +- mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp | 10 +- .../Dialect/Affine/Analysis/AffineStructures.cpp | 6 +- mlir/lib/Dialect/Affine/IR/AffineOps.cpp | 9 +- .../Affine/Transforms/AffineDataCopyGeneration.cpp | 6 +- .../Transforms/AffineLoopInvariantCodeMotion.cpp | 6 +- .../Affine/Transforms/AffineLoopNormalize.cpp | 4 +- .../Affine/Transforms/AffineParallelize.cpp | 6 +- .../Affine/Transforms/AffineScalarReplacement.cpp | 9 +- mlir/lib/Dialect/Affine/Transforms/LoopTiling.cpp | 6 +- mlir/lib/Dialect/Affine/Transforms/LoopUnroll.cpp | 11 +- .../Dialect/Affine/Transforms/LoopUnrollAndJam.cpp | 9 +- .../Affine/Transforms/SimplifyAffineStructures.cpp | 6 +- .../Dialect/Affine/Transforms/SuperVectorize.cpp | 6 +- .../Dialect/Arithmetic/Transforms/Bufferize.cpp | 6 +- .../Dialect/Arithmetic/Transforms/ExpandOps.cpp | 6 +- mlir/lib/Dialect/Async/IR/Async.cpp | 4 +- .../Dialect/Async/Transforms/AsyncParallelFor.cpp | 12 +- .../IR}/BufferizableOpInterface.cpp | 286 +- .../IR}/BufferizationInterfaceImpl.cpp | 27 +- mlir/lib/Dialect/Bufferization/IR/CMakeLists.txt | 15 + .../Transforms/BufferDeallocation.cpp | 7 +- .../Dialect/Bufferization/Transforms/Bufferize.cpp | 85 +- .../Bufferization/Transforms/CMakeLists.txt | 7 + .../Transforms/OneShotAnalysis.cpp} | 313 +- mlir/lib/Dialect/GPU/IR/GPUDialect.cpp | 55 +- .../Dialect/GPU/Transforms/AllReduceLowering.cpp | 7 +- .../Dialect/GPU/Transforms/AsyncRegionRewriter.cpp | 14 +- .../lib/Dialect/GPU/Transforms/MemoryPromotion.cpp | 3 +- mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | 66 +- mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp | 11 +- mlir/lib/Dialect/LLVMIR/IR/TypeDetail.h | 24 +- .../LLVMIR/Transforms/LegalizeForExport.cpp | 3 +- .../ComprehensiveBufferize/AffineInterfaceImpl.cpp | 4 +- .../ComprehensiveBufferize/ArithInterfaceImpl.cpp | 4 +- .../Linalg/ComprehensiveBufferize/CMakeLists.txt | 24 +- .../ComprehensiveBufferize/LinalgInterfaceImpl.cpp | 15 +- .../ComprehensiveBufferize/ModuleBufferization.cpp | 15 +- .../ComprehensiveBufferize/SCFInterfaceImpl.cpp | 157 +- .../ComprehensiveBufferize/StdInterfaceImpl.cpp | 5 +- .../ComprehensiveBufferize/TensorInterfaceImpl.cpp | 46 +- .../ComprehensiveBufferize/VectorInterfaceImpl.cpp | 5 +- mlir/lib/Dialect/Linalg/IR/LinalgDialect.cpp | 14 +- mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | 62 +- mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt | 2 +- .../Transforms/ComprehensiveBufferizePass.cpp | 63 +- mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp | 34 +- .../Linalg/Transforms/ElementwiseOpFusion.cpp | 59 +- .../Dialect/Linalg/Transforms/Generalization.cpp | 6 +- .../Linalg/Transforms/InlineScalarOperands.cpp | 4 +- .../Linalg/Transforms/LinalgStrategyPasses.cpp | 44 +- mlir/lib/Dialect/Linalg/Transforms/Loops.cpp | 16 +- mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp | 4 +- mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp | 4 +- mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp | 21 +- mlir/lib/Dialect/PDLInterp/IR/PDLInterp.cpp | 4 +- mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp | 6 +- .../Dialect/Quant/Transforms/ConvertSimQuant.cpp | 6 +- mlir/lib/Dialect/SCF/SCF.cpp | 16 +- mlir/lib/Dialect/SCF/Transforms/Bufferize.cpp | 2 +- mlir/lib/Dialect/SCF/Transforms/ForToWhile.cpp | 18 +- .../SCF/Transforms/LoopCanonicalization.cpp | 4 +- .../Dialect/SCF/Transforms/LoopSpecialization.cpp | 12 +- .../Dialect/SCF/Transforms/ParallelLoopTiling.cpp | 4 +- mlir/lib/Dialect/SCF/Transforms/Utils.cpp | 15 +- mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp | 35 +- mlir/lib/Dialect/SPIRV/IR/TargetAndABI.cpp | 4 +- .../Dialect/SPIRV/Transforms/SPIRVConversion.cpp | 2 +- mlir/lib/Dialect/Shape/IR/Shape.cpp | 10 +- mlir/lib/Dialect/Shape/Transforms/Bufferize.cpp | 8 +- .../Shape/Transforms/RemoveShapeConstraints.cpp | 7 +- .../Shape/Transforms/ShapeToShapeLowering.cpp | 6 +- .../SparseTensor/Transforms/SparseTensorPasses.cpp | 3 +- .../SparseTensor/Transforms/Sparsification.cpp | 11 +- mlir/lib/Dialect/StandardOps/IR/Ops.cpp | 2 +- .../Dialect/StandardOps/Transforms/Bufferize.cpp | 6 +- .../Dialect/StandardOps/Transforms/ExpandOps.cpp | 6 +- .../StandardOps/Transforms/FuncBufferize.cpp | 3 +- mlir/lib/Dialect/Tensor/IR/TensorOps.cpp | 5 +- mlir/lib/Dialect/Tensor/Transforms/Bufferize.cpp | 6 +- mlir/lib/Dialect/Tosa/IR/TosaOps.cpp | 73 + .../Dialect/Tosa/Transforms/TosaInferShapes.cpp | 2 +- .../Tosa/Transforms/TosaMakeBroadcastable.cpp | 4 +- .../Tosa/Transforms/TosaOptionalDecompositions.cpp | 4 +- mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp | 42 + mlir/lib/ExecutionEngine/SparseTensorUtils.cpp | 7 +- mlir/lib/IR/AsmPrinter.cpp | 5 +- mlir/lib/IR/Block.cpp | 45 +- mlir/lib/IR/Builders.cpp | 4 +- mlir/lib/IR/BuiltinDialect.cpp | 17 +- mlir/lib/IR/BuiltinTypes.cpp | 81 +- mlir/lib/IR/CMakeLists.txt | 2 +- mlir/lib/IR/FunctionImplementation.cpp | 72 +- ...{FunctionSupport.cpp => FunctionInterfaces.cpp} | 117 +- mlir/lib/IR/Region.cpp | 7 +- mlir/lib/Parser/AttributeParser.cpp | 4 +- mlir/lib/Parser/Parser.cpp | 46 +- mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp | 10 +- .../Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp | 18 +- .../Target/SPIRV/Deserialization/Deserializer.cpp | 10 +- mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp | 2 +- mlir/lib/Transforms/BufferOptimizations.cpp | 12 +- mlir/lib/Transforms/BufferResultsToOutParams.cpp | 5 +- mlir/lib/Transforms/LoopCoalescing.cpp | 4 +- mlir/lib/Transforms/LoopFusion.cpp | 6 +- mlir/lib/Transforms/NormalizeMemRefs.cpp | 14 +- mlir/lib/Transforms/PipelineDataTransfer.cpp | 6 +- mlir/lib/Transforms/Utils/DialectConversion.cpp | 36 +- mlir/lib/Transforms/Utils/InliningUtils.cpp | 5 +- mlir/lib/Transforms/Utils/RegionUtils.cpp | 7 +- mlir/python/CMakeLists.txt | 23 + mlir/python/mlir/_mlir_libs/_mlir/dialects/pdl.pyi | 64 + mlir/python/mlir/dialects/PDLOps.td | 15 + mlir/python/mlir/dialects/_ods_common.py | 5 +- mlir/python/mlir/dialects/_pdl_ops_ext.py | 284 ++ .../mlir/dialects/{python_test.py => pdl.py} | 8 +- mlir/python/mlir/dialects/python_test.py | 2 +- mlir/python/requirements.txt | 3 +- mlir/test/CAPI/ir.c | 22 +- mlir/test/CAPI/pdl.c | 5 + .../Conversion/MathToSPIRV/math-to-glsl-spirv.mlir | 15 + .../Conversion/OpenMPToLLVM/convert-to-llvmir.mlir | 2 +- .../Conversion/SCFToStandard/convert-to-cfg.mlir | 2 +- .../TosaToLinalg/tosa-to-linalg-named.mlir | 10 +- .../Conversion/TosaToLinalg/tosa-to-linalg.mlir | 70 +- mlir/test/Dialect/Affine/ops.mlir | 2 +- mlir/test/Dialect/LLVMIR/func.mlir | 7 + mlir/test/Dialect/Linalg/bufferize.mlir | 2 +- mlir/test/Dialect/Linalg/canonicalize.mlir | 33 +- .../Linalg/comprehensive-function-bufferize.mlir | 6 +- .../comprehensive-module-bufferize-invalid.mlir | 72 +- .../comprehensive-module-bufferize-partial.mlir | 6 +- .../Linalg/comprehensive-module-bufferize.mlir | 59 +- mlir/test/Dialect/Linalg/detensorize_0d.mlir | 12 +- .../Dialect/Linalg/detensorize_br_operands.mlir | 4 +- mlir/test/Dialect/Linalg/detensorize_if.mlir | 12 +- mlir/test/Dialect/Linalg/detensorize_while.mlir | 4 +- .../Linalg/detensorize_while_impure_cf.mlir | 4 +- .../Dialect/Linalg/detensorize_while_pure_cf.mlir | 4 +- .../test/Dialect/Linalg/drop-unit-extent-dims.mlir | 16 +- mlir/test/Dialect/Linalg/fold-unit-trip-loops.mlir | 2 +- .../Dialect/Linalg/fusion-elementwise-ops.mlir | 52 +- mlir/test/Dialect/Linalg/fusion-indexed.mlir | 6 +- mlir/test/Dialect/Linalg/fusion-push-reshape.mlir | 8 +- mlir/test/Dialect/Linalg/fusion.mlir | 14 +- .../test/Dialect/Linalg/generalize-pad-tensor.mlir | 4 +- mlir/test/Dialect/Linalg/hoist-padding.mlir | 28 +- .../Dialect/Linalg/inline-scalar-operands.mlir | 4 +- mlir/test/Dialect/Linalg/invalid.mlir | 10 +- mlir/test/Dialect/Linalg/loops.mlir | 2 +- mlir/test/Dialect/Linalg/lower-pad-tensor.mlir | 6 +- mlir/test/Dialect/Linalg/named-ops.mlir | 4 +- mlir/test/Dialect/Linalg/pad.mlir | 10 +- mlir/test/Dialect/Linalg/parallel-loops.mlir | 2 +- mlir/test/Dialect/Linalg/reshape_fusion.mlir | 45 +- .../Linalg/reshape_linearization_fusion.mlir | 16 +- mlir/test/Dialect/Linalg/roundtrip.mlir | 4 +- .../Dialect/Linalg/tile-and-fuse-on-tensors.mlir | 10 +- mlir/test/Dialect/Linalg/tile.mlir | 2 +- mlir/test/Dialect/Linalg/vectorization.mlir | 20 +- mlir/test/Dialect/OpenMP/ops.mlir | 15 +- mlir/test/Dialect/SCF/canonicalize.mlir | 10 +- mlir/test/Dialect/Tosa/canonicalize.mlir | 49 + mlir/test/Dialect/Tosa/inlining.mlir | 8 +- mlir/test/Dialect/Tosa/ops.mlir | 8 +- mlir/test/IR/attribute.mlir | 4 + mlir/test/IR/locations.mlir | 2 +- mlir/test/IR/pretty-attributes.mlir | 8 +- mlir/test/IR/region.mlir | 2 +- .../Linalg/CPU/test-comprehensive-bufferize.mlir | 4 +- .../Dialect/Linalg/CPU/test-padtensor.mlir | 2 +- mlir/test/Target/LLVMIR/openmp-llvm.mlir | 75 +- mlir/test/lib/Analysis/TestLiveness.cpp | 7 +- mlir/test/lib/Analysis/TestMatchReduction.cpp | 6 +- mlir/test/lib/Analysis/TestMemRefBoundCheck.cpp | 8 +- .../lib/Analysis/TestMemRefDependenceCheck.cpp | 8 +- .../lib/Analysis/TestMemRefStrideCalculation.cpp | 10 +- mlir/test/lib/Analysis/TestSlice.cpp | 8 +- .../test/lib/Dialect/Affine/TestAffineDataCopy.cpp | 8 +- .../Affine/TestAffineLoopParametricTiling.cpp | 9 +- .../Dialect/Affine/TestAffineLoopUnswitching.cpp | 8 +- .../lib/Dialect/Affine/TestLoopPermutation.cpp | 8 +- .../lib/Dialect/Affine/TestVectorizationUtils.cpp | 20 +- mlir/test/lib/Dialect/DLTI/TestDataLayoutQuery.cpp | 6 +- mlir/test/lib/Dialect/Linalg/CMakeLists.txt | 2 +- .../Dialect/Linalg/TestComprehensiveBufferize.cpp | 23 +- .../Dialect/Linalg/TestLinalgCodegenStrategy.cpp | 10 +- .../lib/Dialect/Linalg/TestLinalgDistribution.cpp | 8 +- .../Dialect/Linalg/TestLinalgElementwiseFusion.cpp | 19 +- .../Dialect/Linalg/TestLinalgFusionTransforms.cpp | 22 +- .../test/lib/Dialect/Linalg/TestLinalgHoisting.cpp | 10 +- .../lib/Dialect/Linalg/TestLinalgTransforms.cpp | 32 +- mlir/test/lib/Dialect/Linalg/TestPadFusion.cpp | 7 +- .../Dialect/Math/TestAlgebraicSimplification.cpp | 7 +- mlir/test/lib/Dialect/Math/TestExpandTanh.cpp | 6 +- .../Dialect/Math/TestPolynomialApproximation.cpp | 7 +- mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp | 14 +- mlir/test/lib/Dialect/SPIRV/TestAvailability.cpp | 16 +- .../lib/Dialect/StandardOps/TestComposeSubView.cpp | 6 +- mlir/test/lib/Dialect/Test/TestDialect.cpp | 2 +- mlir/test/lib/Dialect/Test/TestPatterns.cpp | 62 +- mlir/test/lib/Dialect/Test/TestTraits.cpp | 7 +- mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp | 8 +- .../lib/Dialect/Vector/TestVectorTransforms.cpp | 100 +- mlir/test/lib/IR/TestDominance.cpp | 9 +- mlir/test/lib/IR/TestFunc.cpp | 12 +- mlir/test/lib/IR/TestMatchers.cpp | 8 +- mlir/test/lib/IR/TestTypes.cpp | 8 +- mlir/test/lib/Pass/TestPassManager.cpp | 10 +- mlir/test/lib/Transforms/TestConstantFold.cpp | 9 +- mlir/test/lib/Transforms/TestInlining.cpp | 6 +- mlir/test/lib/Transforms/TestLoopFusion.cpp | 11 +- mlir/test/lib/Transforms/TestLoopMapping.cpp | 6 +- .../lib/Transforms/TestLoopParametricTiling.cpp | 7 +- mlir/test/lib/Transforms/TestLoopUnrolling.cpp | 6 +- mlir/test/python/CMakeLists.txt | 4 + mlir/test/python/dialects/pdl_ops.py | 318 ++ mlir/test/python/dialects/pdl_types.py | 150 + mlir/test/python/dialects/python_test.py | 59 + mlir/test/python/ir/operation.py | 4 +- mlir/test/python/lib/PythonTestCAPI.cpp | 17 + mlir/test/python/lib/PythonTestCAPI.h | 10 + mlir/test/python/lib/PythonTestDialect.cpp | 16 + mlir/test/python/lib/PythonTestDialect.h | 6 + mlir/test/python/lib/PythonTestModule.cpp | 17 + mlir/test/python/python_test_ops.td | 27 + mlir/unittests/Pass/PassManagerTest.cpp | 1 - mlir/utils/textmate/mlir.json | 130 +- openmp/docs/design/Runtimes.rst | 18 + openmp/libomptarget/DeviceRTL/CMakeLists.txt | 2 +- openmp/libomptarget/DeviceRTL/include/Types.h | 3 +- openmp/libomptarget/DeviceRTL/src/Workshare.cpp | 4 +- openmp/libomptarget/include/device.h | 47 +- openmp/libomptarget/plugins/amdgpu/CMakeLists.txt | 2 +- openmp/libomptarget/src/api.cpp | 9 +- openmp/libomptarget/src/device.cpp | 77 +- openmp/libomptarget/src/omptarget.cpp | 169 +- openmp/libomptarget/src/rtl.cpp | 15 +- openmp/libomptarget/test/lit.cfg | 12 +- .../test/mapping/delete_inf_refcount.c | 1 - .../invariant_load_base_pointer_conditional.ll | 3 +- ...tidim_2d_parametric_array_static_loop_bounds.ll | 3 +- polly/test/CodeGen/no-overflow-tracking.ll | 9 +- .../run-time-condition-with-scev-parameters.ll | 3 +- .../allow-all-parameters-dereferencable.ll | 2 +- .../test/ScopInfo/invariant_load_zext_parameter.ll | 3 +- utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 145 +- .../llvm-project-overlay/mlir/python/BUILD.bazel | 2 +- .../llvm-project-overlay/mlir/test/BUILD.bazel | 5 +- .../mlir/unittests/BUILD.bazel | 3 + 1139 files changed, 43200 insertions(+), 27405 deletions(-) create mode 100644 bolt/test/AArch64/jmp-after-ret.s create mode 100644 bolt/test/X86/jmp-after-ret.s create mode 100644 clang/docs/ClangOffloadWrapper.rst create mode 100644 clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbt.c create mode 100644 clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbt.c create mode 100644 clang/test/CodeGen/debug-info-codeview-buildinfo.c create mode 100644 clang/test/CodeGenCUDA/amdgpu-asan-printf.cu create mode 100644 clang/test/OpenMP/irbuilder_simd.cpp create mode 100644 clang/test/Sema/avr-flash.c create mode 100644 clang/test/Sema/test-wunaligned-access.c create mode 100644 clang/test/Sema/test-wunaligned-access.cpp create mode 100644 clang/test/VFS/Inputs/vfsoverlay-root-relative.yaml create mode 100644 clang/test/VFS/vfsoverlay-relative-root.c rename {libcxx/cmake => cmake}/Modules/HandleOutOfTreeLLVM.cmake (97%) rename flang/lib/Optimizer/{Transforms => Dialect}/Inliner.cpp (74%) create mode 100644 flang/test/Semantics/assign08.f90 delete mode 100644 libc/include/__llvm-libc-stdc-types.h delete mode 100644 libc/include/__posix-types.h create mode 100644 libc/include/llvm-libc-types/CMakeLists.txt create mode 100644 libc/include/llvm-libc-types/double_t.h create mode 100644 libc/include/llvm-libc-types/float_t.h copy mlir/test/python/lib/PythonTestCAPI.cpp => libc/include/llvm-libc-types/off_t [...] create mode 100644 libc/include/llvm-libc-types/size_t.h copy mlir/test/python/lib/PythonTestCAPI.cpp => libc/include/llvm-libc-types/ssize [...] create mode 100644 lld/test/MachO/start-lib.s create mode 100644 llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py create mode 100644 llvm/test/Bitcode/thinlto-index-disassembled-by-llvm-dis.ll create mode 100644 llvm/test/CodeGen/AArch64/shift-accumulate.ll create mode 100644 llvm/test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-asserts.ll create mode 100644 llvm/test/CodeGen/AMDGPU/GlobalISel/call-outgoing-stack-args.ll create mode 100644 llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-amdgpu-wave-add [...] create mode 100644 llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgpu-wave-a [...] create mode 100644 llvm/test/CodeGen/AVR/elpm.ll create mode 100644 llvm/test/CodeGen/AVR/lpmx.ll create mode 100644 llvm/test/CodeGen/MLRegalloc/Inputs/input.ll create mode 100644 llvm/test/CodeGen/MLRegalloc/dev-mode-log-2-fcts.ll create mode 100644 llvm/test/CodeGen/MLRegalloc/dev-mode-logging.ll create mode 100644 llvm/test/CodeGen/MLRegalloc/dev-rel-equivalence.ll create mode 100644 llvm/test/CodeGen/MLRegalloc/rel-codepath.ll create mode 100644 llvm/test/CodeGen/PowerPC/aix-fptoint.ll create mode 100644 llvm/test/CodeGen/RISCV/rv32zbt-intrinsic.ll create mode 100644 llvm/test/CodeGen/RISCV/rv64zbt-intrinsic.ll create mode 100644 llvm/test/CodeGen/RISCV/rvv/reg-alloc-reserve-bp.ll create mode 100644 llvm/test/CodeGen/RISCV/rvv/vnsra-sdnode.ll create mode 100644 llvm/test/CodeGen/RISCV/rvv/vnsrl-sdnode.ll create mode 100644 llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll create mode 100644 llvm/test/DebugInfo/NVPTX/crash-missing-DISubprogram.ll create mode 100644 llvm/test/ExecutionEngine/JITLink/RISCV/riscv_reloc_add.s create mode 100644 llvm/test/MC/Disassembler/AArch64/armv8r-sysreg.txt create mode 100644 llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overi [...] create mode 100644 llvm/test/Transforms/Coroutines/coro-align-01.ll create mode 100644 llvm/test/Transforms/Coroutines/coro-align-02.ll create mode 100644 llvm/test/Transforms/Coroutines/coro-align-03.ll create mode 100644 llvm/test/Transforms/Coroutines/coro-align-04.ll create mode 100644 llvm/test/Transforms/Coroutines/coro-align-05.ll create mode 100644 llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll create mode 100644 llvm/test/Transforms/OpenMP/icv_tracking_out_of_scope.ll create mode 100644 llvm/test/Transforms/PhaseOrdering/AArch64/loopflatten.ll create mode 100644 llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-aarch64.test create mode 100644 llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-arm.test create mode 100644 llvm/test/tools/yaml2obj/XCOFF/aux-symbols.yaml create mode 100644 llvm/utils/gn/secondary/lldb/source/Plugins/REPL/Clang/BUILD.gn rename mlir/include/mlir/Dialect/{Linalg/ComprehensiveBufferize => Bufferization/I [...] rename mlir/include/mlir/Dialect/{Linalg/ComprehensiveBufferize => Bufferization/I [...] rename mlir/include/mlir/Dialect/{Linalg/ComprehensiveBufferize => Bufferization/I [...] create mode 100644 mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h delete mode 100644 mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/Compreh [...] create mode 100644 mlir/include/mlir/IR/FunctionInterfaces.h create mode 100644 mlir/include/mlir/IR/FunctionInterfaces.td delete mode 100644 mlir/include/mlir/IR/FunctionSupport.h create mode 100644 mlir/lib/Bindings/Python/DialectPDL.cpp rename mlir/lib/Dialect/{Linalg/ComprehensiveBufferize => Bufferization/IR}/Buffer [...] rename mlir/lib/Dialect/{Linalg/ComprehensiveBufferize => Bufferization/IR}/Buffer [...] rename mlir/lib/Dialect/{Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp [...] rename mlir/lib/IR/{FunctionSupport.cpp => FunctionInterfaces.cpp} (77%) create mode 100644 mlir/python/mlir/_mlir_libs/_mlir/dialects/pdl.pyi create mode 100644 mlir/python/mlir/dialects/PDLOps.td create mode 100644 mlir/python/mlir/dialects/_pdl_ops_ext.py copy mlir/python/mlir/dialects/{python_test.py => pdl.py} (50%) create mode 100644 mlir/test/python/dialects/pdl_ops.py create mode 100644 mlir/test/python/dialects/pdl_types.py