search for: hamayun

Displaying 13 results from an estimated 13 matches for "hamayun".

Did you mean: hamann
2011 Nov 03
1
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
...attempts to use lseek() on a file. You see the PANIC because Horizon hasn't implemented lseek yet. Obviously the version of GlibC I was using does not use lseek in that circumstance, but yours does. You just need to implement lseek :) Cheers, James -----Original Message----- From: Mian M. Hamayun [mailto:mian-muhammad.hamayun at imag.fr] Sent: 03 November 2011 15:59 To: James Molloy Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] LLVM JIT on a Baremetal x86 Machine !!! Hello James, I hope I will not be disturbing you too much. As I mentioned earlier, I am interested in unhosted (baremet...
2011 Oct 26
3
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
...target is a virtual machine, and I need some dynamic code generation support. I intend to use LLVM-JIT (if possible) for this purpose. Furthermore if it is possible, then how much effort would be required ? And where should I start looking for doing this kind of port. Thanks for your help. -- Hamayun Grenoble, France. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3781 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111026/cef1b185/attachment.bin>
2011 Nov 08
0
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
...de that provides enough of a UNIX environment for LLVM and libstdc++ to function" Could you please shed some more light on this aspect (Some links, if possible), on how you have accomplished this ? I am not an expert in these aspects, your help in this regard will be highly appreciated. -- Hamayun P.S. I am also attaching files with a basic lseek (SyscallLSeek) implementation and an execution log showing the current failure ("Invalid magic number reading bytecode file."). On 11/03/2011 05:37 PM, James Molloy wrote: > Hi Mian, > > Looking at the runlog, everything seem...
2011 Nov 08
2
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
...f" instructions, which get trapped at runtime. At build time it reads your linux kernel headers to find what syscall numbers map to what syscalls, and emulates a subset of the linux kernel. This is how the C standard library etc works. Cheers, James -----Original Message----- From: Mian M. Hamayun [mailto:mian-muhammad.hamayun at imag.fr] Sent: 08 November 2011 15:41 To: James Molloy Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] LLVM JIT on a Baremetal x86 Machine !!! Hi James, I have two questions for you. Firstly, what is the role of 'module' in init.cc? I can see that its b...
2011 Sep 02
3
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
...ty of doing the same using LLVM Pass Manager (Without using llvm-ld). This looks difficult due to the fact that the function definitions ought to be in the same module as the caller, in order to be inlined and then optimized onwards, I guess !!! (Correct me If I am Wrong at this) Thanks Again, Hamayun P.S. @Geovani: "You have tried do it in semantical phase?" Which LLVM Passes are you referring here ? Because I am working at the LLVM-IR Level, where I generate LLVM-IR modules, optimize them and then compile them for a given target. On 09/01/2011 06:41 PM, Jim Grosbach wrote: >...
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...32) define i32 @main() { EntryBlock: %tmp = call i32 @gcd(i32 30, i32 50) ret i32 %tmp } But it still fails to WriteBitcodeToFile, and produces the same error as before. I guess I might be missing some attribute, like "extern" in C ... Any Comments? Thanks again for your help, Hamayun On 08/31/2011 07:18 PM, Eli Friedman wrote: > On Wed, Aug 31, 2011 at 10:00 AM, Mian M. Hamayun > <mian-muhammad.hamayun at imag.fr> wrote: >> Hello Everyone, >> >> I am trying to create two modules in LLVM, where first module contains the >> definition of a fu...
2011 Sep 01
4
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
...e, using some optimization pass etc? I have previously experimented with LLVM's JIT Framework, and we can do something similar over there. But now I am interested in doing this without JIT Framework. Any ideas/suggestions/comments on how could we accomplish this? Thanks in advance, Mian M. Hamayun Grenoble, France. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3781 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110901/ae010459/attachment.bin&gt...
2011 Nov 09
0
[LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
...SpecialFile in SpecialModule class as well. The log for the working example is attached, just as a reference. Now one more thing, when the build system creates the ISO9660 CD-ROM Image, it executes the following commands: mkdir -p /tmp/hzn/boot mkdir -p /tmp/hzn/kiwi/modules cp /altamaha/home3/hamayun/workspace/horizon/horizon/Baremetal/boot/cdboot.img /tmp/hzn/boot cp embedded /tmp/hzn/kiwi/kernel cp /altamaha/home3/hamayun/workspace/horizon/code-samples/hello_world.hbc /tmp/hzn/kiwi/modules/hbc mkisofs -quiet -J -R -l -b boot/cdboot.img -V Horizon\ CD-ROM -boot-load-size 4 -boot-info-table...
2011 Aug 31
0
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
On Wed, Aug 31, 2011 at 10:00 AM, Mian M. Hamayun <mian-muhammad.hamayun at imag.fr> wrote: > Hello Everyone, > > I am trying to create two modules in LLVM, where first module contains the > definition of a function, gcd in this example and another module contains a > call to this function. You can't reference a global in...
2011 Sep 02
0
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
On Fri, Sep 2, 2011 at 4:23 AM, Mian M. Hamayun <mian-muhammad.hamayun at imag.fr> wrote: > But I am also looking into the possibility of doing the same using LLVM Pass > Manager (Without using llvm-ld). This looks difficult due to the fact that > the function definitions ought to be in the same module as the caller, in > orde...
2011 Aug 31
0
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
On Wed, Aug 31, 2011 at 10:54 AM, Mian M. Hamayun <mian-muhammad.hamayun at imag.fr> wrote: > Hi, > > I tried this as well, using the following line to add function declaration > to the caller module. > > Function::Create(FT, Function::ExternalLinkage, "gcd", mod); > > Where "FT" is the same as bef...
2011 Sep 01
0
[LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
...y, llvm-ld your modules to get a single module with both, then run opt on the result to optimize it. From source code, you can just use -O4 to the compiler on a system with a suitable linker (standard ld on OSX; binutils+gold plugin on Linux, for example). -Jim On Sep 1, 2011, at 9:27 AM, Mian M. Hamayun wrote: > Hi Everyone, > > Hopefully this question is not too absurd. > > Actually I created an example in LLVM, where I generate two modules, one containing the function definition and the other module calling this function. > (Question related to this was posted on this mailin...
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...false1: ; preds = %cond_false %tmp5 = sub i32 %x, %y %tmp6 = call i32 @gcd(i32 %tmp5, i32 %y) ret i32 %tmp6 } ; ModuleID = 'GCDMain' define i32 @main() { EntryBlock: %tmp = call i32 @gcd(i32 30, i32 50) ret i32 %tmp } ModuleMaker2: /home/hamayun/workspace/NaSiK/sw/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp:155: unsigned int llvm::ValueEnumerator::getValueID(const llvm::Value*) const: Assertion `I != ValueMap.end() && "Value not in slotcalculator!"' failed. Aborted --------------------------------------------------...