[llvm-bugs] [Bug 26571] New: C interface should properly expose the OpenCL kernel attribute as such

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 10 15:08:01 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26571

            Bug ID: 26571
           Summary: C interface should properly expose the OpenCL kernel
                    attribute as such
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: giuseppe.bilotta at gmail.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Hello all,

I'm trying to write a simple C program that uses libclang to parse OpenCL C
files, identify kernel functions and processes them in some way. I've found
however that the `kernel` attribute that identifies OpenCL kernels is not
properly exposed by the C interface of libclang: the node is found as the first
child of the function declaration, but it only satisfies clang_isAttribute()
and clang_isUnexposed(), it does not have its own specific cursor kind (in
contrast to other nodes such as .

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160210/b46840b2/attachment.html>


More information about the llvm-bugs mailing list