similar to: [LLVMdev] Is it possible to generate a Clang annotated AST?

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] Is it possible to generate a Clang annotated AST?"

2012 Jun 09
1
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi Joey, Still the same message. I am running it from llvm-2.9/Debug/bin/clang -cc1 -ast-view ~/smd.c Is this where you were referring to? Best, Carlos Andrade http://carlosandrade.co 2012/6/9 Joey Gouly <joel.gouly at gmail.com> > You need to run the clang from the build directory. Something like > ./Debug+Asserts/bin/clang > > Joey > > > On 9 June 2012 22:52,
2012 Jun 09
0
[LLVMdev] Extracting an AST to Graphviz using Clang
You need to run the clang from the build directory. Something like ./Debug+Asserts/bin/clang Joey On 9 June 2012 22:52, Carlos Andrade <carlosviansi at gmail.com> wrote: > Just in case another person comes to get stuck on this on Mac OS: > > http://web.mit.edu/mfloyd/www/computing/mac/gv/ > > This link explains the process on getting gv installed since Xaw3d > dependency
2012 Jun 09
0
[LLVMdev] Extracting an AST to Graphviz using Clang
Just to add one more thing. I have been trying to install the gv on my mac os but I have not been successful either. The gv build requires xaw3d ( http://directory.fsf.org/wiki/Xaw3d ) which apparently has not been updated for quite few years and the download is not even available anymore. Carlos Andrade http://carlosandrade.co 2012/6/9 Carlos Andrade <carlosviansi at gmail.com> > Hi
2012 Jun 09
2
[LLVMdev] Extracting an AST to Graphviz using Clang
Just in case another person comes to get stuck on this on Mac OS: http://web.mit.edu/mfloyd/www/computing/mac/gv/ This link explains the process on getting gv installed since Xaw3d dependency even has a 'error' (actually missing few parameters) on a line that prevents code compilation that needs to be fixed before configuring and make it works. -- I have gv installed now and my bash
2012 Jun 09
0
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi, The -j option just says how many processes are started to parallelise the build. The default option is to build Debug+Asserts, so unless you add any extra arguments when you run './configure', you should be fine! Joey On 9 June 2012 21:29, Carlos Andrade <carlosviansi at gmail.com> wrote: > Hi Joey! > > Thanks I just replied your message on stack and I was actually
2012 Jun 09
2
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi Joey, I think there is still something missing. I ignored the -j as you mentioned and saw on the documentation that to compile on debug mode I could do so using: $./configure --disable-optimized As a result by the end I compiled llvm2.9 I got: llvm[0]: ***** Completed Debug Build llvm[0]: ***** Note: Debug build can be 10 times slower than an llvm[0]: ***** optimized build. Use make
2012 Jun 09
0
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi Carlos, You can just download the source code from http://llvm.org/releases/download.html#2.9 and then read http://llvm.org/docs/GettingStarted.html which should tell you how to compile it. Joey On 9 June 2012 21:10, Carlos Andrade <carlosviansi at gmail.com> wrote: > Hi Alex, > > Would you recommend any specific link in respect on how to compile in > debug mode? I
2012 Jun 09
2
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi Joey! Thanks I just replied your message on stack and I was actually looking into this right now. Is this the option? I just wanted to confirm: - make [-j] - The -j specifies the number of jobs (commands) to run simultaneously. This builds both LLVM and Clang for Debug+Asserts mode. The --enabled-optimized configure option is used to specify a Release build. The -j parameter is
2012 Jun 09
2
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi Alex, Would you recommend any specific link in respect on how to compile in debug mode? I downloaded the Mac OS version on the website so I did not compile anything. I am sort of a rookie on bash but I should be able to figure my way around this. Also, is there any particular reason why this functionality is only available on debug mode? Thank you so much for the fast reply, was driving me
2012 Jun 09
0
[LLVMdev] Extracting an AST to Graphviz using Clang
Hi Carlos, > I am new to this list, and hope this question is pertinent to this mailing > list. Welcome! > Stmt::viewAST is only available in debug builds on systems with Graphviz or > gv! You need to actually build Clang in debug mode for this particular method to be available, which is very likely why you're seeing this error. I don't think that Clang builds shipped with
2012 Jun 09
2
[LLVMdev] Extracting an AST to Graphviz using Clang
Dears, I am new to this list, and hope this question is pertinent to this mailing list. I have been trying to use Clang to extract an AST from my source code, but without success when attempting to do so with Graphviz. I created a thread on Stackoverflow recently in hope any could help me [1], but the question is actually pretty simple. I keep getting Stmt::viewAST is only available in debug
2012 Oct 14
1
Is there any R package that contains Rusboost based on Adaboost.m2?
Hi, I have been searching everywhere for an implementation of those algorithms, but I have only observed them in Matlab and on the literature. I noticed a package called 'ada' in CRAN but it is not for multi class. I would be happy with just Adaboost.m2, Smoteboost over adaboost.m2 or any other combination that could account for imbalanced multiclass classification problems. Thanks!
2008 Mar 19
0
[ANNOUNCE] xf86-video-ast 0.85.0
Adam Jackson (2): Fix distcheck. ast 0.85.0 Brice Goglin (1): Define AST_*_VERSION* using PACKAGE_VERSION_* Dave Airlie (1): ast: pciaccess conversion James Cloos (2): Rename .cvsignore to .gitignore Add *~ to .gitignore to skip patch/emacs droppings Paulo Cesar Pereira de Andrade (1): Compile warning fixes. Y.C. Chen (1): compiler warning fixed
2011 Sep 07
1
[LLVMdev] manipulating @llvm.var.annotation in AST?
Is there anyway to manipulate @llvm.var.annotation at the AST level? In the source file you could do something like __attribute__((annotate("GlobalValAnnotation"))); Is it possible todo something like that with a Clang::DeclRefExpr? Could something be done to @llvm.var.annotation "by hand"? How do you access this? -------------- next part -------------- An HTML
2012 Jun 03
0
[LLVMdev] clang -ast-dump-xml....
Hi !   I'm quite newbie with LLVM, so when replying please give sufficient information please. :-)   I want to use LLVM in windows, but apparently clang currently does not support linking of C++ classes against microsoft compiler  - due to export symbols mangling.   Subject was discussed on thread: http://comments.gmane.org/gmane.comp.compilers.clang.devel/20068 and I've tried to contact
2013 Jun 27
1
[LLVMdev] Generate code from Clang ast which is dumped in xml
Hi, I'm working on AST that Clang generates on sample codes in xml file. Is there a standard way of parsing this xml file, modifying it (instrumenting original source code) and then generate instrumented code from the xml file. I don't see any reference/documentation in this regards. Please suggest any links to relevant information. Many Thanks K -------------- next part --------------
2013 Feb 27
3
[LLVMdev] llvm get annotations
Hello everyone ! I followed http://stackoverflow.com/questions/4976298/modern-equivalent-of-llvm-annotationmanagerin order to get annotations from my target bytecode. All the examples that I give in the following is related to the code from that link. I have `__attribute__((annotate("DS"))) int f=0;` into the target C++ program and the related IR code: @.str = private unnamed_addr
2012 Dec 28
0
[LLVMdev] Function inline causes crash in clang for .ast to .s
Hi, Could anyone please comment on this ? Regards, Rajesh On Wed, Dec 19, 2012 at 6:54 PM, rajesh viswabramana < viswabramana.rajesh at gmail.com> wrote: > Hi, > > Clang crashes when tried to compile from .ast to .s for below sample code, > > inline-test.c > ** > *extern inline int func1 (void) { return 0; } > inline int func1 (void) { return 1; }* > >
2019 Jan 18
2
Difference when compiling human readable IR vs bitcode with clang frontend
We've noticed a difference in the embedded bitcode when compiling human readable IR to an object directly vs first compiling IR to BC and then an object through clang -cc1. If the original IR file contained an "llvm.compiler.used" gv, it will be preserved when compiling IR -> BC -> Obj. When compiling IR -> Obj directly, it will be removed. This difference does not exist
2012 Dec 19
2
[LLVMdev] Function inline causes crash in clang for .ast to .s
Hi, Clang crashes when tried to compile from .ast to .s for below sample code, inline-test.c ** *extern inline int func1 (void) { return 0; } inline int func1 (void) { return 1; }* clang *works fine* for .c -> .s, *>clang inline-test.c -std=c99 -fgnu89-inline -S -o inline-test.s * But *crashes* when tried to generate .s from .ast for same file, *>clang inline-test.c -std=c99