SuccessChanges

Summary

  1. Replace uint32_t with typedef (NFC) (details)
  2. HIP: Ensure new denormal mode attributes are set (details)
  3. [PPCInstPrinter] Print conditional branches as `bt 2, $target` instead of `bt 2, .+$imm` (details)
  4. AMDGPU: Make HIPToolChain a subclass of AMDGPUToolChain (details)
  5. [ELF][test] Add 'REQUIRES: x86' to threads.s (details)
  6. Fix MSan false positive due to select folding. (details)
  7. [mlir][spirv] Include SPIR-V op definitions in main SPIR-V doc (details)
  8. [libomptarget][nfc] Move non-freestanding headers out of common (details)
  9. [OPENMP50]Fix size calculation for array shaping expression in the (details)
  10. [debugserver/ARM64] Make sure watchpoints hit are attributed correctly. (details)
  11. [lit] Refine adoption of argparse --version action (details)
  12. [OPENMP50]Codegen for array shaping expression in map clauses. (details)
  13. [OPENMP][DOCS]Mark array shaping as done, NFC. (details)
  14. Forward WrapperFrontendAction::shouldEraseOutputFiles() (details)
  15. Fix leak in GVNSink introduced in D72467. (details)
  16. [analyzer] Use IgnoreImpCasts() instead of reimplementing it. (details)
  17. [Support] Delete ioctl TIOCGWINSZ (details)
  18. AMDGPU/GlobalISel: Fix insert point when lowering G_FMAD (details)
  19. [VectorOps] Implement a simple folder for identity vector.transpose operations. (details)
  20. [Driver] Don't pass -fmessage-length=0 to CC1 (details)
Commit ec11c5615a7c153a68d098903edebbb92719f5f9 by Adrian Prantl
Replace uint32_t with typedef (NFC)
The file was modifiedlldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
Commit c9d65a48af1d7bbfed7e785613cc9d9acf71821b by arsenm2
HIP: Ensure new denormal mode attributes are set

Apparently HIPToolChain does not subclass from AMDGPUToolChain, so
this was not applying the new denormal attributes. I'm not sure why
this doesn't subclass. Just copy the implementation for now.
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.h
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was modifiedclang/lib/Driver/ToolChains/HIP.h
The file was modifiedclang/test/Driver/cuda-flush-denormals-to-zero.cu
Commit 4af7560b3751259c4acf63411f42ab5c9989ef26 by maskray
[PPCInstPrinter] Print conditional branches as `bt 2, $target` instead of `bt 2, .+$imm`

Follow-up of D76591.

Reviewed By: #powerpc, sfertile

Differential Revision: https://reviews.llvm.org/D76907
The file was modifiedlld/test/ELF/ppc64-split-stack-prologue-adjust-success.s
The file was modifiedllvm/test/CodeGen/PowerPC/alignlongjumptest.mir
The file was modifiedlld/test/ELF/ppc64-split-stack-adjust-size-success.s
The file was modifiedllvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
The file was modifiedllvm/test/MC/PowerPC/ppc64-prefix-align.s
The file was modifiedllvm/test/CodeGen/PowerPC/aix-return55.ll
The file was modifiedlld/test/ELF/ppc64-reloc-rel.s
The file was modifiedlld/test/ELF/ppc32-reloc-rel.s
The file was modifiedlld/test/ELF/ppc32-call-stub-pic.s
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.td
The file was modifiedlld/test/ELF/ppc64-split-stack-adjust-overflow.s
The file was modifiedllvm/test/tools/llvm-objdump/XCOFF/disassemble-all.test
The file was modifiedllvm/test/tools/llvm-objdump/ELF/PowerPC/branch-offset.s
The file was modifiedlld/test/ELF/ppc32-long-thunk.s
Commit 175e42303bb2a4253c65126666b1ae05b32b0004 by arsenm2
AMDGPU: Make HIPToolChain a subclass of AMDGPUToolChain

This fixes some code duplication. This is also a step towards
consolidating builtin library handling.
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was modifiedclang/lib/Driver/ToolChains/HIP.h
Commit 0f44a09757f4f45e527e2bb79f15eb16967457a1 by maskray
[ELF][test] Add 'REQUIRES: x86' to threads.s
The file was modifiedlld/test/ELF/threads.s
Commit f9471b001089c744050c7a9cff39ebda2ff69011 by eugenis
Fix MSan false positive due to select folding.

Summary:
Select folding in JumpThreading can create a conditional branch on a
code patch that did not have one in the original program. This is not a
valid transformation in sanitize_memory functions.

Note that JumpThreading does select folding in 3 different places. Two
of them seem safe - they apply to a select instruction in a BB that ends
with an unconditional branch to another BB, which (in turn) ends with a
conditional branch or a switch with the same condition.

Fixes PR45220.

Reviewers: glider, dvyukov, efriedma

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76332
The file was addedllvm/test/Transforms/JumpThreading/select-unfold-msan.ll
The file was modifiedllvm/lib/Transforms/Scalar/JumpThreading.cpp
Commit ee77607ca6ceaf13801bdb98307fd26c78fbc92a by antiagainst
[mlir][spirv] Include SPIR-V op definitions in main SPIR-V doc

Differential Revision: https://reviews.llvm.org/D77174
The file was modifiedmlir/include/mlir/Dialect/SPIRV/CMakeLists.txt
The file was modifiedmlir/docs/Dialects/SPIR-V.md
Commit 09834f976125545c74b8c1161be5204352165368 by jonchesterfield
[libomptarget][nfc] Move non-freestanding headers out of common

Summary:
[libomptarget][nfc] Move non-freestanding headers out of common

Lowers the bar for building deviceRTL.
Drops math.h entirely as it wasn't used and libm is a big dependency.

Reviewers: jdoerfert, ABataev, grokos

Reviewed By: jdoerfert

Subscribers: jvesely, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D77071
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/debug.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/omptarget.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
Commit e094dd5adcbdd7f49226d93c3964f99bf5a25ba6 by a.bataev
[OPENMP50]Fix size calculation for array shaping expression in the
codegen.

Need to include the size of the pointee type when trying to calculate
the total size of the array shaping expression.
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/depobj_codegen.cpp
The file was modifiedclang/test/OpenMP/task_depend_messages.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/OpenMP/task_codegen.c
Commit 64799fbebddc9877f78c7501b0b986b7afe84d6b by ditaliano
[debugserver/ARM64] Make sure watchpoints hit are attributed correctly.

This didn't happen for arm64 if you have watches for variables
that are contigous in memory.

<rdar://problem/55135006>
The file was addedlldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py
The file was modifiedlldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
The file was addedlldb/test/API/commands/watchpoints/watchpoint_count/main.c
The file was addedlldb/test/API/commands/watchpoints/watchpoint_count/Makefile
Commit a3fab31acd6b99dd70334df7fbfae22b914e3214 by julian.lettner
[lit] Refine adoption of argparse --version action

The real work for this was already done by serge-sans-paille [1].
Thanks for this!

[1] 1d4849379f71a0f5d73202a291c0b709f7cafbc5
The file was modifiedllvm/utils/lit/lit/main.py
The file was modifiedllvm/utils/lit/tests/usage.py
The file was removedllvm/utils/lit/tests/version.py
The file was modifiedllvm/utils/lit/lit/cl_arguments.py
Commit c2aa543237843fa7b7c0191b6685062b3512f245 by a.bataev
[OPENMP50]Codegen for array shaping expression in map clauses.

Added codegen support for array shaping operations in map/to/from
clauses.
The file was modifiedclang/test/OpenMP/target_map_messages.cpp
The file was modifiedclang/test/OpenMP/target_data_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_update_ast_print.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/target_map_codegen.cpp
The file was modifiedclang/test/OpenMP/target_update_codegen.cpp
Commit 39ada4688936d165adf1a3c22b250034bab8f8a3 by a.bataev
[OPENMP][DOCS]Mark array shaping as done, NFC.
The file was modifiedclang/docs/OpenMPSupport.rst
Commit c322d328aa331639f647711aee44c5dddfadd337 by blangmuir
Forward WrapperFrontendAction::shouldEraseOutputFiles()

Per the documentation, this class is supposed to forward every virtual
method, but we had missed on (shouldEraseOutputFiles). This fixes using
a wrapped frontend action over the PCH generator when using
-fallow-pch-with-compiler-errors. I do not think any upstream wrapper
actions can test this.

Differential Revision: https://reviews.llvm.org/D77180

rdar://61110294
The file was modifiedclang/lib/Frontend/FrontendAction.cpp
The file was modifiedclang/include/clang/Frontend/FrontendAction.h
Commit ba4764c2cc14b0b495af539a913de10cf8268420 by efriedma
Fix leak in GVNSink introduced in D72467.
The file was modifiedllvm/lib/Transforms/Scalar/GVNSink.cpp
Commit 7ea64ae3afe4ad98e6753b9f74b30019113f719c by thakis
[analyzer] Use IgnoreImpCasts() instead of reimplementing it.

No intended behavior change.

Differential Revision: https://reviews.llvm.org/D77022
The file was modifiedclang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
Commit a3eb3d3d92d037fe3c9deaad87f6fc42fe9ea766 by maskray
[Support] Delete ioctl TIOCGWINSZ

D61326 essentially disabled `ioctl(FileID, TIOCGWINSZ, &ws)`.  Nobody
has complained for one year. So let's just delete the code.
The file was modifiedllvm/lib/Support/Unix/Process.inc
Commit 43e576593e78b1a9b7d22abdc2f6d339a116fa6b by arsenm2
AMDGPU/GlobalISel: Fix insert point when lowering G_FMAD
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmad.s16.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fmad.s32.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-udiv.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-urem.mir
Commit 855e738be250fe9dea211082a4acf668ddb4aca1 by grosul
[VectorOps] Implement a simple folder for identity vector.transpose operations.

Differential Revision: https://reviews.llvm.org/D77088
The file was modifiedmlir/lib/Dialect/Vector/VectorOps.cpp
The file was modifiedmlir/test/Dialect/Vector/canonicalize.mlir
The file was modifiedmlir/include/mlir/Dialect/Vector/VectorOps.td
Commit 4805901930f27f80d3b97ccd88e4f5240b784abd by maskray
[Driver] Don't pass -fmessage-length=0 to CC1

-fmessage-length=0 is common (unless the environment variable COLUMNS
is set and exported. This simplifies a common CC1 command line.
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/test/Driver/rewrite-legacy-objc.m
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was addedclang/test/Driver/fmessage-length.c
The file was modifiedclang/include/clang/Driver/CC1Options.td
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/Frontend/source-col-map.c
The file was modifiedclang/test/Driver/rewrite-objc.m
The file was modifiedclang/test/Misc/diag-line-wrapping.cpp
The file was modifiedclang/test/Misc/wrong-encoding2.c
The file was modifiedclang/test/Misc/message-length.c
The file was modifiedclang/test/Misc/unprintable.c
The file was modifiedclang/test/Misc/unnecessary-elipses.cpp