[all-commits] [llvm/llvm-project] 6ec36d: [cuda] Mark builtin texture/surface reference vari...

darkbuck via All-commits all-commits at lists.llvm.org
Mon Aug 9 10:28:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ec36d18ec7b29b471bbe50502beb5b35de3975c
      https://github.com/llvm/llvm-project/commit/6ec36d18ec7b29b471bbe50502beb5b35de3975c
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCUDA/surface.cu
    M clang/test/CodeGenCUDA/texture.cu

  Log Message:
  -----------
  [cuda] Mark builtin texture/surface reference variable as 'externally_initialized'.

- They need to be preserved even if there's no reference within the
  device code as the host code may need to initialize them based on the
  application logic.

Reviewed By: tra

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




More information about the All-commits mailing list