search for: processsmtattrbute

Displaying 3 results from an estimated 3 matches for "processsmtattrbute".

2016 Oct 25
2
[Help] Add custom pragma
...IR with Meta data which indicates whether to unroll loop. Now I can detect my own pragma and figured it out how to create and tag custom metadata. The problem is that creating custom AttributeList is somewhat hard to follow. As far as I know, the attribute for loop unroll pragma gets serviced at ProcessSmtAttrbute Function @ tools/clang/lib/Sema/SemaStmtAttr.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...
2016 Oct 25
2
[Help] Add custom pragma
...> > > Now I can detect my own pragma and figured it out how to create and tag > custom metadata. > > The problem is that creating custom AttributeList is somewhat hard to > follow. > > > > As far as I know, the attribute for loop unroll pragma gets serviced at > ProcessSmtAttrbute Function @ tools/clang/lib/Sema/SemaStmtAttr.cpp. > > It contains switch statement like below. > > > > ProcessSmtAttrbute @ tools/clang/lib/Sema/SemaStmtAttr.cpp > > // A : AttributeList - passed by argument > > switch( A.getKind() ) { > > case AttributeList::U...
2016 Oct 25
0
[Help] Add custom pragma
...roll loop. > > > > Now I can detect my own pragma and figured it out how to create and tag custom metadata. > > The problem is that creating custom AttributeList is somewhat hard to follow. > > > > As far as I know, the attribute for loop unroll pragma gets serviced at ProcessSmtAttrbute Function @ tools/clang/lib/Sema/SemaStmtAttr.cpp. > > It contains switch statement like below. > > > > ProcessSmtAttrbute @ tools/clang/lib/Sema/SemaStmtAttr.cpp > > // A : AttributeList - passed by argument > > switch( A.getKind() ) { > > case AttributeList::U...