[all-commits] [llvm/llvm-project] fe04ba: [libc] Silence integer shortening warnings on NVPT...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 9 15:18:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe04baf1f79c52c89808f3ec41743205227c022d
      https://github.com/llvm/llvm-project/commit/fe04baf1f79c52c89808f3ec41743205227c022d
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M libc/src/__support/GPU/nvptx/utils.h

  Log Message:
  -----------
  [libc] Silence integer shortening warnings on NVPTX masks

Nvidia uses a 32-bit mask, but we store it in a common 64-bit integer to
provide it with a compatible ABI with the AMD implementaiton which may
use a 64-bit mask. Silence these warnings by explicitly casting to the
smaller value, we know this is always legal as the result will always
fit into the smaller value if it was generated on NVPTX.

Reviewed By: sivachandra

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




More information about the All-commits mailing list