HomePhabricator

[OpenCL] Refactor read_only/write_only pipes.

Authored by joey on Dec 1 2016, 3:30 AM.

Description

[OpenCL] Refactor read_only/write_only pipes.

This adds the access qualifier to the Pipe Type, rather than using a class
hierarchy.

It also fixes mergeTypes for Pipes, by disallowing merges. Only identical
pipe types can be merged. The test case in invalid-pipes-cl2.0.cl is added
to check that.

llvm-svn: 288332

Details

Committed
joeyDec 1 2016, 3:30 AM
Parents
rGbbd6f7af33d8: Remove a hack from the Android toolchain file
Branches
Unknown
Tags
Unknown