HomePhabricator

[HIP] Support attribute hip_pinned_shadow

Description

[HIP] Support attribute hip_pinned_shadow

This patch introduces support of hip_pinned_shadow variable for HIP.

A hip_pinned_shadow variable is a global variable with attribute hip_pinned_shadow.
It has external linkage on device side and has no initializer. It has internal
linkage on host side and has initializer or static constructor. It can be accessed
in both device code and host code.

This allows HIP runtime to implement support of HIP texture reference.

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

Details

Committed
yaxunlJun 25 2019, 8:47 PM
Differential Revision
D62738: [HIP] Support attribute hip_pinned_shadow
Parents
rL364380: Fix build failure due to missing break
Branches
Unknown
Tags
Unknown