Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] emulator"
2013 Jul 05
0
[LLVMdev] emulator
Hi Dacian,
What want to make a "llvm byte code emulator", so basically you want to
learn how to use LLVM or how to make a compiler to obtain LLVM bytecode?
On Fri, Jul 5, 2013 at 8:02 AM, Herbei Dacian <dacian_herbei at yahoo.fr>wrote:
>
> Hi All,
> I'm a real newbie to this so I have a few simple question.
> I would like to make an llvm byte code emulator
2013 Sep 19
2
[LLVMdev] LLVM virtual machine
Hi Konstantin,
good point.
but I my intention is to have something like the llva project.
Basically I would like to define a machine that looks as if it has processors running natively llvm code.
And when that runs enhance the llvm byte code with some specific instructions.
Besides this if I make my measurements on the running of llvm bytecode I can test several platforms simultaneously because I
2013 Sep 19
0
[LLVMdev] LLVM virtual machine
On 9/19/13 9:53 AM, Herbei Dacian wrote:
>
> Hi Konstantin,
> good point.
> but I my intention is to have something like the llva project.
If you want something like the LLVA project for user-space applications,
then you basically want to use LLVM as-is. The only things missing are
the instructions that replace certain in-line assembly sequences that
cannot be represented by
2013 Sep 19
2
[LLVMdev] LLVM virtual machine
Hi,Is there possible to run the llvm byte code purely interpreted with lli?
I know there is this option but in the documentation is stated also that the option is not working and is not maintained.
Did I understand wrong? Is it working?
Is anyone working on this option?
I would like to make something similar to q-emu or bochs.
best regards,
dacian
-------------- next part --------------
An HTML
2013 Sep 19
0
[LLVMdev] LLVM virtual machine
19.09.2013, 18:20, "Herbei Dacian" <dacian_herbei at yahoo.fr>:
> Hi,
> Is there possible to run the llvm byte code purely interpreted with lli?
> I know there is this option but in the documentation is stated also that the option is not working and is not maintained.
> Did I understand wrong? Is it working?
> Is anyone working on this option?
> I would like to
2013 Jul 19
2
[LLVMdev] llva-emu
Hi All,
can anyone tell me where I can find the sources for the llva-emu project?
I've tried to contact Michael Brukman or Brian Gaeke but no reply.
thank you for any help,
dacian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130719/94fcf74b/attachment.html>
2013 Jul 19
0
[LLVMdev] llva-emu
On 7/19/13 3:20 AM, Herbei Dacian wrote:
>
>
> Hi All,
> can anyone tell me where I can find the sources for the llva-emu project?
The llva-emu code is extremely old and, as I recall, not very
feature-filled. It was also done for a class project (I don't think it
was used for the original LLVA publication, and it wasn't used for any
of the subsequent LLVA/SVA publications
2013 Jun 25
4
[LLVMdev] get value
Hi Cristianno,
Thank you, it works :)
with an extra cast:
Value *v ......
ConstantInt* RR = (ConstantInt *)v;
uint64_t VV = (RR->getValue()).getLimitedValue();
errs()<<"\nRR "<<VV<<"\n";
2013 May 02
2
[LLVMdev] int to StringRed conversion
I think the better solution should be:
LLVMContext& C = is->getContext();
Value *values[] = {
ConstantInt::getSigned(Type::getInt64Ty(C), *scsr*),
MDString::get(C, *"path"*)
};
lnstr.setMetadata(*"your_analysis_name"*, MDNode::get(C, values));
So that you can take advantage of the type system of LLVM bitcode, and
don't have to cast the integers from/to strings
2012 Dec 20
2
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
Hello,
Thank you for your answer. If I want to use
then I have
error: ‘NodeTy* llvm::ilist_half_node<NodeTy>::getPrev() [with NodeTy =
llvm::Instruction]’ is protected
error: ‘llvm::ilist_half_node<llvm::Instruction>’ is not an accessible base
of ‘llvm::Instruction’
Do you know any other method to access the previous instruction of a
terminator instruction? PS: back() is not an
2013 Feb 27
3
[LLVMdev] llvm get annotations
Hello everyone !
I followed
http://stackoverflow.com/questions/4976298/modern-equivalent-of-llvm-annotationmanagerin
order to get annotations from my target bytecode. All the examples
that
I give in the following is related to the code from that link. I have
`__attribute__((annotate("DS"))) int f=0;` into the target C++ program and
the related IR code:
@.str = private unnamed_addr
2013 Jun 06
3
[LLVMdev] CFG of a function
I think I understood that, but what I mean is what is the function
responsible to do mapping is it MapValue() in ValueMapper.h?
Thanks for your help
On 6 June 2013 09:54, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
> Map every basic block from the CFG to a set of integers. The successors
> from the CFG can be used to make the edges in your simplified
2012 Dec 20
1
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
I solved by checking
if(BB->size()>1)
Thank you all for the help !
Now debugging the next segfault.
On Thu, Dec 20, 2012 at 12:59 PM, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
> getPrevNode<http://llvm.org/docs/doxygen/html/classllvm_1_1ilist__node.html#a77b897207ef0a1ae95c404695aed9a4b>()
> Get the previous node, or 0 for the list
2013 May 02
0
[LLVMdev] int to StringRed conversion
Yes, it sounds good. I can try tomorrow.
Thank you for your advice !
On Thu, May 2, 2013 at 5:43 PM, Logan Chien <tzuhsiang.chien at gmail.com>wrote:
> I think the better solution should be:
>
>
> LLVMContext& C = is->getContext();
> Value *values[] = {
> ConstantInt::getSigned(Type::getInt64Ty(C), *scsr*),
> MDString::get(C, *"path"*)
> };
2013 May 02
4
[LLVMdev] int to StringRed conversion
Hello everyone,
I have an integer and I want to convert it to StringRef in order to set
metadata.
setMetadata->(StringRef, MDNode*);
It is there a native LLVM way to do it?
1. In the llvm::APSInt Class is toString() method, which seems it is not
for this purpose
2. itoa and string are not part of LLVM
3. stringstream is not part of LLVM
4. to_string is not part of LLVM
5. any casting method?
2013 Jun 05
2
[LLVMdev] CFG of a function
What do you mean by mapping to integers?
On 5 June 2013 22:32, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
> Why you don't map the basic blocks to integers and apply algorithms on the
> integer graph? And construct your new CFG.
>
>
> On Wed, Jun 5, 2013 at 10:27 PM, Rasha Omar <rasha.sala7 at gmail.com> wrote:
>
>> How
2012 Dec 20
0
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
getPrevNode<http://llvm.org/docs/doxygen/html/classllvm_1_1ilist__node.html#a77b897207ef0a1ae95c404695aed9a4b>()
Get the previous node, or 0 for the list head. I don't see any method like
hasPrevNode.
It can be a weird problem because "current->getPrevNode()" is indicating to
"current" itself (the problem appears for the BB with only one element)?
On Thu, Dec
2013 Mar 01
1
[LLVMdev] llvm get annotations
Hi, I solved it. From the ConstantStruct you can call getOperand() multiple
times, so "mine" as deep as you can.
On Fri, Mar 1, 2013 at 1:41 PM, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
>
> Hi Sebastian,
>
> Thanks for the response.
>
> I already did this :
>
> I cast the entire annotated expression to Value*. Then, in
2013 Jun 07
1
[LLVMdev] CFG of a function
But I don't want to map only basic blocks, I need too to map the edges "the
whole CFG of the function"
Save the CFG of the function in another memory address and call it for
example orgCFG and change the CFG by referencing to the orgCFG
Thank you for help and patience
On 6 June 2013 10:59, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
> I
2013 Mar 05
5
[LLVMdev] LLVM load instruction query
HI,
I am creating a pass that will pass loaded value by load instruction to an
external function.
I don't know how to do it.Please Help.