HomePhabricator

[OpenCL] Allow targets to select address space per type

Authored by svenvh on Aug 15 2017, 2:38 AM.

Description

[OpenCL] Allow targets to select address space per type

Generalize getOpenCLImageAddrSpace into getOpenCLTypeAddrSpace, such
that targets can select the address space per type.

No functional changes intended.

Initial patch by Simon Perretta.

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

llvm-svn: 310911