[llvm-branch-commits] [clang] [Clang] define memory scopes as a builtin enum (PR #185408)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Mar 10 22:55:50 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {undef deprecator}-->
:warning: undef deprecator found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef([^a-zA-Z0-9_-]|$)|UndefValue::get)' 'HEAD~1' HEAD clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/init-variables-mathheader.cpp clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-bounds-constant-array-index-includestyle.cpp clang-tools-extra/test/clang-tidy/checkers/performance/inefficient-string-concatenation-strict.cpp clang-tools-extra/test/clang-tidy/checkers/performance/no-automatic-move-allowed-types.cpp clang-tools-extra/test/clang-tidy/checkers/performance/type-promotion-in-math-fn-includestyle.cpp clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param-includestyle.cpp clang/lib/Analysis/Scalable/Serialization/JSONFormat/JSONEntitySummaryEncoding.cpp clang/lib/Analysis/Scalable/Serialization/JSONFormat/JSONEntitySummaryEncoding.h clang/test/CIR/CodeGen/instantiate-init.cpp clang/test/CIR/CodeGen/virtual-fn-calls-eh.cpp clang/test/CIR/CodeGenBuiltins/builtin-bcopy.cpp clang/test/Sema/builtin-memory-scope-conflict.c clang/test/Sema/builtin-memory-scope-shadowing.c clang/test/Sema/builtin-memory-scope.c clang/test/Sema/scoped-atomic-scope-deprecation.c clang/tools/ssaf-linker/SSAFLinker.cpp compiler-rt/test/tysan/halt_on_error.c libc/hdr/types/Elf32_auxv_t.h libc/hdr/types/Elf64_auxv_t.h libc/include/llvm-libc-types/Elf32_auxv_t.h libc/include/llvm-libc-types/Elf64_auxv_t.h llvm/test/CodeGen/AArch64/f16f32dot-fixed-length-fdot.ll llvm/test/Transforms/InstCombine/RISCV/riscv-vmv-v-x.ll llvm/test/Transforms/SLPVectorizer/X86/lhs-constant-non-cummutative.ll llvm/test/Transforms/SLPVectorizer/non-power-of-2-bswap.ll llvm/test/Transforms/SandboxVectorizer/external_uses.ll llvm/test/Transforms/VectorCombine/arbitrary-precision-int.ll mlir/unittests/Interfaces/SideEffectInterfacesTest.cpp bolt/include/bolt/Passes/DataflowAnalysis.h clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp clang-tools-extra/clang-tidy/performance/UseStdMoveCheck.cpp clang-tools-extra/test/clang-tidy/checkers/abseil/redundant-strcat-calls.cpp clang-tools-extra/test/clang-tidy/checkers/abseil/string-find-startswith.cpp clang-tools-extra/test/clang-tidy/checkers/boost/use-ranges-pipe.cpp clang-tools-extra/test/clang-tidy/checkers/boost/use-ranges.cpp clang-tools-extra/test/clang-tidy/checkers/boost/use-to-string.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/dangling-handle.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-prefixsuffixname.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler-minimal.c clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler-posix.c clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler.c clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/sizeof-container.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/std-namespace-modification.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/string-constructor-options.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/string-integer-assignment.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-include.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-stringview-data-usage-options.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-stringview-data-usage.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access.cpp clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-return-value.cpp clang-tools-extra/test/clang-tidy/checkers/cert/uppercase-literal-suffix-integer.cpp clang-tools-extra/test/clang-tidy/checkers/llvm/include-order.cpp clang-tools-extra/test/clang-tidy/checkers/llvm/use-ranges.cpp clang-tools-extra/test/clang-tidy/checkers/llvmlibc/restrict-system-libc-headers.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-default-init.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/pass-by-value-macro-header.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/replace-random-shuffle.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/return-braced-init-list.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/shrink-to-fit.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace-ignore-implicit-constructors.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-nodiscard.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-ranges-pipe.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-ranges.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-scope-lock-warn-on-using-and-typedef-false.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-scoped-lock-no-crash.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-scoped-lock-warn-on-single-locks-false.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-scoped-lock.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-starts-ends-with.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-format-custom.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-format-fmt.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-format-member.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-format.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-absl.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-custom.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-fmt.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-member.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view-custom-view.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view-cxx20.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view-ignored.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-transform-lambdas-cxx14.cpp clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-transform-lambdas.cpp clang-tools-extra/test/clang-tidy/checkers/performance/faster-string-find.cpp clang-tools-extra/test/clang-tidy/checkers/performance/inefficient-string-concatenation.cpp clang-tools-extra/test/clang-tidy/checkers/performance/inefficient-vector-operation.cpp clang-tools-extra/test/clang-tidy/checkers/performance/move-constructor-init.cpp clang-tools-extra/test/clang-tidy/checkers/performance/string-view-conversions-cxx20.cpp clang-tools-extra/test/clang-tidy/checkers/performance/string-view-conversions.cpp clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param.cpp clang-tools-extra/test/clang-tidy/checkers/performance/use-std-move.cpp clang-tools-extra/test/clang-tidy/checkers/readability/container-contains.cpp clang-tools-extra/test/clang-tidy/checkers/readability/container-data-pointer.cpp clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp clang-tools-extra/test/clang-tidy/checkers/readability/convert-member-functions-to-static-deducing-this.cpp clang-tools-extra/test/clang-tidy/checkers/readability/else-after-return.cpp clang-tools-extra/test/clang-tidy/checkers/readability/isolate-declaration-cxx17.cpp clang-tools-extra/test/clang-tidy/checkers/readability/qualified-auto-cxx20.cpp clang-tools-extra/test/clang-tidy/checkers/readability/qualified-auto.cpp clang-tools-extra/test/clang-tidy/checkers/readability/redundant-smartptr-get.cpp clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-cstr-format.cpp clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-cstr-function.cpp clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-cstr.cpp clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-init.cpp clang-tools-extra/test/clang-tidy/checkers/readability/simplify-subscript-expr.cpp clang-tools-extra/test/clang-tidy/checkers/readability/string-compare-custom-string-classes.cpp clang-tools-extra/test/clang-tidy/checkers/readability/string-compare.cpp clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-cxx23.cpp clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-floating-point.cpp clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-hexadecimal-floating-point.cpp clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-integer-custom-list.cpp clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-integer-ms.cpp clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-integer.cpp clang/include/clang/AST/ASTContext.h clang/include/clang/AST/Decl.h clang/include/clang/AST/DeclID.h clang/include/clang/Analysis/Scalable/EntityLinker/EntityLinker.h clang/include/clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h clang/include/clang/Analysis/Scalable/Serialization/JSONFormat.h clang/include/clang/Analysis/Scalable/Serialization/SerializationFormat.h clang/include/clang/Analysis/Scalable/Support/ErrorBuilder.h clang/include/clang/Sema/SemaHLSL.h clang/lib/AST/ASTContext.cpp clang/lib/AST/Decl.cpp clang/lib/AST/TypePrinter.cpp clang/lib/Analysis/Scalable/EntityLinker/EntityLinker.cpp clang/lib/Analysis/Scalable/Serialization/JSONFormat/JSONFormatImpl.cpp clang/lib/Analysis/Scalable/Serialization/JSONFormat/JSONFormatImpl.h clang/lib/Basic/Targets/SPIR.h clang/lib/Basic/Targets/WebAssembly.cpp clang/lib/Basic/Targets/WebAssembly.h clang/lib/CIR/CodeGen/CIRGenBuilder.h clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp clang/lib/CIR/CodeGen/CIRGenCall.cpp clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp clang/lib/CodeGen/CGExprScalar.cpp clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/TargetBuiltins/PPC.cpp clang/lib/Frontend/InitPreprocessor.cpp clang/lib/Headers/gpuintrin.h clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.h clang/lib/Sema/HLSLExternalSemaSource.cpp clang/lib/Sema/SemaChecking.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaDeclAttr.cpp clang/lib/Sema/SemaHLSL.cpp clang/lib/Sema/SemaLookup.cpp clang/lib/Sema/SemaModule.cpp clang/lib/Sema/SemaOverload.cpp clang/lib/Sema/SemaPPC.cpp clang/lib/Sema/SemaTemplateInstantiateDecl.cpp clang/lib/Sema/SemaType.cpp clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.cpp clang/test/CIR/CodeGen/array-ctor.cpp clang/test/CIR/CodeGen/array-dtor.cpp clang/test/CIR/CodeGen/assume-attr.cpp clang/test/CIR/CodeGen/binop.cpp clang/test/CIR/CodeGen/cmp.cpp clang/test/CIR/CodeGen/complex-compound-assignment.cpp clang/test/CIR/CodeGen/complex-mul-div.cpp clang/test/CIR/CodeGen/complex.cpp clang/test/CIR/CodeGen/cxx-default-init.cpp clang/test/CIR/CodeGen/destructors.cpp clang/test/CIR/CodeGen/dynamic-cast-exact.cpp clang/test/CIR/CodeGen/dynamic-cast.cpp clang/test/CIR/CodeGen/forrange.cpp clang/test/CIR/CodeGen/global-array-dtor.cpp clang/test/CIR/CodeGen/global-init.cpp clang/test/CIR/CodeGen/local-vars.cpp clang/test/CIR/CodeGen/loop.cpp clang/test/CIR/CodeGen/new.cpp clang/test/CIR/CodeGen/pointer-to-data-member-cast.cpp clang/test/CIR/CodeGen/pointer-to-data-member-cmp.cpp clang/test/CIR/CodeGen/pointer-to-data-member.cpp clang/test/CIR/CodeGen/pointer-to-member-func-cast.cpp clang/test/CIR/CodeGen/pointer-to-member-func-cmp.cpp clang/test/CIR/CodeGen/pointer-to-member-func.cpp clang/test/CIR/CodeGen/static-local.cpp clang/test/CIR/CodeGen/ternary.cpp clang/test/CIR/CodeGen/throws.cpp clang/test/CIR/CodeGen/virtual-function-calls.cpp clang/test/CIR/CodeGen/vla.c clang/test/CIR/CodeGenBuiltins/X86/avx512bw-builtins.c clang/test/CIR/CodeGenBuiltins/X86/avx512dq-builtins.c clang/test/CIR/CodeGenBuiltins/X86/avx512f-builtins.c clang/test/CIR/CodeGenCXX/typeid-should-throw.cpp clang/test/CIR/CodeGenCXX/typeid.cpp clang/test/CIR/CodeGenOpenACC/atomic-capture.cpp clang/test/CIR/CodeGenOpenACC/atomic-read.cpp clang/test/CIR/CodeGenOpenACC/combined-firstprivate-clause.cpp clang/test/CIR/CodeGenOpenACC/combined-private-clause.cpp clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-default-ops.cpp clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-float.cpp clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-inline-ops.cpp clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-int.cpp clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-outline-ops.cpp clang/test/CIR/CodeGenOpenACC/combined.cpp clang/test/CIR/CodeGenOpenACC/compute-firstprivate-clause.c clang/test/CIR/CodeGenOpenACC/compute-firstprivate-clause.cpp clang/test/CIR/CodeGenOpenACC/compute-private-clause.cpp clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-default-ops.c clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-default-ops.cpp clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-float.c clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-float.cpp clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-inline-ops.cpp clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-int.c clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-int.cpp clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-outline-ops.cpp clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-unsigned-int.c clang/test/CIR/CodeGenOpenACC/data.c clang/test/CIR/CodeGenOpenACC/enter-data.c clang/test/CIR/CodeGenOpenACC/exit-data.c clang/test/CIR/CodeGenOpenACC/firstprivate-clause-recipes.cpp clang/test/CIR/CodeGenOpenACC/kernels.c clang/test/CIR/CodeGenOpenACC/loop-private-clause.cpp clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-default-ops.cpp clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-float.cpp clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-inline-ops.cpp clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-int.cpp clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-outline-ops.cpp clang/test/CIR/CodeGenOpenACC/parallel.c clang/test/CIR/CodeGenOpenACC/private-clause-array-recipes-CtorDtor.cpp clang/test/CIR/CodeGenOpenACC/private-clause-array-recipes-NoOps.cpp clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-NoOps.cpp clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-int.cpp clang/test/CIR/CodeGenOpenACC/private-clause-pointer-recipes-CtorDtor.cpp clang/test/CIR/CodeGenOpenACC/private-clause-pointer-recipes-NoOps.cpp clang/test/CIR/CodeGenOpenACC/private-clause-pointer-recipes-int.cpp clang/test/CIR/CodeGenOpenACC/reduction-clause-recipes.cpp clang/test/CIR/CodeGenOpenACC/serial.c clang/test/CIR/CodeGenOpenACC/update.c clang/test/CIR/CodeGenOpenMP/omp-llvmir.c clang/test/CodeGen/AArch64/neon/intrinsics.c clang/test/CodeGen/PowerPC/builtins-amo-err.c clang/test/CodeGen/PowerPC/builtins-ppc-amo.c clang/test/Driver/wasm-features.c clang/test/Headers/gpuintrin.c clang/test/Lexer/cxx20-module-directive.cpp clang/test/Preprocessor/init-aarch64.c clang/test/Preprocessor/init-loongarch.c clang/test/Preprocessor/init.c clang/test/Preprocessor/wasm-target-features.c clang/test/Sema/scoped-atomic-ops.c clang/unittests/Analysis/Scalable/EntityLinkerTest.cpp clang/unittests/Analysis/Scalable/Registries/SerializationFormatRegistryTest.cpp clang/unittests/Analysis/Scalable/Serialization/JSONFormatTest/JSONFormatTest.cpp clang/unittests/Analysis/Scalable/Serialization/JSONFormatTest/LUSummaryTest.cpp clang/unittests/Analysis/Scalable/Serialization/JSONFormatTest/TUSummaryTest.cpp compiler-rt/lib/scudo/standalone/mem_map_fuchsia.cpp compiler-rt/lib/scudo/standalone/primary64.h compiler-rt/lib/tysan/tysan.cpp compiler-rt/lib/tysan/tysan_flags.inc flang-rt/lib/cuda/descriptor.cpp flang-rt/lib/cuda/memory.cpp flang-rt/lib/runtime/execute.cpp flang-rt/unittests/Runtime/CommandTest.cpp flang/include/flang/Optimizer/Dialect/FIROps.h flang/include/flang/Optimizer/HLFIR/Passes.h flang/include/flang/Parser/openmp-utils.h flang/include/flang/Runtime/CUDA/common.h flang/include/flang/Semantics/openmp-utils.h flang/include/flang/Semantics/tools.h flang/lib/Optimizer/CodeGen/CodeGen.cpp flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp flang/lib/Optimizer/Passes/Pipelines.cpp flang/lib/Parser/openmp-utils.cpp flang/lib/Semantics/check-call.cpp flang/lib/Semantics/check-omp-loop.cpp flang/lib/Semantics/openmp-utils.cpp flang/lib/Semantics/tools.cpp libc/include/llvm-libc-macros/link-macros.h libc/include/llvm-libc-macros/sys-auxv-macros.h libc/src/__support/GPU/utils.h libc/src/__support/OSUtil/linux/auxv.h libc/src/string/strcmp.cpp libc/src/string/strcoll.cpp libc/src/string/strncmp.cpp libc/test/src/string/strcmp_test.cpp libc/test/src/string/strcoll_test.cpp libc/test/src/string/strncmp_test.cpp libc/test/src/sys/socket/linux/send_recv_test.cpp libc/test/src/sys/socket/linux/sendmsg_recvmsg_test.cpp libc/test/src/sys/socket/linux/sendto_recvfrom_test.cpp libc/test/src/sys/time/utimes_test.cpp libc/test/src/time/mktime_test.cpp lld/MachO/ConcatOutputSection.cpp lld/MachO/ConcatOutputSection.h lldb/source/Core/PluginManager.cpp lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp lldb/source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.cpp lldb/source/Plugins/DynamicLoader/wasm-DYLD/DynamicLoaderWasmDYLD.cpp lldb/source/Plugins/DynamicLoader/wasm-DYLD/DynamicLoaderWasmDYLD.h lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp lldb/source/Plugins/Platform/MacOSX/PlatformRemoteMacOSX.cpp lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp lldb/source/Plugins/RegisterTypeBuilder/RegisterTypeBuilderClang.cpp lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp lldb/test/API/api/command-return-object/main.cpp lldb/tools/lldb-test/SystemInitializerTest.cpp lldb/unittests/Platform/PlatformDarwinTest.cpp lldb/unittests/Process/ProcessTraceTest.cpp lldb/unittests/Target/LocateModuleCallbackTest.cpp llvm/include/llvm/Analysis/TargetTransformInfoImpl.h llvm/include/llvm/CodeGen/AsmPrinter.h llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h llvm/include/llvm/CodeGen/MIRParser/MIParser.h llvm/include/llvm/CodeGen/MIRYamlMapping.h llvm/include/llvm/CodeGen/MachineBasicBlock.h llvm/include/llvm/CodeGen/MachineFunction.h llvm/include/llvm/MC/MCSymbolGOFF.h llvm/include/llvm/Support/UniqueBBID.h llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.h llvm/lib/Analysis/DependenceAnalysis.cpp llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp llvm/lib/CodeGen/InsertCodePrefetch.cpp llvm/lib/CodeGen/MIRParser/MIParser.cpp llvm/lib/CodeGen/MIRParser/MIRParser.cpp llvm/lib/CodeGen/MIRPrinter.cpp llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp llvm/lib/MC/MCAsmInfoGOFF.cpp llvm/lib/TableGen/TGParser.cpp llvm/lib/TableGen/TGParser.h llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp llvm/lib/Target/AArch64/AArch64ConditionOptimizer.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64StackTagging.cpp llvm/lib/Target/AMDGPU/AMDGPU.h llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp llvm/lib/Target/AMDGPU/AMDGPULowerVGPREncoding.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h llvm/lib/Target/AMDGPU/SIDefines.h llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp llvm/lib/Target/Hexagon/HexagonInstrInfo.h llvm/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h llvm/lib/Target/NVPTX/NVPTXDwarfDebug.cpp llvm/lib/Target/NVPTX/NVPTXDwarfDebug.h llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp llvm/lib/Target/PowerPC/PPCISelLowering.cpp llvm/lib/Target/PowerPC/PPCISelLowering.h llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp llvm/lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.h llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp llvm/lib/Target/X86/X86ISelLowering.cpp llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp llvm/lib/Transforms/Vectorize/VectorCombine.cpp llvm/test/Analysis/CostModel/AMDGPU/exp.ll llvm/test/Analysis/CostModel/AMDGPU/exp10.ll llvm/test/Analysis/CostModel/AMDGPU/exp2.ll llvm/test/Analysis/DDG/basic-b.ll llvm/test/Analysis/DependenceAnalysis/Banerjee.ll llvm/test/Analysis/DependenceAnalysis/BasePtrBug.ll llvm/test/Analysis/DependenceAnalysis/DADelin.ll llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll llvm/test/Analysis/DependenceAnalysis/MIVCheckConst.ll llvm/test/Analysis/DependenceAnalysis/NonCanonicalizedSubscript.ll llvm/test/Analysis/DependenceAnalysis/Preliminary.ll llvm/test/Analysis/DependenceAnalysis/PreliminaryNoValidityCheckFixedSize.ll llvm/test/Analysis/DependenceAnalysis/Propagating.ll llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheck.ll llvm/test/Analysis/DependenceAnalysis/StrongSIV.ll llvm/test/Analysis/DependenceAnalysis/SymbolicRDIV.ll llvm/test/Analysis/DependenceAnalysis/SymbolicSIV.ll llvm/test/Analysis/DependenceAnalysis/WeakCrossingSIV.ll llvm/test/Analysis/DependenceAnalysis/WeakZeroDstSIV.ll llvm/test/Analysis/DependenceAnalysis/WeakZeroSrcSIV.ll llvm/test/Analysis/DependenceAnalysis/becount-couldnotcompute.ll llvm/test/Analysis/DependenceAnalysis/exact-rdiv-addrec-wrap.ll llvm/test/Analysis/DependenceAnalysis/exact-siv-addrec-wrap.ll llvm/test/Analysis/DependenceAnalysis/strong-siv-addrec-wrap.ll llvm/test/Analysis/DependenceAnalysis/weak-crossing-siv-addrec-wrap.ll llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-overflow.ll llvm/test/CodeGen/AArch64/arm64ec-entry-thunks.ll llvm/test/CodeGen/AArch64/clmul-fixed.ll llvm/test/CodeGen/AArch64/movi64_sve.ll llvm/test/CodeGen/AArch64/stack-tagging-split-lifetime.ll llvm/test/CodeGen/AArch64/sve-streaming-mode-cvt-fp-int-fp.ll llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-int-to-fp.ll llvm/test/CodeGen/AArch64/sve2p1-fixed-length-fdot.ll llvm/test/CodeGen/PowerPC/amo-enable.ll llvm/test/CodeGen/SystemZ/zos-func-alias.ll llvm/test/CodeGen/SystemZ/zos-section-1.ll llvm/test/CodeGen/SystemZ/zos-symbol-1.ll llvm/test/CodeGen/SystemZ/zos-symbol-2.ll llvm/test/CodeGen/Thumb2/mve-gather-increment.ll llvm/test/CodeGen/WebAssembly/simd-memcmp.ll llvm/test/CodeGen/WebAssembly/simd-reductions.ll llvm/test/CodeGen/X86/basic-block-sections-code-prefetch.ll llvm/test/CodeGen/X86/clmul-vector.ll llvm/test/CodeGen/X86/known-pow2.ll llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll llvm/test/Transforms/InstCombine/get_active_lane_mask.ll llvm/test/Transforms/InstSimplify/and-or-implied-cond.ll llvm/test/Transforms/LoopFusion/da_separate_loops.ll llvm/test/Transforms/LoopInterchange/lcssa-preheader.ll llvm/test/Transforms/LoopUnrollAndJam/unroll-and-jam.ll llvm/unittests/Transforms/Vectorize/SandboxVectorizer/DependencyGraphTest.cpp llvm/utils/TableGen/Common/CodeGenRegisters.cpp mlir/include/mlir/Dialect/OpenACC/OpenACC.h mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTypes.h mlir/include/mlir/Dialect/Transform/Interfaces/TransformInterfaces.h mlir/include/mlir/IR/Iterators.h mlir/include/mlir/Interfaces/SideEffectInterfaces.h mlir/lib/Analysis/AliasAnalysis/LocalAliasAnalysis.cpp mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp mlir/lib/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.cpp mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp mlir/lib/Dialect/OpenACC/Utils/OpenACCUtilsLoop.cpp mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp mlir/lib/Dialect/Vector/Transforms/VectorTransferOpTransforms.cpp mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp mlir/lib/Dialect/XeGPU/TransformOps/XeGPUTransformOps.cpp mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp mlir/lib/Transforms/CSE.cpp mlir/test/lib/Dialect/Test/TestOpDefs.cpp mlir/test/lib/Dialect/Test/TestOps.h mlir/test/lib/IR/TestVisitors.cpp mlir/unittests/Dialect/OpenACC/OpenACCUtilsLoopTest.cpp offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/common/src/RPC.cpp
``````````
</details>
The following files introduce new uses of undef:
- llvm/test/CodeGen/Thumb2/mve-gather-increment.ll
[Undef](https://llvm.org/docs/LangRef.html#undefined-values) is now deprecated and should only be used in the rare cases where no replacement is possible. For example, a load of uninitialized memory yields `undef`. You should use `poison` values for placeholders instead.
In tests, avoid using `undef` and having tests that trigger undefined behavior. If you need an operand with some unimportant value, you can add a new argument to the function and use that instead.
For example, this is considered a bad practice:
```llvm
define void @fn() {
...
br i1 undef, ...
}
```
Please use the following instead:
```llvm
define void @fn(i1 %cond) {
...
br i1 %cond, ...
}
```
Please refer to the [Undefined Behavior Manual](https://llvm.org/docs/UndefinedBehavior.html) for more information.
https://github.com/llvm/llvm-project/pull/185408
More information about the llvm-branch-commits
mailing list