[llvm-branch-commits] [flang] [llvm] [flang][OpenMP] Map basic `local` specifiers to `private` clauses (PR #142735)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 11 00:46:10 PDT 2025


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 llvm/test/CodeGen/X86/bsf.ll flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp llvm/lib/Transforms/Coroutines/CoroSplit.cpp llvm/test/CodeGen/AArch64/aarch64-bif-gen.ll llvm/test/CodeGen/AArch64/aarch64-bit-gen.ll llvm/test/CodeGen/AArch64/abs.ll llvm/test/CodeGen/AArch64/arm64-neon-copy.ll llvm/test/CodeGen/AArch64/arm64-neon-simd-ldst-one.ll llvm/test/CodeGen/AArch64/arm64-neon-v8.1a.ll llvm/test/CodeGen/AArch64/arm64-vcvt_f.ll llvm/test/CodeGen/AArch64/arm64-vector-insertion.ll llvm/test/CodeGen/AArch64/bswap.ll llvm/test/CodeGen/AArch64/concat-vector.ll llvm/test/CodeGen/AArch64/double_reduct.ll llvm/test/CodeGen/AArch64/f16-instructions.ll llvm/test/CodeGen/AArch64/faddsub.ll llvm/test/CodeGen/AArch64/fcopysign.ll llvm/test/CodeGen/AArch64/fcvt.ll llvm/test/CodeGen/AArch64/fdiv.ll llvm/test/CodeGen/AArch64/fminimummaximum.ll llvm/test/CodeGen/AArch64/fminmax.ll llvm/test/CodeGen/AArch64/fmla.ll llvm/test/CodeGen/AArch64/fmul.ll llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll llvm/test/CodeGen/AArch64/fptrunc.ll llvm/test/CodeGen/AArch64/fsqrt.ll llvm/test/CodeGen/AArch64/insertextract.ll llvm/test/CodeGen/AArch64/itofp.ll llvm/test/CodeGen/AArch64/llvm.exp10.ll llvm/test/CodeGen/AArch64/popcount.ll llvm/test/CodeGen/AArch64/ptradd.ll llvm/test/CodeGen/AArch64/shift.ll llvm/test/CodeGen/AArch64/store.ll llvm/test/CodeGen/AArch64/vec-combine-compare-to-bitmask.ll llvm/test/CodeGen/AArch64/vecreduce-fadd-strict.ll llvm/test/CodeGen/AArch64/vecreduce-fmax-legalization-nan.ll llvm/test/CodeGen/AArch64/vecreduce-fmax-legalization.ll llvm/test/CodeGen/AArch64/vecreduce-fmaximum.ll llvm/test/CodeGen/AArch64/vecreduce-fmin-legalization.ll llvm/test/CodeGen/AArch64/vecreduce-fminimum.ll llvm/test/CodeGen/AArch64/vecreduce-fmul-strict.ll llvm/test/CodeGen/AArch64/vecreduce-fmul.ll llvm/test/CodeGen/AArch64/vecreduce-umax-legalization.ll llvm/test/CodeGen/AArch64/vector-lrint.ll llvm/test/CodeGen/X86/bmi-select-distrib.ll llvm/test/CodeGen/X86/vector-shuffle-combining-avx512vl.ll
``````````

</details>


The following files introduce new uses of undef:
 - llvm/test/CodeGen/AArch64/arm64-vector-insertion.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/142735


More information about the llvm-branch-commits mailing list