search for: moviattr

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

2016 Nov 25
3
Translation of custom attribute (defined for variables) from clang to llvm
Hi Asit, thanks for the reply. But I guess I was not clear in my question. Actually, i dont want to use __ATTRIBUTE__((ANNOTATE("MOVIATTR"))), since in documentation it is stated that "This intrinsic allows annotation of local variables with arbitrary strings. This can be useful for special purpose optimizations that want to look for these annotations. These have no other defined use; they are ignored by code generation...
2016 Nov 28
2
Translation of custom attribute (defined for variables) from clang to llvm
...-dev] Translation of custom attribute (defined for >> variables) from clang to llvm >> >> Hi Asit, >> >> thanks for the reply. >> >> But I guess I was not clear in my question. Actually, i dont want to >> use >> __ATTRIBUTE__((ANNOTATE("MOVIATTR"))), since in documentation it is >> stated that "This intrinsic allows annotation of local variables with >> arbitrary strings. This can be useful for special purpose >> optimizations >> that want to look for these annotations. These have no other defined >&gt...
2016 Nov 25
2
Translation of custom attribute (defined for variables) from clang to llvm
Hi All, I need your guidance about a custom attribute. I have defined one for variables. It is accepted in the source code (without any warnings from clang), for example in following snippet. #define NEWATTR __attribute__((moviAttr(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)...