Displaying 11 results from an estimated 11 matches for "libbeauty".
2013 Apr 21
2
[LLVMdev] Testing methods
...on. How do you verify that the
generated CPU specific instruction is correct?
Is there an automated method for this?
I wish to implement automated testing on a decompiler I am writing,
and thought that the test methods used in LLVM might be applicable to
my decompiler. ( https://github.com/jcdutton/libbeauty )
The thoughts I have had is to use a 3rd party assembler/disassember
such as libbfd and parse the results of the 3rd party one, and compare
it to mine.
Any help with ideas in this area would help me.
Kind Regards
James
2012 Sep 13
5
[LLVMdev] [OT] Control Flow Graph(CFG) into Abstract Syntax Tree(AST)
Hi,
I know most compilers go from AST to CFG.
I am writing a decompiler, so I was wondering if anyone knew of any
documents describing how best to get from CFG to AST.
The decompiler project is open source.
https://github.com/jcdutton/libbeauty
The decompiler already contains a disassembler and a virtual machine
resulting in an annotated CFG. It uses information gained from using a
virtual machine to annotate the CFG. Another use of the VM will be to
help analyze self modifying code.
The decompiler can output C source code form the CFG,...
2012 May 07
6
[LLVMdev] Using LLVM for decompiling.
...;m not sure that there's anything that will help you with this step for
> LLVM. The closest I can think of is Qemu, and I think that uses dynamic
> binary translation (i.e., you have to run the binary program).
>
No problem. I have already coded (1) and (2)
https://github.com/jcdutton/libbeauty
It uses a tiny VM to help it do 1 and 2, so will eventually be able to
also handle self modifying code.
It is similar to qemu in that respect, except that it is not so
concerned with real time execution of the code that qemu provides.
>
>> 3) The blocks or nodes are then analyzed for struc...
2018 Aug 07
4
Generating a loop from llvm bitcode
Hello
I am developing a backend that generates OpenCL from llvm bitcode. I start with a revived fork of the original LLVM C-Backend and have been modifying it. One thing that the backend lacked was generating proper loop structures; instead it relied on labels and goto statements. Therefore, I am trying to find a way to identify the loop structure and print it out in the backend. So far, the main
2012 May 07
0
[LLVMdev] Using LLVM for decompiling.
...9;s anything that will help you with this step
> > for LLVM. The closest I can think of is Qemu, and I think that uses
> > dynamic binary translation (i.e., you have to run the binary program).
> >
> No problem. I have already coded (1) and (2)
> https://github.com/jcdutton/libbeauty
> It uses a tiny VM to help it do 1 and 2, so will eventually be able to also handle
> self modifying code.
> It is similar to qemu in that respect, except that it is not so concerned with real
> time execution of the code that qemu provides.
> >
> >> 3) The blocks or nod...
2013 Apr 14
0
[LLVMdev] llvm 'select' instruction
Something like this should do the job (taken from a test file from the
libbeauty decompiler project):
/* A very simple jump table. */
int test58(int var1) {
int n = 0;
switch (var1) {
case 1:
n = 1;
break;
case 2:
n = 2;
break;
case 3:
n = 3;...
2013 May 03
2
[LLVMdev] How to convert the .s file(assemble) to .ll (IR)
Hi all,
I have the file which is assemble, I want to convert it to IR.
Are there some tools to do this in LLVM?
Thanks,
Yao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130503/d7fd4741/attachment.html>
2012 Sep 21
0
[LLVMdev] [OT] Control Flow Graph(CFG) into Abstract Syntax Tree(AST)
...James Courtier-Dutton wrote:
> Hi,
>
> I know most compilers go from AST to CFG.
> I am writing a decompiler, so I was wondering if anyone knew of any
> documents describing how best to get from CFG to AST.
> The decompiler project is open source.
> https://github.com/jcdutton/libbeauty
>
> The decompiler already contains a disassembler and a virtual machine
> resulting in an annotated CFG. It uses information gained from using a
> virtual machine to annotate the CFG. Another use of the VM will be to
> help analyze self modifying code.
>
> The decompiler can o...
2012 May 07
0
[LLVMdev] Using LLVM for decompiling.
On 5/7/12 5:47 AM, James Courtier-Dutton wrote:
> Hi,
>
> I am writing a decompiler. I was wondering if some of LLVM could be
> used for a decompiler.
> There are several stages in the decompiler process.
> 1) Take binary and create a higher level representation of it. Like RTL.
> 2) The output is then broken into blocks or nodes, each block ends in
> a CALL, JMP, RET, or
2013 Apr 14
8
[LLVMdev] llvm 'select' instruction
hello guys:
i am thinking about what kind of C instructions can turn into llvm IR
'select' instruction.
i tried "d=a?b:c" and compiled it using clang, i still didn't get 'select'
is there anybody who knows this?
thank you
--
View this message in context: http://llvm.1065342.n5.nabble.com/llvm-select-instruction-tp56719.html
Sent from the LLVM - Dev mailing list
2012 May 07
6
[LLVMdev] Using LLVM for decompiling.
Hi,
I am writing a decompiler. I was wondering if some of LLVM could be
used for a decompiler.
There are several stages in the decompiler process.
1) Take binary and create a higher level representation of it. Like RTL.
2) The output is then broken into blocks or nodes, each block ends in
a CALL, JMP, RET, or 2-way or multiway conditional JMP.
3) The blocks or nodes are then analyzed for