search for: leledumbo

Displaying 20 results from an estimated 32 matches for "leledumbo".

2010 Oct 20
3
[LLVMdev] How to assign a constant to a register?
On 20/10/10 11:37, leledumbo wrote: > >> Why not just use ConstantInt::get() when you want the number 5? > > Because I'm not using LLVM libraries, I'm generating LLVM assembly myself. In that case, why not output '5' when you want 5? Ciao, Duncan.
2010 Oct 20
1
[LLVMdev] Re : How to assign a constant to a register?
leledumbo, from what you say, I assume you have some kind of representation (AST or a lower-level intermediate representation) from which you generate LLVM assembly. Is this representation in SSA form? If it is, you might want to do a "copy propagation" transformation that replaces the uses of a...
2010 Oct 20
3
[LLVMdev] Re : How to assign a constant to a register?
...it will be stored on the stack. So you need an alloca for it: %x = alloca i8 ; <i8*> Then you can just perform a store: Store i8* %x, i8 0 Cheers, James > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of leledumbo > Sent: 20 October 2010 14:39 > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Re : How to assign a constant to a register? > > > > from what you say, I assume you have some kind of representation (AST > or a > > lower-level intermediate representation) from whi...
2010 Oct 11
3
[LLVMdev] DCE and external function
If I have: %x = call @externalFunc ... ; other codes where %x is not used ret ; assume void function and use dce optimization, will the call gets eliminated? -- View this message in context: http://old.nabble.com/DCE-and-external-function-tp29932485p29932485.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Oct 11
0
[LLVMdev] DCE and external function
Hi leledumbo, > If I have: > > %x = call @externalFunc > ... ; other codes where %x is not used > ret ; assume void function > > and use dce optimization, will the call gets eliminated? only if the compiler can prove that the called function has no side effects (such as modifying some glo...
2010 Oct 19
2
[LLVMdev] How to assign a constant to a register?
On Oct 18, 2010, at 9:22 PM, leledumbo wrote: > >> let me say that in general doing this is pointless. Due to SSA form, if %x > is >> set to 5 you can't set it to something else later. Thus everywhere that >> you >> use %x you might as well just directly use 5 there instead. > > My bad... I...
2010 Oct 20
2
[LLVMdev] How to assign a constant to a register?
On Oct 20, 2010, at 12:52 AM, leledumbo wrote: >> >> No, you could throw it into a global if you know you're going to want to > use 5 at some point in the future randomly. > > OK, I guess that's the way I should treat it. Load from global to register, > do operations, store it back. I suppose, it'd...
2010 Sep 27
2
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
> Make sure you're using the correct perl - that one which comes with msys DTK I'm using msys perl for msys 1.0.11. Maybe I should revert back to msys 1.0.10? ________________________________ Dari: Anton Korobeynikov <anton at korobeynikov.info> Kepada: leledumbo <leledumbo_cool at yahoo.co.id> Cc: llvmdev at cs.uiuc.edu Terkirim: Sen, 27 September, 2010 13:45:47 Judul: Re: [LLVMdev] Compiling LLVM 2.7 with MinGW GCC 4.5.0 > first line saying: --export-dynamic is not supported for PE targets, do you > mean --export-all-symbols? *or something si...
2010 Sep 29
2
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
...E=1 It would be better only then to touch a few files. (eg. lib/Transforms/Scalar/GVN.cpp) The warning of --export-dynamic might be harmless, and you may add the option --enable-auto-import IIRC LLVM-2.7 might not be tested with mingw-4.5.0. ps. I am using msysgit packages. ...Takumi 2010/9/29 leledumbo <leledumbo_cool at yahoo.co.id>: > > reverting doesn't help. Here are the logs: > http://old.nabble.com/file/p29834726/output.log output.log > http://old.nabble.com/file/p29834726/error.log error.log > which mingw gcc + binutils versions are known to work (or better, the on...
2010 Oct 19
0
[LLVMdev] How to assign a constant to a register?
> let me say that in general doing this is pointless. Due to SSA form, if %x is > set to 5 you can't set it to something else later. Thus everywhere that > you > use %x you might as well just directly use 5 there instead. My bad... I should've started thinking in SSA way all the time. I got it mixed with common assembly language. So I must hold the initial value until the
2010 Oct 18
3
[LLVMdev] How to assign a constant to a register?
hi, Well, there is no "Register" at the level of LLVM IR, %x = add i32 %y, %z means you define a value "x" by adding value "y" and value "z" together. best regards ether
2010 Oct 21
0
[LLVMdev] Re : How to assign a constant to a register?
> If x is a local variable, it will be stored on the stack. So you need an > alloca for it: Aha, I remember this in Kaleidoscope tutorial. So, after the alloca %x can be modified freely (e.g. without adding suffix)? -- View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p30016496.html Sent from the LLVM - Dev mailing list archive at
2010 Nov 01
2
[LLVMdev] Symbol table for complex data structure
...r datatype members is what I would recommend, instead of trying to match them directly via the symtab. I hope this answers your question. James > > -----Original Message----- > > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev- > bounces at cs.uiuc.edu] > > On Behalf Of leledumbo > > Sent: 01 November 2010 09:41 > > To: llvmdev at cs.uiuc.edu > > Subject: [LLVMdev] Symbol table for complex data structure > > > > > > Maybe this is not LLVM specific, but more or less related. The > language > > I'm > > implementing allows...
2010 Sep 27
2
[LLVMdev] Compiling LLVM 2.7 with MinGW GCC 4.5.0
> Could you post the errors message? Sounds like bug in mingw's gcc / ld. It's very long, maybe I should just attach the log? I only remember the first line saying: --export-dynamic is not supported for PE targets, do you mean --export-all-symbols? *or something similar to this* then a bunch of undefined references occur. -- View this message in context:
2010 Sep 27
0
[LLVMdev] Compiling LLVM 2.7 with MinGW GCC 4.5.0
> first line saying: --export-dynamic is not supported for PE targets, do you > mean --export-all-symbols? *or something similar to this* then a bunch of > undefined references occur. Make sure you're using the correct perl - that one which comes with msys DTK -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2010 Sep 29
0
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
reverting doesn't help. Here are the logs: http://old.nabble.com/file/p29834726/output.log output.log http://old.nabble.com/file/p29834726/error.log error.log which mingw gcc + binutils versions are known to work (or better, the one that you guys use)? -- View this message in context: http://old.nabble.com/Compiling-LLVM-2.7-with-MinGW-GCC-4.5.0-tp29810752p29834726.html Sent from the LLVM -
2010 Sep 30
0
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
Attached is a result of configure and make VERBOSE=1: http://old.nabble.com/file/p29846487/output.log output.log http://old.nabble.com/file/p29846487/error.log error.log -- View this message in context: http://old.nabble.com/Compiling-LLVM-2.7-with-MinGW-GCC-4.5.0-tp29810752p29846487.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Sep 30
1
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
...; '--enable-targets=host,x86,cpp' 'CFLAGS=-s -O4' 'CXXFLAGS=-s -O4 -Wl,--enable-auto-import' 'LDFLAGS=-s -O4' --cache-file=/dev/null --srcdir=../../../projects/sample --enable-shared/DLL was not supported in 2.7. It has worked since Aug 2010. ...Takumi 2010/9/30 leledumbo <leledumbo_cool at yahoo.co.id>: > > Attached is a result of configure and make VERBOSE=1: > http://old.nabble.com/file/p29846487/output.log output.log > http://old.nabble.com/file/p29846487/error.log error.log > -- > View this message in context: http://old.nabble.com/Compi...
2010 Oct 13
2
[LLVMdev] DCE and external function
Hi, On Mon, Oct 11, 2010 at 3:46 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi leledumbo, > >> If I have: >> >> %x = call @externalFunc >> ... ; other codes where %x is not used >> ret ; assume void function >> >> and use dce optimization, will the call gets eliminated? > > only if the compiler can prove that the called function has &g...
2010 Oct 20
0
[LLVMdev] How to assign a constant to a register?
> No, you could throw it into a global if you know you're going to want to use 5 at some point in the future randomly. OK, I guess that's the way I should treat it. Load from global to register, do operations, store it back. -- View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p30007489.html Sent from the LLVM - Dev mailing list