[all-commits] [llvm/llvm-project] 3265df: [RISCV] Add signext attribute to return of fmv_x_w...

Justin Bogner via All-commits all-commits at lists.llvm.org
Thu Aug 15 02:16:43 PDT 2024


  Branch: refs/heads/users/bogner/sprdirectx-use-a-more-consistent-pass-name-for-dxiltranslatemetadata
  Home:   https://github.com/llvm/llvm-project
  Commit: 3265dfe3e620d526ca15dcecaa1c68e63ceaba45
      https://github.com/llvm/llvm-project/commit/3265dfe3e620d526ca15dcecaa1c68e63ceaba45
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M llvm/test/CodeGen/RISCV/float-convert.ll

  Log Message:
  -----------
  [RISCV] Add signext attribute to return of fmv_x_w test in float-convert.ll. NFC

This shows that Zfinx generates a sext.w instruction on RV64.
The fadd.s should have filled the upper bits of the GPR with sign
bits so this is unnecessary. Proving it is unnecessary might be
difficult though.


  Commit: 4bac8fd8904904bc7d502f39851eef50b5afff73
      https://github.com/llvm/llvm-project/commit/4bac8fd8904904bc7d502f39851eef50b5afff73
  Author: Connie <60797237+connieyzhu at users.noreply.github.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    A llvm/utils/lit/tests/Inputs/check_path.py
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat-error-0.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat-error-1.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat_nonprinting.bin
    A llvm/utils/lit/tests/Inputs/shtest-cat/lit.cfg
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat-error-0.txt
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat-error-1.txt
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat_nonprinting.bin
    R llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py
    M llvm/utils/lit/tests/Inputs/shtest-shell/valid-shell.txt
    A llvm/utils/lit/tests/shtest-cat.py
    M llvm/utils/lit/tests/shtest-shell.py

  Log Message:
  -----------
  [llvm-lit][test][NFC] Moved cat command tests into separate lit test file (#102366)

This patch separates the lit tests that check for the functionality of
lit's built-in cat command into its own test file and folder. This is a
prerequisite for https://github.com/llvm/llvm-project/pull/101530.


  Commit: e9b7983fc6826eceb819a3cdb0301c401847ade4
      https://github.com/llvm/llvm-project/commit/e9b7983fc6826eceb819a3cdb0301c401847ade4
  Author: Harini0924 <79345568+Harini0924 at users.noreply.github.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M llvm/utils/lit/lit/TestRunner.py

  Log Message:
  -----------
  [llvm-lit] Fix Unhashable TypeError when using lit's internal shell (#101590)

When using the lit internal shell with the command:
```
LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt
```
The follow error is encountered:
```
File "TestRunner.py", line 770, in _executeShCmd
    inproc_builtin = inproc_builtins.get(args[0], None)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'GlobItem'
```
This error is in a compiler-rt file:
```
TestCases/Linux/long-object-path.cpp
```
This error occurs because `args[0]` is of type `GlobItem`, which is not
hashable, leading to a `TypeError` when it is passed in
`inproc_builtins.get()`. To resolve this issue, I have updated the
implementation to ensure that `args[0]` is hashable before it is used in
`inproc_builtins`.
fixes: #102389
[link to
RFC](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179)


  Commit: a88f3a331137d6379f2f1189d5eb4b086c686ab4
      https://github.com/llvm/llvm-project/commit/a88f3a331137d6379f2f1189d5eb4b086c686ab4
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M clang/lib/Headers/__clang_cuda_math.h
    M clang/lib/Headers/__clang_hip_math.h
    A clang/test/Headers/gpu_disabled_math.cpp

  Log Message:
  -----------
  [Clang] Add `__CLANG_GPU_DISABLE_MATH_WRAPPERS` macro for offloading math (#98234)

Summary:
Currently we replace all math calls with vendor specific ones. This
patch introduces a macro `__CLANG_GPU_DISABLE_MATH_WRAPPERS` that when
defined will disable this.

I went this route instead of a flag for two reasons. One, I think we
have too many flags as is, and we already have `-nogpuinc` to cover
disabling these wrappers entirely, so this would be a really specific
subset of that. Second, these math headers aren't easily decoupled by
simply not including a single header from the clang driver layer.
There's the cmath and the regular math forward declares it would disable
as well.

Note, this currently causes errors because the GPU `libm` doesn't have
`powi`, that's an NVIDIA extension I'll add to LLVM libm.


  Commit: 743e99dcf5146dd4e2c20d20800e91595da47be9
      https://github.com/llvm/llvm-project/commit/743e99dcf5146dd4e2c20d20800e91595da47be9
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M flang/include/flang/Runtime/CUDA/allocator.h
    M flang/runtime/CUDA/CMakeLists.txt
    M flang/runtime/CUDA/allocator.cpp
    M flang/unittests/Runtime/CUDA/AllocatorCUF.cpp

  Log Message:
  -----------
  Reland "[flang][cuda] Use cuda runtime API #103488"

CUDA Fortran is meant to be an equivalent to the runtime API. Therefore, it
makes more sense to use the cuda rt API in the allocators for CUF.


  Commit: f1779ae53b5a8f65406648f1b69e3dd1ae0340b0
      https://github.com/llvm/llvm-project/commit/f1779ae53b5a8f65406648f1b69e3dd1ae0340b0
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel

  Log Message:
  -----------
  [bazel] Port 4bac8fd8904904bc7d502f39851eef50b5afff73 (#104278)


  Commit: 48809fafbc083a2e4c03f70406b712ff18b42554
      https://github.com/llvm/llvm-project/commit/48809fafbc083a2e4c03f70406b712ff18b42554
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M clang/test/SemaHLSL/BuiltIns/normalize-errors.hlsl
    M llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
    M llvm/test/CodeGen/DirectX/normalize.ll

  Log Message:
  -----------
  Remove unused variable, and unneeded extract element instruction (#103489)

This PR removes an unneeded extract element instruction from codegen,
along with the variable that captured that instruction's return value.


  Commit: b913cc797d1997c719b60539c0fca09a99c168be
      https://github.com/llvm/llvm-project/commit/b913cc797d1997c719b60539c0fca09a99c168be
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M clang/lib/Headers/__clang_cuda_math.h
    M clang/lib/Headers/__clang_hip_math.h
    A clang/test/Headers/gpu_disabled_math.cpp
    M clang/test/SemaHLSL/BuiltIns/normalize-errors.hlsl
    M flang/include/flang/Runtime/CUDA/allocator.h
    M flang/runtime/CUDA/CMakeLists.txt
    M flang/runtime/CUDA/allocator.cpp
    M flang/unittests/Runtime/CUDA/AllocatorCUF.cpp
    M llvm/docs/DirectX/DXILOpTableGenDesign.rst
    M llvm/include/llvm/Support/DXILABI.h
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILConstants.h
    M llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
    M llvm/lib/Target/DirectX/DXILOpBuilder.cpp
    M llvm/lib/Target/DirectX/DXILOpBuilder.h
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    M llvm/lib/Target/DirectX/DXILResourceAnalysis.h
    M llvm/test/CodeGen/DirectX/normalize.ll
    M llvm/test/CodeGen/RISCV/float-convert.ll
    M llvm/utils/TableGen/DXILEmitter.cpp
    M llvm/utils/lit/lit/TestRunner.py
    A llvm/utils/lit/tests/Inputs/check_path.py
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat-error-0.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat-error-1.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat_nonprinting.bin
    A llvm/utils/lit/tests/Inputs/shtest-cat/lit.cfg
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat-error-0.txt
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat-error-1.txt
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat_nonprinting.bin
    R llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py
    M llvm/utils/lit/tests/Inputs/shtest-shell/valid-shell.txt
    A llvm/utils/lit/tests/shtest-cat.py
    M llvm/utils/lit/tests/shtest-shell.py
    M utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel

  Log Message:
  -----------
  [𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5-bogner

[skip ci]


  Commit: 324186980818060f10938f630323258429d8cf8e
      https://github.com/llvm/llvm-project/commit/324186980818060f10938f630323258429d8cf8e
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M clang/lib/Headers/__clang_cuda_math.h
    M clang/lib/Headers/__clang_hip_math.h
    A clang/test/Headers/gpu_disabled_math.cpp
    M clang/test/SemaHLSL/BuiltIns/normalize-errors.hlsl
    M flang/include/flang/Runtime/CUDA/allocator.h
    M flang/runtime/CUDA/CMakeLists.txt
    M flang/runtime/CUDA/allocator.cpp
    M flang/unittests/Runtime/CUDA/AllocatorCUF.cpp
    M llvm/docs/DirectX/DXILOpTableGenDesign.rst
    M llvm/include/llvm/Support/DXILABI.h
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILConstants.h
    M llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
    M llvm/lib/Target/DirectX/DXILOpBuilder.cpp
    M llvm/lib/Target/DirectX/DXILOpBuilder.h
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    M llvm/lib/Target/DirectX/DXILResourceAnalysis.h
    M llvm/test/CodeGen/DirectX/normalize.ll
    M llvm/test/CodeGen/RISCV/float-convert.ll
    M llvm/utils/TableGen/DXILEmitter.cpp
    M llvm/utils/lit/lit/TestRunner.py
    A llvm/utils/lit/tests/Inputs/check_path.py
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat-error-0.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat-error-1.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat.txt
    A llvm/utils/lit/tests/Inputs/shtest-cat/cat_nonprinting.bin
    A llvm/utils/lit/tests/Inputs/shtest-cat/lit.cfg
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat-error-0.txt
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat-error-1.txt
    R llvm/utils/lit/tests/Inputs/shtest-shell/cat_nonprinting.bin
    R llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py
    M llvm/utils/lit/tests/Inputs/shtest-shell/valid-shell.txt
    A llvm/utils/lit/tests/shtest-cat.py
    M llvm/utils/lit/tests/shtest-shell.py
    M utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel

  Log Message:
  -----------
  rebase onto main

Created using spr 1.3.5-bogner


Compare: https://github.com/llvm/llvm-project/compare/9039d0a9af79...324186980818

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list