search for: moviattrattr

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

2016 Nov 25
2
Translation of custom attribute (defined for variables) from clang to llvm
...(1))) int main() { NEWATTR volatile unsigned int a = 5; volatile unsigned int *p; p = &a; return (a+*p); } and actually when I Dump the declaration, after adding the attribute in handleMoviAttr() function in SemaDeclAttr.cpp as shown in following snippet D->addAttr(::new (S.Context)moviAttrAttr(Attr.getRange(), S.Context, Val, Attr.getAttributeSpellingListIndex())); D->dump(); It is dumped by clang with following output VarDecl 0x440c698 <file.c:6:17, line:10:32> col:32 a 'volatile unsigned int' `-moviAttrAttr 0x440c6d0 <line:6:32, col:42> 1 HOWEVER, the attrib...
2016 Nov 25
3
Translation of custom attribute (defined for variables) from clang to llvm
...int *p; >> p = &a; >> return (a+*p); >> } >> >> and actually when I Dump the declaration, after adding the attribute >> in handleMoviAttr() function in SemaDeclAttr.cpp as shown in >> following snippet >> >> D->addAttr(::new (S.Context)moviAttrAttr(Attr.getRange(), S.Context, >> Val, Attr.getAttributeSpellingListIndex())); >> D->dump(); >> >> It is dumped by clang with following output >> >> VarDecl 0x440c698 <file.c:6:17, line:10:32> col:32 a 'volatile >> unsigned int' >> `-m...
2016 Nov 28
2
Translation of custom attribute (defined for variables) from clang to llvm
...; >> } >> >> >> >> and actually when I Dump the declaration, after adding the attribute >> >> in handleMoviAttr() function in SemaDeclAttr.cpp as shown in >> >> following snippet >> >> >> >> D->addAttr(::new (S.Context)moviAttrAttr(Attr.getRange(), S.Context, >> >> Val, Attr.getAttributeSpellingListIndex())); >> >> D->dump(); >> >> >> >> It is dumped by clang with following output >> >> >> >> VarDecl 0x440c698 <file.c:6:17, line:10:32> col:32 a &...