search for: dhal

Displaying 4 results from an estimated 4 matches for "dhal".

Did you mean: deal
2016 Nov 25
3
Translation of custom attribute (defined for variables) from clang to llvm
...)) so that i can use it later for code generation. Syntax of adding my custom attribute in code snippet above is correct, since clang doesnt generate any error. do you think there is anyother reason for my custom attribute to not appear in IR? --- Naveed Ul Mustafa On 2016-11-25 13:44, Asit Dhal wrote: > Hi, > > I think, the syntax is wrong. > You can try this way.. > > #DEFINE NEWATTR __ATTRIBUTE__((ANNOTATE("MOVIATTR"))) > > int main() > { > NEWATTR volatile unsigned int a = 5; > VOLATILE UNSIGNED INT *P; > p = &amp...
2016 Nov 28
2
Translation of custom attribute (defined for variables) from clang to llvm
...to what you want to do, then do something > similar to that. > > John > >> -----Original Message----- >> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of >> Naveed Ul Mustafa via llvm-dev >> Sent: 25 November 2016 14:04 >> To: Asit Dhal >> Cc: Philip Reames via llvm-dev >> Subject: Re: [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,...
2016 Aug 03
3
Issue with HelloWorld pass
Dear all, I'm new to the LLVM world and I'm trying to run reproduce the hello world example described here http://llvm.org/releases/3.8.1/docs/WritingAnLLVMPass.html. I started with a fresh new llvm-3.8.1 installation based on cmake (running on Linux x86) using the following command: cmake -DCMAKE_INSTALL_PREFIX=/path/to/llvm -DLLVM_TARGETS_TO_BUILD="X86" ../ The build
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