diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-06-08 15:11:21 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-06-08 15:11:21 +0000 |
| commit | c564701fbd62bbd47b001564ace2649c19ae92ce (patch) | |
| tree | 0f7f7cee8d011c821496fab2c5b7b9afa8ce0ff1 /llvm/lib/CodeGen/MachineFunctionPass.cpp | |
| parent | 13d3048cedad51123d42fea730d30bcfaa7967fb (diff) | |
| download | bcm5719-llvm-c564701fbd62bbd47b001564ace2649c19ae92ce.tar.gz bcm5719-llvm-c564701fbd62bbd47b001564ace2649c19ae92ce.zip | |
[OpenCL] Fix __builtin_astype for vec3 types.
__builtin_astype does not generate correct LLVM IR for vec3 types. This patch inserts bitcasts to/from vec4 when necessary in addition to generating vector shuffle. Sema and codegen tests are added.
Differential Revision: http://reviews.llvm.org/D20133
llvm-svn: 272153
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions

