search for: planetcatfish

Displaying 20 results from an estimated 96 matches for "planetcatfish".

2016 Feb 10
2
Modified LLVM IR
...1(), a2() from a.obj to b2.obj and on top of function b1() When I call b1() from main, it should call first a1, a2 and then function definition of b1 Can you please give me some pointers for my requirement. Thank you in advance. Deepika On Wed, Feb 10, 2016 at 2:54 PM, mats petersson <mats at planetcatfish.com> wrote: > This is the starting point: > http://llvm.org/docs/WritingAnLLVMPass.html > > I suspect you want either a "FunctionPass" or a "BlockPass". > > The question you stil haven't answered is how you know what you are going > to insert functio...
2016 Feb 09
2
[GVN] same sequence of instructions in if and else branch
...gt;> that the phi node in the common successor takes. >> >> Does the existence of the phi node affect optimization? >> >> Thanks, >> Taewook >> >> >> From: <mats.o.petersson at googlemail.com> on behalf of mats petersson < >> mats at planetcatfish.com> >> Date: Tuesday, February 9, 2016 at 11:34 AM >> To: Taewook Oh <twoh at fb.com> >> Cc: "llvm-dev at lists.llvm.org" <llvm-dev at lists.llvm.org> >> Subject: Re: [llvm-dev] [GVN] same sequence of instructions in if and >> else branch >...
2016 Feb 22
2
Transfer information IR to binary
HI Mats, > On 22 Feb 2016, at 16:48, mats petersson <mats at planetcatfish.com> wrote: > > And you want this for only SOME bits of code, and that's why you need to have the IR report what sections are "sensitive"? Exactly and I want to chose this once the compilation is over. > It would be fairly easy if the code you want to check is a normal...
2016 Feb 10
2
Modified LLVM IR
Hi, Yes I am looking for IR pass that will do insert call of functions that defined in another file. Links/suggestions that guide me to start for adding IR pass will help me so much. Regards, Deepika On Wed, Feb 10, 2016 at 1:03 PM, mats petersson <mats at planetcatfish.com> wrote: > So how do you know what you want to modify (conceptually)? > > Have you got a IR pass that you are working on, or are you asking for > links/suggestions on how to start on one? > > -- > Mats > > On 10 February 2016 at 04:04, Sandeep Kumar Singh <deepd...
2015 Mar 31
2
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
...s to tell new that it should return NULL in case of failure, rather than throw an exception (bad_alloc). But the point here is not the actual return value, but the fact that the compiler misses that the constructor has side-effects. -- Mats On 31 March 2015 at 10:44, mats petersson <mats at planetcatfish.com> wrote: > The optimisation here is that "nothing uses `m`, so we can assume > allocation works and remove the malloc + free pair". > > What is the purpose of allocating 1 (or 100, or 1000000000) bytes, > never use it, and then free it immediately? > > The test-...
2017 Apr 21
2
Relocation design of different architecture
...sign for Hexagon architecture, whether to follow the MIPS style of relocation or other architecture style of relocation. Thats my question . Thats why i was asking about the functions and their differences Please guide. Thanks, Siddharth On Fri, Apr 21, 2017 at 8:37 PM, mats petersson <mats at planetcatfish.com> wrote: > If you look at the actual code, it's fairly obvious that the approach is > different, in that the COFF versions have a single architecture per class, > the ELF supports many different architectures in the same source code. > > I'm not going to go through hun...
2015 May 14
4
[LLVMdev] how to disable sse and avx
...ferences for `mov' Error: junk `ptr [rsp+112]' after expression Error: junk `ptr [rsp+128]' after expression Error: junk `(1)' after expression Error: operand size mismatch for `fsubrp' Any idea? Thanks. -- Zhi On Thu, May 14, 2015 at 10:50 AM, mats petersson <mats at planetcatfish.com> wrote: > Sounds like a bug, as far as I can tell, -mno-sse should disable all use > of SSE instructions (and thus all uses of xmm registers). Exactly what > version of LLVM, and what instructions from what LLVM IR or C source? > > -- > Mats > > On 14 May 2015 at 18:...
2015 Apr 01
2
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
...k std library only at link-time. Thanks, -Jiangning 2015-03-31 17:51 GMT+08:00 Kevin Qin <kevinqindev at gmail.com>: > Yes, I classified `new (std::nothrow)` to be a malloc like allocation. See > the next sentence. > > > 2015-03-31 17:48 GMT+08:00 mats petersson <mats at planetcatfish.com>: > >> > I think we can do such optimization with operator new, because new >> never returns null. >> >> This is incorrect in the case of `new (std::nothrow) ...` - the whole >> point of `(std::nothrow)` is to tell new that it should return NULL in >&gt...
2017 Apr 21
2
Relocation design of different architecture
...nd tell about processRelocationRef() and resolveRelocation() in Targets/RuntimeDyld(objectfile format)(arch).h and also in RuntimeDyldELF.cpp and how the same function is implemented in different ways in both the files ? Thanks, Siddharth On Thu, Apr 20, 2017 at 8:16 PM, mats petersson <mats at planetcatfish.com> wrote: > (Again: Please always REPLY to all recipients, including llvm-dev, unless > there is VERY specific reasons not to) > > The ELF support for relocation is all baked into a single, large function > for all different processor architectures. In my humble opinion, it wou...
2016 Feb 22
2
Transfer information IR to binary
.... Once the compilation is over, I need to update the begin address, end address and the hash value. When I say the compilation is over, I mean the clang driver has finished all of his action (compiling, linking, etc.). Greetings, Johan > On 22 Feb 2016, at 15:04, mats petersson <mats at planetcatfish.com> wrote: > > What kind of constant: type, value and how is it created? > > You can make public symbols that you can extract in a linker script to a special section. > > Or perhaps you want some metadata that a special late state (machine instr) pass is extracting and addi...
2016 Feb 16
4
[help] Kaleidoscope build fails after llvm-3.8
Hello , I have build llvm from release_38 branch ( only llvm and clang ) and install it. My DYLD_LIBRARY_PATH points to installation-directory/lib. I am compiling example files for Kaleidoscope with following command : clang++ -g toy.cpp -std=c++11 `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy but it fails with following error: Undefined symbols for
2015 Apr 15
1
[LLVMdev] How to do bitcast for double to <2 x double>
...ector = new BitCastInst(loadValue, > VectorType::get(Type::getDoubleTy(currF->getContext()), 2), > "vectorizedLoad", pInst); > newLoad = new LoadInst(); //to be implemented... > return newLoad; > } > > On Wed, Apr 15, 2015 at 1:03 PM, mats petersson <mats at planetcatfish.com> > wrote: >> >> Create a type that is a "vector (array) of 2 double", and then a >> pointer to that. Now use bitcast your on double pointer to that >> pointer type you've created, and then create a load... >> >> If you need more help, it w...
2016 Nov 16
2
Incorrect / missing dependencies in llvm build?
...O > > -----Original Message----- > From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org > <mailto:llvm-dev-bounces at lists.llvm.org>] On Behalf Of Jonathan > Roelofs via llvm-dev > Sent: 16 November 2016 20:11 > To: mats petersson <mats at planetcatfish.com > <mailto:mats at planetcatfish.com>>; llvm-dev > <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> > Subject: Re: [llvm-dev] Incorrect / missing dependencies in llvm > build? > > > > On 11/16/16 1:05 PM, mats peter...
2016 Nov 16
2
Incorrect / missing dependencies in llvm build?
....td' for this. But I don't know CMake well enough to know how to fix these issue properly. MartinO -----Original Message----- From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Jonathan Roelofs via llvm-dev Sent: 16 November 2016 20:11 To: mats petersson <mats at planetcatfish.com>; llvm-dev <llvm-dev at lists.llvm.org> Subject: Re: [llvm-dev] Incorrect / missing dependencies in llvm build? On 11/16/16 1:05 PM, mats petersson via llvm-dev wrote: > Yesterday, I took latest git version of LLVM, built a makefile using > cmake (had to update from my "...
2016 Mar 20
2
Need help with code generation
...rted on > the resulting program? > And yeah for example I have to initialize stdout, I have to call it before > my main function. The runtime library does the trick but I didn't get the > main function in your library > > On Mar 20, 2016, at 1:11 PM, mats petersson <mats at planetcatfish.com> > wrote: > > > On 20 Mar 2016 11:13, "Lorenzo Laneve" <lore97drk at icloud.com> wrote: > > > > So won't my program have as main function the main function declared in > the IR? > > Depends on the linker script (which is "prepared by...
2016 Mar 18
2
LLVM IR temporary variable reuse
...mp3 * But, If in case LLVM is reusing *%sub *in between to hold some other computations, then there will be some errors in my computation. So I want to make sure that LLVM won't reuse any of these virtual registers. I hope it clarifies. On 18 March 2016 at 13:39, mats petersson <mats at planetcatfish.com> wrote: > > > On 18 March 2016 at 06:31, Ansar K.A. via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I meant LLVM registers. Thanks for the correcting me. >> > > But registers in LLVM-IR are in infinite supply, since the are virtual > regist...
2016 Feb 09
2
[GVN] same sequence of instructions in if and else branch
...%cast1 and %cast2 are the two values that the phi node in the common successor takes. Does the existence of the phi node affect optimization? Thanks, Taewook From: <mats.o.petersson at googlemail.com<mailto:mats.o.petersson at googlemail.com>> on behalf of mats petersson <mats at planetcatfish.com<mailto:mats at planetcatfish.com>> Date: Tuesday, February 9, 2016 at 11:34 AM To: Taewook Oh <twoh at fb.com<mailto:twoh at fb.com>> Cc: "llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>" <llvm-dev at lists.llvm.org<mailto:llvm-dev at lis...
2015 Apr 01
3
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
...t;> 2015-03-31 17:51 GMT+08:00 Kevin Qin <kevinqindev at gmail.com>: >> >>> Yes, I classified `new (std::nothrow)` to be a malloc like allocation. >>> See the next sentence. >>> >>> >>> 2015-03-31 17:48 GMT+08:00 mats petersson <mats at planetcatfish.com>: >>> >>>> > I think we can do such optimization with operator new, because new >>>> never returns null. >>>> >>>> This is incorrect in the case of `new (std::nothrow) ...` - the whole >>>> point of `(std::nothrow)` is t...
2017 Apr 20
4
Relocation design of different architecture
...are actually doing the relocation and linking work. So what purpose do these header files inside Targets/ actually serve. Also they include exception handling in form of exception frames, So can u guide on this issue ? Thanks, Siddharth On Thu, Apr 20, 2017 at 4:02 PM, mats petersson <mats at planetcatfish.com> wrote: > The x86_64 and i386 architectures have different actual relocation > records. So if you build code for i386, you need one processRelocationRef() > function (handling the relevant relocations in that model), and when > producing code for x86_64, there are different relo...
2015 Jun 15
2
[LLVMdev] Program order in inst_iterator?
On Mon, Jun 15, 2015 at 10:50 AM, mats petersson <mats at planetcatfish.com> wrote: > It will iterate over the instructions in the order that they are stored in > the module/function/basicblock that they belong to. And that SHOULD, > assuming llvm-dis does what it is expected to do, be the same order. > Thanks for the reply. What about instruction order...