Displaying 20 results from an estimated 51 matches for "cristiannomartins".
2013 Jun 25
4
[LLVMdev] get value
... ConstantInt* RR = (ConstantInt *)v;
uint64_t VV = (RR->getValue()).getLimitedValue();
errs()<<"\nRR "<<VV<<"\n";
________________________________
From: Cristianno Martins <cristiannomartins at gmail.com>
To: Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com>
Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu>
Sent: Tuesday, June 25, 2013 12:27 PM
Subject: Re: [LLVMdev] get value
Hi Alexandru,
if you have a Value pointer named v, you could use...
2013 Jun 25
0
[LLVMdev] get value
Oops, that's true: I forgot about that XD sorry =)
Glad I could help,
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
On Tue, Jun 25, 2013 at 4:38 AM, Alexandru Ionut Diaconescu <
cyrusthevirus001x at yahoo.com> wrote:
> Hi Cristianno,
>
> Thank you, it works :)
>
> with an extra cast:
> Value *v ......
>...
2013 Jun 26
0
[LLVMdev] get value
...stantInt>(v)" instead. See
http://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-templates
.
Nick
> uint64_t VV = (RR->getValue()).getLimitedValue();
> errs()<<"\nRR "<<VV<<"\n";
>
>
> *From:* Cristianno Martins <cristiannomartins at gmail.com>
> *To:* Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com>
> *Cc:* "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu>
> *Sent:* Tuesday, June 25, 2013 12:27 PM
> *Subject:* Re: [LLVMdev] get value
>
> Hi Alexandru,
>
> if you ha...
2013 May 31
2
[LLVMdev] Dead Code Elimination and undef values
...,
where %storemerge has no uses.
So, is there any other dce variant I should be enabling for opt? Better
yet, is this the correct behavior for all the dce variants I enabled in opt?
Thanks,
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130531/909d2e73/attachment.html>
2013 Apr 16
2
[LLVMdev] How to implement list in llvm
Thank you for your answer!
You are right, but I still don't know how to build such a list dynamically
using LLVM API with user type inside (I don't know this type yet ofc).
2013/4/15 Cristianno Martins <cristiannomartins at gmail.com>
> Hi,
>
> I guess you could use a template with a std::vector: you don't need to
> define right away the type, if you create a template of it.
>
> It should look something like that:
>
> template<class B> class List {
> std::vector<B> myL...
2013 Jun 01
0
[LLVMdev] Dead Code Elimination and undef values
...ce didn't get the phi
node though, want to open a bugreport about that?
Ciao, Duncan.
>
> Thanks,
>
> --
> Cristianno Martins
> PhD Student of Computer Science
> University of Campinas
> cmartins at ic.unicamp.br <mailto:cmartins at ic.unicamp.br>
> <mailto:cristiannomartins at hotmail.com>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
2013 Apr 16
0
[LLVMdev] How to implement list in llvm
...Tuesday, 16 de April de 2013 at 04:22, B B wrote:
> Thank you for your answer!
>
> You are right, but I still don't know how to build such a list dynamically using LLVM API with user type inside (I don't know this type yet ofc).
>
>
> 2013/4/15 Cristianno Martins <cristiannomartins at gmail.com (mailto:cristiannomartins at gmail.com)>
> > Hi,
> >
> > I guess you could use a template with a std::vector: you don't need to define right away the type, if you create a template of it.
> >
> > It should look something like that:
> >
>...
2013 May 14
2
[LLVMdev] Queue implementation is being trapped
...set of instructions inside. However, when using templates,
the names of the functions are being messed up (which was the issue I was
trying to avoid in the first place).
Thanks in advance,
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130514/4bf331f5/attachment.html>
2013 May 14
0
[LLVMdev] Queue implementation is being trapped
On Tue, May 14, 2013 at 11:42 AM, Cristianno Martins <
cristiannomartins at gmail.com> wrote:
> Hello there,
>
> I'm trying to use a simple implementation of a queue (my own
> implementation of it, actually), and I'm trying to use the functions
> defined on my queue class inside some llvm-ir code. Unfortunately, the
> names of the functions...
2013 Jun 10
0
[LLVMdev] CFG of a function
...ince every reference in a ValueToValueMap
is a Value ;)
PS: I'm adding the llvm-dev list back into the recipients, since someone
else could also find this informations useful.
Cheers,
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
On Mon, Jun 10, 2013 at 7:00 AM, Rasha Omar <rasha.sala7 at gmail.com> wrote:
> Thank you for your reply
> Actually, I did these three steps. Moreover, the step of eraseFromParent()
> ClonedFunction->eraseFromParent();
> in the last step in the pass....
2015 May 06
3
[LLVMdev] (Possibly buggy?) doFinalization method behavior of FunctionPass
...but the final
bc file (written by opt) does have the exactly same code that I get if I
dumped module at the beginning of my doFinalization (and they have
differences between them btw =)).
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150506/2cb31db5/attachment.html>
2013 Jun 25
0
[LLVMdev] get value
Hi Alexandru,
if you have a Value pointer named v, you could use the method v->getValue().
getLimitedValue(), which returns uint64_t, that can be casted as int.
Hope I could help,
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
On Tue, Jun 25, 2013 at 4:05 AM, Alexandru Ionut Diaconescu <
cyrusthevirus001x at yahoo.com> wrote:
> Hello !
>
> This may be a trivial question, but I cannot get fields from a Value type.
>
> If my Value is i32 1, how can I store 1 in a different structu...
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
2013 Jun 25
2
[LLVMdev] get value
Hello !
This may be a trivial question, but I cannot get fields from a Value type.
If my Value is i32 1, how can I store 1 in a different structure (an integer) ? For the type, I have getType(). For the value, I see no method in Value.h.
I tried to cast to ConstantExpr and then to get operands, or cast to ConstantDataArray and then use getAsString(), but is not working. How should I get the
2016 Jun 23
4
[cfe-dev] clang++ build from source is not able to find C++ headers
...le" on the current terminal, or
simply open a new terminal, and you'll be able to use new-clang and
new-clang++, instead of clang and clang++, to invoke your newest compiled
binary.
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
On Thu, Jun 23, 2016 at 2:58 PM, Jonathan Roelofs via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
>
> On 6/23/16 11:56 AM, vivek pandya via llvm-dev wrote:
>
>>
>>
>> On Thu, Jun 23, 2016 at 7:36 PM, Tim Northover <t.p.northover at gma...
2013 Apr 12
1
[LLVMdev] Runtime exception in DominatorTree.getRootNode()
...with the namespace. Just tell me one thing: which line (and flags)
are you using when configuring and make your build llvm directory?
Oh, and one more thing: what is on your $PATH?
Cheers,
--
Cristianno Martins
PhD Student of Computer Science
University of Campinas
cmartins at ic.unicamp.br
<cristiannomartins at hotmail.com>
On Fri, Apr 12, 2013 at 12:03 PM, John Criswell <criswell at illinois.edu>wrote:
> On 4/12/13 9:51 AM, Bill He wrote:
>
> Thanks for your reply, John.
>
> I am using opt to run my pass. Should opt by default link in the
> library? Would you please giv...
2012 Apr 26
0
[LLVMdev] Detect if a basicblock is part of a loop
...ve run before your pass, the loop may have been unrolled or simplified if the computation inside the loop is too simple.
Cheers,
--
Arnaud de Grandmaison
________________________________________
From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Cristianno Martins [cristiannomartins at gmail.com]
Sent: Thursday, April 26, 2012 5:52 PM
To: Hal Finkel
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Detect if a basicblock is part of a loop
Hi Rinaldini,
In order to find information about loops inside a given function you should use something like "LoopInfo *LI = P->ge...
2012 Mar 21
0
[LLVMdev] Issues with flag namespace
.... Second, in
> Linux there is a special link-time flag "-rdynamic" that allows
> lazily-loaded dynamic library to successfully resolve its dependency,
> if the parent application has already resolved the same dependency.
>
> - D.
>
> 2012/3/20 Cristianno Martins <cristiannomartins at gmail.com (mailto:cristiannomartins at gmail.com)>:
> > Hello everyone,
> >
> > I'm trying to create a plugin as a dynamic loadable library for opt.
> > Therefore, I'm facing some interesting issues.
> > First, I'm running OS X Lion, and i686-apple-d...
2013 Apr 19
2
[LLVMdev] How to implement list in llvm
...is no
possibility to generate bitcode of template, so I finally build it with
std::vector<void*>. Do you know about any better solutions how to build
such a type with llvm? Maybe there is a llvm built in type that is better
choice than external c++ wrapper?
2013/4/16 Cristianno Martins <cristiannomartins at gmail.com>
> Hi,
>
> Sorry, but I'm not sure I understand what you're trying to do. I guess you
> want some kind of superclass of some set of classes that are defined in the
> llvm api(?). In that case, which are specifically the types you could have
> in this list...
2014 Jul 15
4
[LLVMdev] Partial loop unrolling
Hi,
PS: It is a generic question related to partial loop unrolling, and nothing
specific to LLVM.
As far as partial loop unrolling is concerned, I could see following three
different possibilities. Assume that unroll factor is 3.
Original loop:
for (i = 0; i < 10; i++)
{
do_foo(i);
}
1. First possibility
i = 0;
do_foo(i++);
do_foo(i++);