Displaying 3 results from an estimated 3 matches for "handleloophintattr".
2016 Oct 25
2
[Help] Add custom pragma
...s switch statement like below.
ProcessSmtAttrbute @ 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 P...
2016 Oct 25
2
[Help] Add custom pragma
...mtAttr.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 Attr...
2016 Oct 25
0
[Help] Add custom pragma
...mtAttr.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 Attribute...