]> granicus.if.org Git - clang/commit
[OpenCL] Generate metadata for opencl_unroll_hint attribute
authorAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 19 Feb 2016 18:30:11 +0000 (18:30 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 19 Feb 2016 18:30:11 +0000 (18:30 +0000)
commitda91cb31586ace4b644759c35b315e1bce167ce2
tree1777385274c726d168934128107ee9af18cae5d3
parent83bed93ff4c2003af9f4091c6f64e155b44266d5
[OpenCL] Generate metadata for opencl_unroll_hint attribute

Add support for opencl_unroll_hint attribute from OpenCL v2.0 s6.11.5.

Reusing most of metadata generation from CGLoopInfo helper class.

The code is based on Khronos OpenCL compiler:
https://github.com/KhronosGroup/SPIR/tree/spirv-1.0

Patch by Liu Yaxun (Sam)!

Differential Revision: http://reviews.llvm.org/D16686

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261350 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/Parser.h
lib/CodeGen/CGLoopInfo.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/SemaStmtAttr.cpp
test/CodeGenOpenCL/unroll-hint.cl [new file with mode: 0644]
test/Parser/opencl-unroll-hint.cl [new file with mode: 0644]
test/SemaOpenCL/unroll-hint.cl [new file with mode: 0644]