Displaying 3 results from an estimated 3 matches for "at_openclunrollhint".
2016 Oct 25
2
[Help] Add custom pragma
...bute @ tools/clang/lib/Sema/SemaStmtAttr.cpp
// A : AttributeList - passed by argument
switch( A.getKind() ) {
  case AttributeList::UnknownAttribute:
    ~
  case AttributeList::AT_FallThrough:
    return ~
  case AttributeList::AT_LoopHint:
    return handleLoopHintAttr( ~ )
  case AttributeList::AT_OpenCLUnrollHint:
  ~
  ...
}
As I want to define new attribute, I've tried to find where the definitions
for AT_LoopHint, AT_FallThrough are done. This is what I found.
class AttributeList @ tools/clang/include/clang/Sema/AttributeList.h
enum Kind{
   #define PARSED ATTR(NAME) AT_##NAME,
   #include "c...
2016 Oct 25
2
[Help] Add custom pragma
...gument
> > switch( A.getKind() ) {
> >   case AttributeList::UnknownAttribute:
> >     ~
> >   case AttributeList::AT_FallThrough:
> >     return ~
> >   case AttributeList::AT_LoopHint:
> >     return handleLoopHintAttr( ~ )
> >   case AttributeList::AT_OpenCLUnrollHint:
> >   ~
> >   ...
> > }
> >
> > As I want to define new attribute, I've tried to find where the
> definitions for AT_LoopHint, AT_FallThrough are done. This is what I found.
> >
> > class AttributeList @ tools/clang/include/clang/Sema/AttributeList....
2016 Oct 25
0
[Help] Add custom pragma
...gument
> > switch( A.getKind() ) {
> >   case AttributeList::UnknownAttribute:
> >     ~
> >   case AttributeList::AT_FallThrough:
> >     return ~
> >   case AttributeList::AT_LoopHint:
> >     return handleLoopHintAttr( ~ )
> >   case AttributeList::AT_OpenCLUnrollHint:
> >   ~
> >   ...
> > }
> >
> > As I want to define new attribute, I've tried to find where the definitions for AT_LoopHint, AT_FallThrough are done. This is what I found.
> >
> > class AttributeList @ tools/clang/include/clang/Sema/AttributeList.h
>...