search for: semastmtattr

Displaying 5 results from an estimated 5 matches for "semastmtattr".

2016 Oct 25
2
[Help] Add custom pragma
...l 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: return ~ case AttributeList::AT_LoopH...
2016 Oct 25
2
[Help] Add custom pragma
...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: > > ~ > >...
2017 Sep 13
1
Adding pragma related metadata to only one loop
...hat would be the right way of doing this? or rather what files should I look into. So far I have made changes in the following files: 1) include/clang/Basic/Attr.td 2) include/clang/Parse/Parser.h 3) lib/CodeGen/CGLoopInfo.cpp 4) lib/CodeGen/CGLoopInfo.h 5) lib/Parse/ParsePragma.cpp 6) lib/Sema/SemaStmtAttr.cpp Any help would be appreciated. Thanks, Best Regards, Nitish ‌ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170913/5f8b027d/attachment.html>
2016 Oct 25
0
[Help] Add custom pragma
...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: > > ~ > >...
2018 Nov 25
6
RFC: Modernizing our use of auto
I'm not advocating AAA. However this is a proposal for more modern thinking regarding the permissiveness of auto in LLVM codebases. Currently the rule on the use of auto is here: https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable It is quite strict. It allows the use of auto for * lambdas * iterators because they are long to type * casts to