search for: astcontext

Displaying 20 results from an estimated 87 matches for "astcontext".

2014 May 02
2
[LLVMdev] clang build (Debug+Asserts) fails with Cygwin and Mingw (ASTContext.o: File too big)
...switching from a Linux development host to Windows7 with Cygwin, I notice the following problem when building clang (trunk, HEAD): (also happens with Mingw) ... llvm[4]: Compiling ParseInit.cpp for Debug+Asserts build as: /cygdrive/d/Projects/Cpp/llvm/cfgCygwin/tools/clang/lib/AST/Debug+Asserts/ASTContext.o: too many sections (33066) /tmp/ccmtDH7w.s: Assembler messages: /tmp/ccmtDH7w.s: Fatal error: can't write /cygdrive/d/Projects/Cpp/llvm/cfgCygwin/tools/clang/lib/AST/Debug+Asserts/ASTContext.o: File too big as: /cygdrive/d/Projects/Cpp/llvm/cfgCygwin/tools/clang/lib/AST/Debug+Asserts/ASTC...
2014 May 02
2
[LLVMdev] clang build (Debug+Asserts) fails with Cygwin and Mingw (ASTContext.o: File too big)
...kie wrote: > Any idea what all those sections are - comdat inline functions? > No idea, as I cannot run objdump -h on a object file that I couldn't build :) Anyhow, I have an old, successful Debug+Asserts build of clang, made with Mingw also, for clang revision 206070. Apparently, the ASTContext.o file there contained 16453 sections, not 33066, as there are today. > Does the debug info in COFF do something weird and emit a section per > type or function? > I will do a release build tomorrow and check the sections. (in my timezone it's night) - I will let you know! > On...
2012 Mar 08
1
[LLVMdev] fix a "does not name a type" bug in VASTContext.h
Hi all, I find a bug in the VASTContext.h of the latest clang. I fixed it and commit a patch for it. As follows: >From 447d31176b513a03b253eb25ef314c2a3c0e428a Mon Sep 17 00:00:00 2001 From: Tsingray <tsingray at buildbot-slave-desktop.(none)> Date: Thu, 8 Mar 2012 22:11:54 +0800 Subject: [PATCH] fix a 'does not name a type...
2017 May 30
2
Communication between Clang Sema and the Clang Codegen...
Hi All, We have populated info in the Clang Sema i.e class Sema (include/clang/Sema/Sema.h) and like to propagate the same to Clang Codegen . Currently we are propagating through ASTContext ,where we have duplicating fields info and operation in the Sema and ASTContext . Any better way of doing the same ? Thank you ~Umesh
2013 Sep 06
3
Samba4 LDAP Integration with Asterisk
Hi, I am turning crazy. I try to integrate Asterisk 11.5.1 into Samba4 LDAP, but when I import the ldif file from contrib directory I get this error. ldbmodify -H /usr/local/samba/private/sam.ldb asterisk.ldif --option="dsdb:schema update allowed"=true ERR: (No such object) "objectclass: Cannot add cn=asterisk,cn=schema,cn=config, parent does not exist!" on DN
2013 May 26
2
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...r All, I have a question How could I use WhileStmt class in Stmt.h http://clang.llvm.org/doxygen/Stmt_8h_source.html to implement while loop like while(i==1){} that is required to be inserted For example, Convert x++; y++; to x++; while(i=1){} y++; from the class's constructor: WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,SourceLocation WL);//I know C --> 1//Var--> i//cond --> =//body --> NOP//WL --> ?? but how to implement these terms in LLVM pass? and what's the SourceLocation? Thanks -- *Rasha Salah Omar Msc Student at E-JUST Demonestrator at F...
2013 Dec 10
0
[LLVMdev] Switching to the new MingW ABI
...ate member of 'test8::A' 2 errors generated. There are a handful other tests failing in the same way. It would be nice if we could make the TypePrinter not print the calling convention if it's the default one for the ABI, but TypePrinter doesn't have a lot of context.. no Sema, no ASTContext :/ - Hans
2007 Dec 22
0
[LLVMdev] random warnings
On Dec 20, 2007, at 3:56 PM, Mike Stump wrote: > They looked real enough to me: Fixed, thanks. -Chris > > > /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In > function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, > short int&)’: > /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: > 148: warning:
2007 Dec 20
2
[LLVMdev] random warnings
They looked real enough to me: /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, short int&)’: /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: 148: warning: dereferencing type-punned pointer will break strict- aliasing rules
2020 Jun 30
5
[RFC] Semi-Automatic clang-format of files with low frequency
...e it feels like unnecessary churn which is why I suggested this be in code which hasn't been touched in some time (I'd be fine if that time is 1+ years), but more often than not this is quite small basic style issues, similar to the ones below. MyDeveloperDay - void HandleTranslationUnit(ASTContext& context) override { + void HandleTranslationUnit(ASTContext &context) override { if (!Instance.getLangOpts().DelayedTemplateParsing) return; - std::set<FunctionDecl*> LateParsedDecls; + std::set<FunctionDecl *> LateParsedDecls; On Tue, Jun 30, 2020 at 6...
2013 Dec 10
2
[LLVMdev] Switching to the new MingW ABI
On Tue, Dec 10, 2013 at 11:58 AM, Hans Wennborg <hans at chromium.org> wrote: > It would be nice if we could make the TypePrinter not print the > calling convention if it's the default one for the ABI, but > TypePrinter doesn't have a lot of context.. no Sema, no ASTContext :/ > Does this patch fix any failures for you? It doesn't fix that test case, unfortunately. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131210/ffd7b891/attachment.html> -------------- next pa...
2018 May 02
3
Generating function definition for function that's only called during unwinding
Hi, I'm trying to understand how clang keeps track of which declarations are called within a translation unit and decides to codegen their definitions. DeclBase.h has a markUsed to keep track of ODR use, and I think that the decl can be found from the symbol table via ASTContext.h (for example looking up a template via GetQualifiedTemplateName -> getAsTemplateDecl -> setIsUsed ). This is just a result of fumbling around in the dark, I could be totally wrong. I'd like to know what part of the system is responsible for tracking usage, and whether that's the sa...
2019 Jan 10
2
Proposal for string keys for address_space
+cfe-dev at lists.llvm.org On Thu, Jan 10, 2019 at 2:16 PM Jacob Lifshay <programmerjake at gmail.com> wrote: > > Stash a lookup table from integers to strings in Context and dynamically allocate integers for new strings. You can then keep integers in most of the code, writing/displaying strings for the integers with an entry in the table when writing to files or displaying. > >
2010 Mar 01
1
[LLVMdev] Clang build problem
Just got clang from head and getting: ExprConstant.cpp: In function Obool TryEvaluateBuiltinNaN(clang::ASTContext&, clang::QualType, const clang::Expr*, bool, llvm::APFloat&)¹: ExprConstant.cpp:1578: error: no matching function for call to Ollvm::StringRef::getAsInteger(int, llvm::APInt&)¹ /home/neale/LLVM/llvm/include/llvm/ADT/StringRef.h:269: note: candidates are: bool llvm::StringRef::getAsInteg...
2010 Aug 05
1
[LLVMdev] RegAllocFast assertion in trunk...
...010014e345 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions 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 0x000000...
2012 Jul 03
2
[LLVMdev] error with cmake build of llvm
...ang [ 97%] Built target libclang_static Linking CXX executable ../../../../bin/c-index-test ../../../../lib/libclang.so.3.2: undefined reference to `clang::ReturnStmt::getRetValue()' ../../../../lib/libclang.so.3.2: undefined reference to `clang::NestedNameSpecifierLocBuilder::MakeGlobal(clang::ASTContext&, clang::SourceLocation)' ../../../../lib/libclang.so.3.2: undefined reference to `clang::NestedNameSpecifierLocBuilder::Extend(clang::ASTContext&, clang::NamespaceDecl*, clang::SourceLocation, clang::SourceLocation)' .... I could not figure out the reason, any idea is welcome ? T...
2013 May 26
0
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...ss| in Stmt.h > > http://clang.llvm.org/doxygen/Stmt_8h_source.html > > to implement |while loop| like |while(i==1){}| that is required to be > inserted > > For example, Convert x++; y++; to x++; while(i=1){} y++; > > from the class's constructor: > > |WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,SourceLocation WL); > //I know C --> 1 > //Var--> i > //cond --> = > //body --> NOP > //WL --> ??| > > but how to implement these terms in LLVM pass? and what's the > SourceLocation? Do you actuall...
2013 Oct 10
1
[LLVMdev] compile error
...#39;s homepage the following error occurs: llvm-3.3.src/Release+Asserts/lib/libclangAST.a(VTableBuilder.o): In function `(anonymous namespace)::VCallAndVBaseOffsetBuilder::AddVCallOffsets(clang::BaseSubobject, clang::CharUnits)': VTableBuilder.cpp:(.text+0xc6c3): undefined reference to `clang::ASTContext::toCharUnitsFromBits(long long) const' What should I do to resolve this issue? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131010/e31fce8d/attachment.html>
2013 Dec 10
2
[LLVMdev] Switching to the new MingW ABI
> There are a handful other tests failing in the same way. > > It would be nice if we could make the TypePrinter not print the > calling convention if it's the default one for the ABI, but > TypePrinter doesn't have a lot of context.. no Sema, no ASTContext :/ They are all TypePrinter failures like this one? If so I would say we should not block on it since it is a small QOI issue. On the other hand Reid says it should be an easy fix, so we can wait a bit. Cheers, Rafael
2013 Dec 11
2
[LLVMdev] Switching to the new MingW ABI
...Hans Wennborg <hans at chromium.org> > wrote: > >> > >> It would be nice if we could make the TypePrinter not print the > >> calling convention if it's the default one for the ABI, but > >> TypePrinter doesn't have a lot of context.. no Sema, no ASTContext :/ > > > > > > Does this patch fix any failures for you? It doesn't fix that test case, > > unfortunately. > > Unfortunately, no, I still see the same failures. These are the > TypePrinter related failures I see: > > Clang :: CXX/class.access/p6.cpp &...