similar to: [LLVMdev] including llvm IR parser in my project

Displaying 20 results from an estimated 80000 matches similar to: "[LLVMdev] including llvm IR parser in my project"

2012 Oct 25
1
[LLVMdev] How to include IR parser and optimization passes in my project
Hi, I am a newbie in LLVM. I am very impressed with this forum and appreciate your help and time. I am trying to include llvm IR parser in my codebase, the way I wanna do is generate llvm's shared object (.so) file and use it in my project. So far I haven't been able to generate correct .so's. When I build a debug build with gmake (have llvm and clang in my sandbox), I get the
2012 Oct 08
2
[LLVMdev] How can I find the LHS of the function call when traversing the function call
Hi All, I am a new member in the group, have been doing some experiments with LLVM IR. I am facing issue with de-compiling the following instruction once it is read, %var2 = call i8 @myfuncCall (i2 %var1) In after I parse the file (lets say using parseIRFiles ). I can see the instructions,( the function call instruction ), How can I get the %var2 from the instruction/callInstruction ? going
2004 Oct 04
0
[LLVMdev] C++ Parser (Was: Call for Volunteers: the Synopsis project)
Doug Gregor wrote: [LLVM-ers: I CC this message since I explicity mention the LLVM project] > >> From: David Abrahams [mailto:dave at boost-consulting.com] > >> Stefan has recently been trying to get compile-time constants from > >> sizeof() into the parser.  As he knows, this is going to mean handling > >> such things as template instantiation and overload
2010 Jul 23
0
[LLVMdev] Does anyone have an IR parser written in OCaml?
Hey, Does anyone have an IR parser written in OCaml? In my project, I wanted to program LLVM IR AST in OCaml. Those LLVM OCaml bindings can call the C++ parser, but in OCaml, we cannot program on the AST's directly since C++ objects are opaque in OCaml. -- Jianzhou
2009 Mar 25
0
[LLVMdev] Rolling my own LLVM assembly language parser
Hello, > I was thinking of generating my own lexer and parser for LLVM assembly. I'm > aware that between the specification here: Why do you need this? There is already a parser library inside LLVM framework and you can use it directly without any problems. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2009 Mar 25
0
[LLVMdev] Rolling my own LLVM assembly language parser
jstanier wrote: > Hi everyone, > > I'm currently in the first year of my PhD, and I'm going to be looking at an > experimental IR for my thesis. After looking at a variety of research > compilers I've come to the conclusion that LLVM is the nicest to work with > for my purposes. I was considering writing the code to construct this > experimental IR from LLVM
2013 Feb 19
0
[LLVMdev] LLVM/Clang 3.1: Add a new include path in a clang C++ based parser
Hi, I'm having troubles to add a custom include path to a clang based C++ parser. I'd like to properly support this opencv code under Linux: ... #include "cv.h" #include "highgui.h" ... This is what I'm using: TheCompInst->getHeaderSearchOpts().AddPath(StringRef("/usr/include/opencv"),clang::frontend::Quoted ,false, true, false, false, false);
2013 Feb 19
0
[LLVMdev] LLVM/Clang 3.1: Add a new include path in a clang C++ based parser
Hi, I'm having troubles to add a custom include path to a clang based C++ parser. I'd like to properly support this opencv code under Linux: ... #include "cv.h" #include "highgui.h" ... This is what I'm using: TheCompInst->getHeaderSearchOpts().AddPath(StringRef("/usr/include/opencv"),clang::frontend::Quoted ,false, true, false, false, false);
2009 Mar 25
2
[LLVMdev] Rolling my own LLVM assembly language parser
Thank you both for your answers. The only reason I was interested in not using the built-in parsing library was that it would give me more flexibility over the language I program in, but if it means brushing up on my C++ then this isn't too much of a problem either. With regards to using the in-memory LLVM, that's also a good approach. However, I was thinking of structuring my thesis
2009 Mar 25
0
[LLVMdev] Rolling my own LLVM assembly language parser
You can achieve the 'standalone tools' effect using LLVM bitcode, which is a binary IR format. Then you can have: source code -> [llvm-gcc frontend] -> bc bc -> [your tool using llvm bitcode reader writer library, doing whatever mutations to the IR you want and spitting out bc again] -> bc bc -> [llvm backend (llc)/llvm-as/...] -> native code. Doesn't that meet your
2009 Mar 26
0
[LLVMdev] Rolling my own LLVM assembly language parser
On Wednesday 25 March 2009 14:16:42 Jon Harrop wrote: > I assume James is only considering reinventing this wheel because he is > not using C++. LLVM does not play nice with other languages because C++ > is quite uninteroperable. There are C bindings to LLVM that make it a lot > easier but, of course, they are far from complete. > > So I can fully appreciate the desire to do
2009 Mar 25
4
[LLVMdev] Rolling my own LLVM assembly language parser
Hi everyone, I'm currently in the first year of my PhD, and I'm going to be looking at an experimental IR for my thesis. After looking at a variety of research compilers I've come to the conclusion that LLVM is the nicest to work with for my purposes. I was considering writing the code to construct this experimental IR from LLVM assembly, and then at the end of the process (i.e. new
2012 Oct 03
0
[LLVMdev] can I print DFG for IR
Hi, I have been trying my hand on writing a simple traversal of the graph node. I see the opt can print me a CFG for a given IR, is there some tool which i can use to print a DFG (data-flow graph) for the IR ? thanks and regards Tarique -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Mar 25
3
[LLVMdev] Rolling my own LLVM assembly language parser
On Wednesday 25 March 2009 17:12:34 John Criswell wrote: > jstanier wrote: > > Hi everyone, > > > > I'm currently in the first year of my PhD, and I'm going to be looking at > > an experimental IR for my thesis. After looking at a variety of research > > compilers I've come to the conclusion that LLVM is the nicest to work > > with for my
2016 Jan 26
2
Getting _eh_frame parser for llvm
Sent from my iPhone > On Jan 26, 2016, at 7:40 AM, Dave Bozier via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > There is some eh_frame section parsing going on in the linker which is > required for .eh_frame_hdr creation and probably useful for dead-frame > elimination in the future. I think there's 2 linker parsers (a macho one and elf/coff), runtime dyld, and dwarf
2015 Oct 08
2
llvm:cl::parser subclasses final in 3.7?
All, I'm upgrading some code that uses LLVM from 3.6 to 3.7. It looks like the llvm::cl::parser subclasses are now final? We had been doing: struct MaxThreadsParser : public llvm::cl::parser<unsigned> { bool parse(llvm::cl::Option &O, llvm::StringRef ArgName, llvm::StringRef Arg, unsigned &Val); }; But that's now causing: In file included from
2019 Jan 25
0
[klibc:update-dash] [PARSER] Simplify EOF/newline handling in list parser
Commit-ID: 807d37fa7f3b25884946c789ea6458f19647abf0 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=807d37fa7f3b25884946c789ea6458f19647abf0 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Tue, 28 Oct 2014 17:22:16 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [PARSER] Simplify
2020 Mar 28
0
[klibc:update-dash] dash: [PARSER] Simplify EOF/newline handling in list parser
Commit-ID: a5a6a6ba303805417242138104643d8c40d71d00 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=a5a6a6ba303805417242138104643d8c40d71d00 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Tue, 28 Oct 2014 17:22:16 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [PARSER]
2019 Dec 16
2
[RFC][DWARF] Handling errors in DWARF .debug_line parsing
Hey James, This sounds really interesting. A few things that come to mind: - I'm curious what kind of errors you'd be okay with in dump mode but not in consumer mode. From LLDB's perspective, we probably want to extract as much information as possible from a malformed line table, as long as we don't end up lying of course. - I need to take another look at the code, but
2019 Jan 25
0
[klibc:update-dash] [PARSER] Removed unnecessary pungetc on EOF from parser
Commit-ID: 68538dfb6bf8b4d98d973c80cd77e843fa0b24b7 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=68538dfb6bf8b4d98d973c80cd77e843fa0b24b7 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Tue, 28 Oct 2014 10:32:03 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [PARSER] Removed