Displaying 20 results from an estimated 48 matches for "arrowtheory".
2006 Apr 15
2
[LLVMdev] Re: how to code a loop in llvm assembly
Simon Burton <simon at arrowtheory.com> writes:
> Hi,
>
> I've read over the "LLVM Language Reference Manual"
> a few times, and writing some ll code, but i'm stuck at
> a very basic point. How to decrement a counter variable ?
>
> int %count(int %n) {
> EntryBlock:
> %cond = seteq...
2006 Apr 17
0
[LLVMdev] Re: how to code a loop in llvm assembly
...VM library ?
I have a mild C++ allergy that I don't wish to aggravate.
> The later is simpler and relieves you
> from some nasty burdens.
Yes, i'm finding it quite hairy!
:)
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 May 05
2
[LLVMdev] ExecutionEngine blew the stack ?
On Fri, 5 May 2006, Simon Burton wrote:
> This leads me to my next question: as I make more and more functions
> with the EE, it slows down. I am re-using the Module, ExistingModuleProvider,
> and ExecutionEngine, and pumping the parser like so:
> M = ParseAssemblyString(AsmString, M);
> ISTM that there should be a way of creating multiple modules/EEs but I ran
> into trouble
2006 May 05
0
[LLVMdev] ExecutionEngine blew the stack ?
...*M )
M->getNamedFunction(name);
EE->getPointerToFunction
It feels like there is a linear name lookup going on somewhere.
(will be able to do report more thorough timings later)
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 May 05
1
[LLVMdev] ExecutionEngine blew the stack ?
On Fri, 5 May 2006 16:43:13 +1000
Simon Burton <simon at arrowtheory.com> wrote:
>
> It slows in the construction phase, so one of these calls:
> M = ParseAssemblyString(AsmString, M);
> verifyModule( *M )
> M->getNamedFunction(name);
> EE->getPointerToFunction
>
> It feels like there is a linear name lookup going on s...
2006 Apr 13
4
[LLVMdev] standalone llvm
...friends ? Do I use lli ?
I'd like to directly create executable code that i can
stick in memory somewhere and jump into (call).
(I'm looking to use llvm in a BSD licensed project).
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 Apr 19
2
[LLVMdev] floating point exception and SSE2 instructions
...gt; release or cvs?
CVS.
>From what I remember, this is a bug in debian libc:
some floating point flags are set incorrectly causing SIGFPE.
Can't find the bug report ATM.
Thanks,
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 Apr 18
2
[LLVMdev] Re: how to code a loop in llvm assembly
I also suffer from the same C++ allergy notably shoot in foot with dynamic grammers and overloading.. creates gasey code feeling..especially in the backend.. :)cheers!
Simon Burton <simon at arrowtheory.com> wrote: On Sat, 15 Apr 2006 07:47:00 +0200
Oscar Fuentes wrote:
>
> BTW, Simon, is there a reason for writing LLVM assembler and not
> generating LLVM code directly?
You mean write C++ code that calls the LLVM library ?
I have a mild C++ allergy that I don't wish to aggravat...
2006 Apr 13
2
[LLVMdev] standalone llvm
...1 = (int (*)(int))EE->getPointerToFunction(F);
std::cout << "Got:" << add1(55) << "\n"; // <----------- Bombs here <---------------
return 0;
}
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 Apr 14
2
[LLVMdev] Re: standalone llvm
...uot;h\2245\b\002"
>
> What happens when you execute your function the same way the Fibonacci
> example does? (See examples/Fibonacci/fibonacci.cpp line 112).
That works OK.
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 Apr 15
6
[LLVMdev] how to code a loop in llvm assembly
...s that the right way ?
Also the above code is invalid:
Entry block to function must not have predecessors!
label %EntryBlock
Broken module found, compilation aborted!
thanks for any hints,
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 Apr 19
2
[LLVMdev] floating point exception and SSE2 instructions
...What is LLVM doing with my code ? Does it generate SSE2 instructions ?
thanks!
Simon.
double sum_d(double*mem,int n)
{
double val=0.0;
while(n)
{ val += *mem; mem++; n--; }
return val;
}
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
2006 Jun 21
0
[LLVMdev] size of generated machine code ?
...= 0x864c000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
pipe([4, 5]) = 0
futex(0xb7ecf900, FUTEX_WAIT, 2, NULL
<unfinished ...>
dump.bc attached.
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump.bc
Type: application/octet-stream
Size: 22744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060621/bd4b9001/attachment.obj>
2006 Apr 14
2
[LLVMdev] Re: standalone llvm
On Thu, 13 Apr 2006 18:07:42 +0200
Oscar Fuentes <oscarfv at telefonica.net> wrote:
>
> Simon Burton <simon at arrowtheory.com> writes:
>
> > I'm trying to take assembly and create machine code I can execute.
> > How close am I ?
>
> Your test case is not complete. Besides, which version of llvm are you
> using? What are the commands for compiling and linking your test case?
> How it...
2006 Jun 21
3
[LLVMdev] size of generated machine code ?
On Tue, 20 Jun 2006, Chris Lattner wrote:
> On Wed, 21 Jun 2006, Simon Burton wrote:
>> This from the output:
>>
>> 24620 x86-emitter - Number of machine instructions emitted
>>
>> (i had to write a dummy main function to get this to work)
>>
>> Is this really the number of bytes of machine code ?
> Yes.
To be specific, this is the
2006 May 05
2
[LLVMdev] ExecutionEngine blew the stack ?
...in (anonymous namespace)::X86DAGToDAGISel::Select(llvm::SDOperand&, llvm::SDOperand) (this=0x822d660,
Result=@0xbf801098, N={Val = 0x82544d0, ResNo = 0}) at X86ISelDAGToDAG.cpp:835
etc....
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump.ll
Type: application/octet-stream
Size: 68038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060505/faf9bba6/attachment.obj>
2006 Apr 13
0
[LLVMdev] Re: standalone llvm
Simon Burton <simon at arrowtheory.com> writes:
> I'm trying to take assembly and create machine code I can execute.
> How close am I ?
Your test case is not complete. Besides, which version of llvm are you
using? What are the commands for compiling and linking your test case?
How it bombs?
Do you #include "llvm...
2006 Apr 14
0
[LLVMdev] Re: standalone llvm
Simon Burton <simon at arrowtheory.com> writes:
> I'm using llvm CVS, and manage to compile/link OK. Yes I include JIT.h.
> The program segfaults when it gets to calling the function pointer.
>
>>From the Makefile:
>
> llvmjit: llvmjit.o
> g++ llvmjit.o /home//users//simonb//lib/LLVMAsmParser.o /home...
2006 Apr 14
0
[LLVMdev] Re: standalone llvm
Simon Burton <simon at arrowtheory.com> writes:
>> There are several possibilities here: either add1 is assigned a NULL
>> pointer, or LLVM was unable to use the JIT and generates bytecode
>> instead of native code, or invalid native code was generated
>> (unlikely).
>
> Well, it's not NULL:
>...
2006 Apr 19
0
[LLVMdev] floating point exception and SSE2 instructions
On Wed, 19 Apr 2006 19:28:34 +0100
Simon Burton <simon at arrowtheory.com> wrote:
>
> >From what I remember, this is a bug in debian libc:
> some floating point flags are set incorrectly causing SIGFPE.
> Can't find the bug report ATM.
Oh, it just showed up on numpy-discussion:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=10
"&quo...