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

Anshil Gandhi via All-commits all-commits at lists.llvm.org
Mon Aug 9 15:38:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a35008955fa606487f79a050f5cc80fc7ee84dda
      https://github.com/llvm/llvm-project/commit/a35008955fa606487f79a050f5cc80fc7ee84dda
  Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
  Date:   2021-08-09 (Mon, 09 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