similar to: [LLVMdev] how to modify CLANG AST and to convert it back to C code

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] how to modify CLANG AST and to convert it back to C code"

2019 Nov 29
2
security = ads parameter not working in samba 4.9.5
Hi Rowland, The line 60 contains "{" in the script. The exit 1 statement is on line number 58. Am I missing something? Regards Sachin Kumar On Fri, Nov 29, 2019 at 5:21 PM Rowland penny via samba < samba at lists.samba.org> wrote: > On 29/11/2019 11:28, Sac Isilia wrote: > > Hi Rowland, > > > > I get below error while running the script again. > >
2019 Nov 29
2
security = ads parameter not working in samba 4.9.5
Hi Rowland, I get below error while running the script again. bash samba-collect-debug-info.sh > samba-output kinit: Client's credentials have been revoked while getting initial credentials cat samba-output Please wait, collecting debug info. Wrong password or kerberos REALM problems, exiting now. Below is my /etc/krb5.conf [libdefaults] default_realm = EMEA.MEDIA.GLOBAL.LOC
2019 Apr 24
0
[PATCH v2 07/17] drm/ast: Convert AST driver to VRAM MM
The data structure |struct drm_vram_mm| and its helpers replace ast's TTM-based memory manager. It's the same implementation; except for the type names. v2: * implement ast_mmap() with drm_vram_mm_mmap() Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de> --- drivers/gpu/drm/ast/Kconfig | 1 + drivers/gpu/drm/ast/ast_drv.h | 12 +--- drivers/gpu/drm/ast/ast_main.c |
2015 Mar 05
2
[LLVMdev] Use the IR information to modify the AST
Hi,guys: I am try to get some information from the IR, such as Function type, Function arguments, I want to save then to the data structure which defined by myself, and I want use the data structure to modify the AST. But I know ,the IR was produced by the AST, I am not sure my thought is wright or not. If so, with API or function in the LLVM I will used? or some linkage or demo that I can learn
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; }* > >
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
2009 Nov 05
1
[LLVMdev] Clang and AST Generation
Hello, I am trying to use Clang to generate AST for C code in a different format. This format is specific to the term rewriting system that we use for source-to-source transformations. Studying the ast generated by Clang using the "-ast-print" option to the clang-cc, I see that the pre-processor expands the code(expected). Is there a way to get around and not print all the information
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
2012 Jun 11
0
[LLVMdev] Is it possible to generate a Clang annotated AST?
Hi, using the current version from the repository on Debug+Asserts mode I was able to generate Clangs AST on Gnu gv, however I noticed the tree provides no annotation to which part each statement it is referring to. For example, when it says binary operator I would like to know to which binary operator is it referring to. Is this possible with clang? I am using the ast-view option from cc1. As
2015 Mar 27
2
[LLVMdev] Use the IR information to Modify the AST?
Hi,guys: I am interested to use the IR information to modify the AST of the source code But I am not sure whether the LLVM support or not. Thanks, yao -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150327/e56f19a4/attachment.html>
2019 Jul 12
2
[clang][AST] : extern "C" symbols not present or not visited when traversing TU decl
Hi, I'm using clang ast for a while now to do meta compilation, and I just fell into a problem when trying to parse vulkan library which has extern "C" in it. Every symbol inside extern "C" seem to be striped from the TU and ast. I tried to #undef __cplusplus and this time I got the symbols into the AST. I first supposed it was a problem with missing includes or else, but
2018 Mar 26
0
[GSOC 2018] Extending clang AST
Hello all, My name is Stefan and I'm a 3rd year undergraduate student from Serbia. This year was the first (and probably last) time i got to learn about compilers and compiler development and I really liked it. As it sparked my interest, I started researching and found about llvm and GSoC in particular. Since I found out about GSoC a bit to late and had no prior experience with llvm, I
2012 Aug 01
3
[LLVMdev] Reading the AST from the bitcode generated by clang
> Hi all, > After reading the documentation on clang I still have the following > question: > How do I read the bitcode generated by clang from a C++ file? I need to > have all the AST information in memory. AST has nothing to do with LLVM bitcode. -- Regards, Konstantin
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
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 --------------
2012 Aug 01
0
[LLVMdev] Reading the AST from the bitcode generated by clang
Hi all, After reading the documentation on clang I still have the following question: How do I read the bitcode generated by clang from a C++ file? I need to have all the AST information in memory. Thanks, Sitvanit Sitvanit Ruah Formal Verification Group IBM Haifa Research Laboratory Tel: 972-4-828-1249
2016 Oct 27
0
[Help] How to keep ($clang_dir)/include/clang/AST/Attrs.inc file after compilation?
Hi, I'm playing with tableGenerator in order to add custom attirbute. Most of attributes are parsed from ($clang_dir)/include/clang/AST/Attrs.inc, which is generated by tableGen based on *.td, but this generated include file is deleted after parsing completes. Is there any compilation option to keep this, or any other way to do it? Thank you for your valuable time! -- Best, Sung
2005 Jan 19
4
How to replace slashes with back slashes
Dear R-helpers I am running R2.0.0 under Windows 2000. I am compiling a number of file paths into a simple text file that will be read by some other software we use. Unfortunately, it can only handle file paths with back slashes (MS Windows convention), and from R, I get file paths with forward slashes. The following didn't work. > gsub('/', '\\',
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 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