[all-commits] [llvm/llvm-project] 7063ac: [HIP] Allow target addr space in target builtins

Anshil Gandhi via All-commits all-commits at lists.llvm.org
Thu Aug 19 22:52:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7063ac1afa656bdbb851c8ef120ff699c2e98483
      https://github.com/llvm/llvm-project/commit/7063ac1afa656bdbb851c8ef120ff699c2e98483
  Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

  Changed paths:
    M clang/include/clang/AST/Type.h
    M clang/lib/Basic/Targets/AMDGPU.h
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/CodeGenCUDA/builtins-amdgcn.cu

  Log Message:
  -----------
  [HIP] Allow target addr space in target builtins

This patch allows target specific addr space in target builtins for HIP. It inserts implicit addr
space cast for non-generic pointer to generic pointer in general, and inserts implicit addr
space cast for generic to non-generic for target builtin arguments only.

It is NFC for non-HIP languages.

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




More information about the All-commits mailing list