search for: astconsum

Displaying 20 results from an estimated 25 matches for "astconsum".

Did you mean: astconsumer
2012 Mar 14
0
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
...what do you mean by the "relevant command generated by > your makefile"? What I can tell you now is: > > The Error Message: > make[3]: Entering directory `/home/tang.kk/ppcg/ppcg/isl/interface' > CXXLD extract_interface > extract_interface.o:(.data.rel.ro._ZTI13MyASTConsumer[typeinfo for > MyASTConsumer]+0x10): undefined reference to `typeinfo for > clang::ASTConsumer' > collect2: ld returned 1 exit status [snip] So you define a class MyAstConsumer that derives from clang::ASTConsumer and then the link fails because the typinfo for MyAstConsumer can no...
2012 Jun 05
0
[LLVMdev] Have you guys met this issue about "typeinfo" & "vtable" of, ASTConsumer and PluginASTAction?
Hello Guys, From this morning, I have been always trying PrintFunctionNames - an example of clang, but during compiling I was always meeting "__ZTIN5clang15PluginASTActionE", referenced from: __ZTI24PrintFunctionNamesAction in PrintFunctionNames.cpp.o. In fact, I didn't have "__ZTIN5clang15PluginASTActionE" in the symbol table, only I have was
2012 Jun 05
1
[LLVMdev] Have you guys met this issue about "typeinfo" & "vtable" of ASTConsumer and PluginASTAction?
Hello Guys,From this morning, I have been always trying PrintFunctionNames - an example of clang, but during compiling I was always meeting "__ZTIN5clang15PluginASTActionE", referenced from: __ZTI24PrintFunctionNamesAction in PrintFunctionNames.cpp.o.In fact, I didn't have "__ZTIN5clang15PluginASTActionE" in the symbol table, only I have was
2012 Mar 14
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
...ive message now. But firstly, what do you mean by the "relevant command generated by your makefile"? What I can tell you now is: The Error Message: make[3]: Entering directory `/home/tang.kk/ppcg/ppcg/isl/interface' CXXLD extract_interface extract_interface.o:(.data.rel.ro._ZTI13MyASTConsumer[typeinfo for MyASTConsumer]+0x10): undefined reference to `typeinfo for clang::ASTConsumer' collect2: ld returned 1 exit status make[3]: *** [extract_interface] Error 1 make[3]: Leaving directory `/home/tang.kk/ppcg/ppcg/isl/interface' make[2]: *** [all-recursive] Error 1 make[2]: Leaving...
2008 Dec 18
0
[LLVMdev] Troubles with clang and llvm libraries and simple Xcode project
...mbols from both clang and LLVM. Seems like the libraries are not built correctly, but I can't see anything wrong with the steps I took above. I've included a selection of the linker errors below. /Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: clang::ASTConsumer::InitializeTU(clang::TranslationUnit&) clang::ASTConsumer::~ASTConsumer() ... vtable for clang::DeclRefExpr vtable for clang::BinaryOperator ... typeinfo for llvm::AliasAnalysis llvm::ConstantFoldCall(llvm::Function*, llvm::Constant* const*, unsigned int) llvm::ConstantFoldInstruction(llvm:...
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 wh...
2015 Nov 13
2
[cfe-dev] RFC: Supporting macros in LLVM debug info
...15 at 4:00 AM, Aboud, Amjad <amjad.aboud at intel.com> >> wrote: >> >>> I found a way to skip representing macros in AST and create them >>> directly in CGDebugInfo through PPCallbacks during preprocessing. >>> >>> To do that, I needed to extend ASTConsumer interface with this extra >>> method: >>> >>> >>> >>> /// If the consumer is interested in notifications from Preprocessor, >>> >>> /// for example: notifications on macro definitions, etc., it should >>> return >>&...
2015 Nov 13
2
RFC: Supporting macros in LLVM debug info
On Mon, Nov 9, 2015 at 4:00 AM, Aboud, Amjad <amjad.aboud at intel.com> wrote: > I found a way to skip representing macros in AST and create them directly > in CGDebugInfo through PPCallbacks during preprocessing. > > To do that, I needed to extend ASTConsumer interface with this extra > method: > > > > /// If the consumer is interested in notifications from Preprocessor, > > /// for example: notifications on macro definitions, etc., it should > return > > /// a pointer to a PPCallbacks here. > > /// The call...
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 th...
2011 Jul 07
0
[LLVMdev] type-system-rewrite branch near landing
>> 1. Many Objective-C(++) tests fail, because they use implicitly >> defined structs for various ObjC runtime data structures; the >> ASTConsumer HandleTagDeclDefinition callback is never called for these >> structs, which means that I don't bother to lay them out, so they only >> ever get an opaque LLVM type. Then we get assertion failures when >> generating code to access fields in these structs. > > Is there...
2011 Jul 07
0
[LLVMdev] type-system-rewrite branch near landing
...nough to build most of LLVM+Clang, except for a couple of files. But I'm running out of time and expertise to be able to fix the remaining bits. Some specific concerns: 1. Many Objective-C(++) tests fail, because they use implicitly defined structs for various ObjC runtime data structures; the ASTConsumer HandleTagDeclDefinition callback is never called for these structs, which means that I don't bother to lay them out, so they only ever get an opaque LLVM type. Then we get assertion failures when generating code to access fields in these structs. 2. Even some simple C cases fail, e.g.: stru...
2015 Nov 05
2
RFC: Supporting macros in LLVM debug info
...a layer or two of indirection. I checked the approach of skipping representing macros in AST, and communicate them directly from Parser to CGDebugInfo. However, I could not find a way to initialize this communication. The only interface available through Parser is either Sema (to create an AST) or ASTConsumer. While the CGDebugInfo is only available in the CodeGenModule, which is accessible from BackendConsumer, that implements ASTConsumer. David, skipping the AST will save a lot of code, but I need help figuring out how to communicate with the CGDebugInfo. Thanks, Amjad From: David Blaikie [mailto...
2012 Mar 14
0
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
Jun-qi Deng <dengjunqi06323011 at gmail.com> writes: >> Is it? In my experience, it isn't. Please show the relevant command >> generated by your makefile and the associated error message(s). >> > >> RTTI is an on/off option that changes per LLVM library, so setting >> -fno-rtti for using LLVM makes no sense. VMCore and Support have -frtti >> while
2011 Jul 07
7
[LLVMdev] type-system-rewrite branch near landing
...lang, except for a couple > of files. But I'm running out of time and expertise to be able to fix > the remaining bits. Some specific concerns: > > 1. Many Objective-C(++) tests fail, because they use implicitly > defined structs for various ObjC runtime data structures; the > ASTConsumer HandleTagDeclDefinition callback is never called for these > structs, which means that I don't bother to lay them out, so they only > ever get an opaque LLVM type. Then we get assertion failures when > generating code to access fields in these structs. Is there some reason we can...
2012 Mar 14
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
> > Recently I think I found a bug in llvm's CMakeLists.(I use llvm 3.1svn > and > > Clang 3.1) I follow the normal way to try to compile an application that > > utilize both clang and llvm: I ./autogen.sh it, ./configure it and make > it. > > But the make fails. At last I found out the failure is because that the > > Makefile's CXXFLAGS does not contain
2011 Jul 07
5
[LLVMdev] type-system-rewrite branch near landing
An update on the type-system-rewrite branch (http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/): It's now to the point where it passes all regression tests all of single source (and most of externals/multisource) when using an LLVM 2.9 version of clang to compile programs to a rbc file. I have what looks like one more subtle type mapping bug to track down, which will
2010 Aug 05
1
[LLVMdev] RegAllocFast assertion in trunk...
...ns const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 1397 13 clang 0x00000001002641ce (anonymous namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 286 14 clang 0x00000001002a87d0 clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*) + 832 15 clang 0x0000000100264d7c clang::CodeGenAction::ExecuteAction() + 60 16 clang 0x000000010004e3e9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393 17 clang 0x0000...
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 Feb 25
0
[LLVMdev] Clang plugin - save metadata
Hi! I've tried to write a plugin for clang using an example. class PrintInheritanceConsumer : public ASTConsumer { public: virtual void HandleTopLevelDecl(DeclGroupRef DG) { ......... } }; I need to save Metadata for Type or Module into IR, but I can't find a way to do this, can you help me? Thanks! Yours sincerely, Kadysev Mikhail -------------- next part -------------- An HTML attachment was...
2014 Jul 18
2
[LLVMdev] [cfe-dev] Use of Smart Pointers in LLVM Projects
No objections here. I'd be glad to see this go in. :) - Lang. On Fri, Jul 18, 2014 at 4:30 PM, Eric Christopher <echristo at gmail.com> wrote: > Sounds like we've got sufficient amount of momentum here for Dave to > go ahead and recommit. Any last objections? > > -eric > > On Fri, Jul 18, 2014 at 1:35 PM, Eli Bendersky <eliben at google.com> wrote: >