Displaying 3 results from an estimated 3 matches for "at_loophint".
2016 Oct 25
2
[Help] Add custom pragma
...StmtAttr.cpp.
It contains 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/Attribute...
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 wha...
2016 Oct 25
0
[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 f...