search for: cristianno

Displaying 20 results from an estimated 68 matches for "cristianno".

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();                                     err...
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 :) > &...
2012 Apr 09
0
[LLVMdev] Function and inheritance
...e is destroyed!"), function ~Value, file /Developer/llvm/lib/VMCore/Value.cpp, line 75. [...] This error occurred in between the return of the initialize() method and the actual return to the derived class method. Any one of you could help me to avoid this behavior? Best regards, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br On Sunday, 8 de April de 2012 at 13:37, Cristianno Martins wrote: > Hello guys, > > So, I'm stucked in a problem involving a Function and a derived class. Well, I was refactoring part of my pa...
2012 Apr 08
2
[LLVMdev] Function and inheritance
...attribute in A, btw), I get a message like that: Assertion failed: (!empty() && "Called front() on empty list!"), function front, file /Developer/llvm/include/llvm/ADT/ilist.h, line 388. [...] Is there some tricky way to do this that I'm not seeing? Thanks in advance, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120408/982dc280/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 {...
2013 Jun 26
0
[LLVMdev] get value
Alexandru Ionut Diaconescu wrote: > Hi Cristianno, > > Thank you, it works :) > > with an extra cast: > Value *v ...... > ConstantInt* RR = (ConstantInt *)v; Please use "cast<ConstantInt>(v)" instead. See http://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-templates . Nick > uint64_t VV =...
2013 May 31
2
[LLVMdev] Dead Code Elimination and undef values
..., i8* %out.1107, align 1, !tbaa !1 and %storemerge = phi i8 [ %conv46, %if.else ], [ %call, %if.then ], 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.htm...
2013 Jun 01
0
[LLVMdev] Dead Code Elimination and undef values
Hi Cristianno, On 01/06/13 01:49, Cristianno Martins wrote: > Hello there, > > I'm writing a transformation pass for LLVM, and I hoped to use dce to clean up > the resulting code after my pass. I just have some questions about LLVM's dce > implementation. > > Well, my transformation...
2012 Mar 05
1
[LLVMdev] Problem using march=c
...e having local linkage, the "extern" part was not printed to file). - Second, I created the patch appended in this email, but instead of representing only the "guard-adding" part, this patch is a union of this change, and the others two patches you sent to me. Thanks again, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br On Mon, Mar 5, 2012 at 6:19 AM, Dmitry N. Mikushin <maemarcus at gmail.com> wrote: > Hi Cristianno, > > This problem has been around for a while, ourselves we solve it with the > following...
2013 Apr 16
0
[LLVMdev] How to implement list in llvm
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 you're trying to define? -- Cristianno Martins On 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 Cristiann...
2012 Apr 04
2
[LLVMdev] BasicBlock predecessors list
...to be an extra BasicBlock (I mean, it is not directly represented in the IR) that holds only a copy of the branch instruction that ends the %while.cond block. Here is the question: is there any way that I could discard these blocks that are not represented in the IR? Thanks in advance, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120403/09b8d67f/attachment.html>
2012 Apr 04
0
[LLVMdev] BasicBlock predecessors list
Hi Cristianno, > I'm trying to get a list of predecessors of a BasicBlock. I'm using a code > similar to that on here > <http://llvm.org/docs/ProgrammersManual.html#iterate_preds>, but it appears to > be more nodes been iterating that it should. Now, when I print out the llvm IR, >...
2012 Mar 05
3
[LLVMdev] Problem using march=c
...iable Declarations */ static struct type_OC_str { unsigned char array[13]; }; /* Global Variable Definitions and Initialization */ static struct type_OC_str _OC_str = { "Hello World\n" }; It is a known problem, or am I doing something wrong? Thks in advance, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br
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...
2012 Mar 05
0
[LLVMdev] Problem using march=c
Hi Cristianno, This problem has been around for a while, ourselves we solve it with the following patches: https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.gpu.patch?root=kernelgen&view=markup https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.patch?revision=591&root=kernelgen&view=marku...
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
2013 Apr 19
2
[LLVMdev] How to implement list in llvm
...std::vector, but there 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 yo...
2015 May 06
2
[LLVMdev] (Possibly buggy?) doFinalization method behavior of FunctionPass
...other passes are going to do either before or after doFinalization() is called. Therefore, it's fine for doFinalization() to modify the Module. You just have to be aware that other passes may change the Module later. That's why I asked whether there are any other passes executed after Cristianno's pass: they can (theoretically) add the function declarations back into the Module. Regards, John Criswell > People more familiar with the pass managers – please correct me if I’m > wrong. > > Michael > > *From:*John Criswell [mailto:jtcriswel at gmail.com] > *Sent:*...
2015 May 06
3
[LLVMdev] (Possibly buggy?) doFinalization method behavior of FunctionPass
...dy finished its job? Thanks in advance, Oh, and before I forget, this is the version of the opt I'm running: LLVM (http://llvm.org/): LLVM version 3.7.0svn DEBUG build with assertions. Built May 4 2015 (00:18:21). Default target: x86_64-apple-darwin14.3.0 Host CPU: sandybridge -- 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/20150505/04fae3b8/attachment.htm...
2012 Apr 26
2
[LLVMdev] Detect if a basicblock is part of a loop
...se of your function and using it to calculate the LoopInfo, as below: DominatorTreeBase<BasicBlock> *DTB; DTB = new DominatorTreeBase<BasicBlock>(false); DTB->recalculate(*AuxFunction); LoopInfoBase<BasicBlock, Loop> LIB; LIB.Calculate(*DTB); Cheers, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br On Thursday, 26 de April de 2012 at 11:57, Hal Finkel wrote: > Rinaldini, > > What exactly did you run? Specifically, you may be missing some > analysis passes that are necessary for LoopInfo to...