search for: recursiveastvisitor

Displaying 14 results from an estimated 14 matches for "recursiveastvisitor".

2011 Jul 21
2
[LLVMdev] share between AST and IR?
I wrote a plugin using ASTConsumer and RecursiveASTVisitor to find "interesting" variables and functions. I'm wonder if there is a way to save/flag/metadata these so later on at the IR level I can use this information in a Pass. As far as I can tell nothing currently would allow me todo this and I'm wondering what exactly it would take t...
2014 Dec 09
3
[LLVMdev] [cfe-dev][Openmp-dev] Clang Plugin to analyze OpenMP AST
Hi, I am writing a plugin to get information about the OpenMP constructs from the AST. I am basically writing a “RecursiveASTVisitor” and I am trying to find the OpenMP statement and get information like filename and line of code. When I am visiting recursively each statement I have my own switch on the “StmtClass” and for now I am focusing on “OMPParallelForDirectiveClass”. In my understanding, once I find the beginning of the...
2011 Jul 21
0
[LLVMdev] share between AST and IR?
Hi, Isn't clang::CodeGenOptions::EmitDeclMetadata what you need? Vassil On 07/21/2011 04:32 AM, ret val wrote: > I wrote a plugin using ASTConsumer and RecursiveASTVisitor to find > "interesting" variables and functions. I'm wonder if there is a way to > save/flag/metadata these so later on at the IR level I can use this > information in a Pass. > > As far as I can tell nothing currently would allow me todo this and > I'm wonde...
2017 Mar 20
5
[GSoC 2017] Clang-based diff tool project
Hello, I am currently studying Computer Science at TU Eindhoven. I am doing a course that involves programming assignments on parts of LLVM such as lowering, scheduling and optimization. For this year's Google Summer of Code I plan to submit a proposal to implement a clang-based diff tool [1]. I think it really pays off to have decent developer tools available, as they can save tons of time.
2016 Dec 08
6
cross-checking external declarations / debug info for declarations
I am interested in putting together a tool which can verify that an external declaration conforms with the actual definition. A.c: extern int32_t foo(); Int bar() { return foo(); } B.c: int64_t foo() { ... } I had thought that I could use the debug information but the debug information in A.o does not include the type of the declaration "foo", just the type of bar. Is there a way to
2011 Jul 27
0
[LLVMdev] attribute/annotation surviving for pass?
Hi Im looking into Annotate Attribute and I'm having a rough time, lots of old and misc threads. Anyway, I'm specially trying to create a attribute/annotation in a RecursiveASTVisitor so I can later use it in a pass. Is this currently possible? Also, is the correct way to use them to still parse llvm.global.annotations manually? I'm not entirely sure what it would contain but could the contents be directly correlated to a VarDecl* or a Function*? Thanks -------------- next...
2012 Feb 11
1
[LLVMdev] Clang passes
Hi. I've tried to search the way to write a pass for clang like a pass for opt, but I haven't find it. Is it possible? I need to save class inheritance of the program being processed to external file. Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Oct 10
0
[LLVMdev] [cfe-dev] OpenMP support in CLANG: A proposal
.../clang/Sema/Sema.h #. clang/lib/Sema/SemaStmtOpenMP.cpp -----> newly added -. OpenMP AST implementation #. clang/include/clang/AST/StmtOpenMP.h -----> newly added # clang/include/clang/AST/Stmt.h #. clang/include/clang/Basic/StmtNodes.td #. clang/include/clang/AST/RecursiveASTVisitor.h #. clang/include/clang/AST/StmtVisitor.h #. clang/lib/StaticAnalyzer/Core/ExprEngine.cpp #. clang/lib/Serialization/ASTReaderStmt.cpp #. clang/lib/Serialization/ASTWriterStmt.cpp #. clang/lib/Sema/TreeTransform.h #. clang/lib/CodeGen/CGStmt.cpp #. clang/lib/AST/StmtOpe...
2010 Dec 15
1
[LLVMdev] tblgen internals
On Dec 12, 2010, at 8:12 PM, Garrison Venn wrote: >> I believe I caught most of the syntax style issues with the attached patch. It only contains >> these style changes. Thanks! I applied your followup patch in r121837. > Concerning the RecordKeeper reference in Record. Would you prefer to partially go > back to a more limited constrained version of a global. Since we are not
2012 Oct 10
2
[LLVMdev] [cfe-dev] OpenMP support in CLANG: A proposal
On Wed, Oct 10, 2012 at 5:40 AM, Eli Friedman <eli.friedman at gmail.com>wrote: > On Tue, Oct 9, 2012 at 4:37 AM, Mahesha HS <mahesha.llvm at gmail.com> wrote: > > Hello All, > > > > We would like to make a proposal to support OpenMP in CLANG. The goal of > > this effort is to provide support for syntax > > > > analysis (parsing), semantic
2012 Jun 08
0
[LLVMdev] Is it possible to convert C++ code to C++/CX code via a plugin of clang?
CC'ed to clang ML. You can post clang question on clang ML. :-) On Thu, Jun 07, 2012 at 06:23:15PM +0800, yangzhi0104 at sohu.com wrote: > Hello Guys, > > I am developing a plugin of clang and hope it can convert some C++ functions to > C++/CX wrapper classes for WinRT system. If so, it would do a lot of work > automatically. > > Now I have been somewhere. Using clang
2014 Jan 06
5
[LLVMdev] LLVM Weekly - #1, Jan 6th 2014
...n the world of tablegen, a bug with the use of multiclass parameters was fixed <http://llvm-reviews.chandlerc.com/rL198348> * A confusion between `Value*` identify and 'value' equivalence was corrected in BasicAA <http://llvm-reviews.chandlerc.com/rL198290> ## Clang commits * RecursiveASTVisitor and DataRecursiveASTVisitor learned to visit attributes <http://llvm-reviews.chandlerc.com/rL198224>, <http://llvm-reviews.chandlerc.com/rL198249> * ExpectAndConsume will diagnose more errors automatically <http://llvm-reviews.chandlerc.com/rL198270> * The formatter gained an op...
2012 Jun 07
3
[LLVMdev] Is it possible to convert C++ code to C++/CX code via a plugin of clang?
Hello Guys,I am developing a plugin of clang and hope it can convert some C++ functions to C++/CX wrapper classes for WinRT system. If so, it would do a lot of work automatically.Now I have been somewhere. Using clang libraries, I could fetch the elements of C++ code for example, return type, function name, parameter list and others. Should I inherit "clang::Decl" to express C++/CX
2013 Oct 31
3
[releng_10 tinderbox] failure on i386/pc98
TB --- 2013-10-31 19:50:43 - tinderbox 2.20 running on worker01.tb.des.no TB --- 2013-10-31 19:50:43 - FreeBSD worker01.tb.des.no 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-10-31 19:50:43 - starting RELENG_10 tinderbox run for i386/pc98 TB --- 2013-10-31 19:50:43 - cleaning the