Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] strlcpy"
2006 Aug 20
4
[LLVMdev] bytecode didn't read correctly under cygwin
Hi!
I'm trying to run "llc" tool on files from "test" subdirectory of LLVM root.
I compile source files with the following line:
llvm-gcc -c -ocompiled.o ackermann.c
Then I run llc like the following:
llc compiled.o
which outputs
llc: bytecode didn't read correctly
(I mean, I try it with different options but even the default ones aint
working)
My llvm-gcc
2006 Aug 20
1
[LLVMdev] make builds Release configuration by default
Hi!
I'm installing LLVM under Debian Linux.
I've installed llvm-gcc3 binaries and am trying to build LLVM.
I run make command from llvmobjdir and it builds Release configuration. I
didn't set ENABLE_OPTIMIZED variable to 1 and I didn't configure LLVM with
--enable-optimized switch. What can cause building Release configuration and
how can I switch to Debug one?
Thanks.
Tony.
2006 Aug 21
0
[LLVMdev] Recalculating live intervals
Well, someone correct me if am wrong, but, you still have to allocate
physical registers to them, because their values must be reloaded before
been used. But after you spill a register, you break its live ranges, so,
each use of that register can be loaded into a different physical. In my
register allocator, after I spill reg_v:
For each use of reg_v:
create a new reg_v'
replace reg_v
2006 Aug 21
2
[LLVMdev] Recalculating live intervals
So what addIntervalsToSpills returns are new intervals to allocate with
infinite weights, right?
And I need not to allocate the old interval. Should hasStackSlot return true
on its register then?
On 8/21/06, Fernando Magno Quintao Pereira <fernando at cs.ucla.edu> wrote:
>
>
> Well, someone correct me if am wrong, but, you still have to allocate
> physical registers to them,
2006 Aug 20
2
[LLVMdev] Adding register allocator to LLVM
Dear Anton,
you can add your register allocator strait iin the
"lib/CodeGen/Passes.cpp", and then 're-make' it: "makellvm llc", on the
top of lib/CodeGen. It is faster than running make from LLVMOBJDIR. The
problem is that it only add to llc the changes on the lib/CodeGen
directory. If you change other parts, a make from LLVMOBJDIR will
synchronize it.
Try adding
2006 Aug 21
2
[LLVMdev] Recalculating live intervals
On 8/7/06, Chris Lattner <sabre at nondot.org> wrote:
>
> On Sun, 6 Aug 2006, Anton Vayvod wrote:
> > I'm developing a register allocator that works iteratively. It spills
> some
> > virtual registers on each iteration until all the rest have physical
> ones
> > assigned.
>
> Take a look at the linear scan allocator. It is also iterative: it uses
>
2006 Aug 03
3
[LLVMdev] Adding register allocator to LLVM
On Thu, 3 Aug 2006, Jim Laskey wrote:
> To force the load/linking of your register allocator into the llc/lli tools,
> add your create function's global declaration to "Passes.h" and add a
> "pseudo" call line to "llvm/Codegen/LinkAllCodegenComponents.h" .
Another note: with this new functionality you should be able to
dynamically load register
2006 Aug 21
0
[LLVMdev] Recalculating live intervals
> So what addIntervalsToSpills returns are new intervals to allocate with
> infinite weights, right?
> And I need not to allocate the old interval. Should hasStackSlot return true
> on its register then?
>
I am not very sure about addIntervalsToSpill, but, for all the registers
created to replace a spilled registers, they must have a stack slot
assigned to them. I am sending you my
2006 Aug 20
0
[LLVMdev] bytecode didn't read correctly under cygwin
Tony,
By default, llvm-gcc4 does not produce bytecode, it produces a native
object file, just like GCC does. So, if you try to pass it to llc, it is
obviously going to report problems with the bytecode. Either skip the
llc step or use the -emit-llvm option:
llvm-gcc -c -emit-llvm -o compiled.o ackermann.c
llc compiled.o -o compiled.s
Reid.
On Sun, 2006-08-20 at 20:26 +0400, Anton Vayvod wrote:
2006 Aug 22
0
[LLVMdev] Adding register allocator to LLVM
I managed to link my RegAlloc.a library to llc tool but can;t make the
same with lli tool.
Should I use USEDLIBS variable in lli makefile (like llc) or there is
another way?
On 8/20/06, Fernando Magno Quintao Pereira <fernando at cs.ucla.edu> wrote:
>
>
> Dear Anton,
>
> you can add your register allocator strait iin the
> "lib/CodeGen/Passes.cpp", and then
2006 Aug 20
0
[LLVMdev] Adding register allocator to LLVM
Hi!
I've did what Jim Laskey wrote but llc didn't reckognize my regalloc option.
So I moved my allocator implementation into seperate folder within CodeGen
and wrote separate makefile for it (like in "Writing an LLVM pass"
tutorial). But when I run "make" from LLVMOBJDIR it doesn't enter the
RegAlloc directory and when linking llc an error like
2006 Sep 01
3
[LLVMdev] Testing a register allocator
Hi!
I developed a register allocator within LLVM and now I need to test its
efficiency. Can I do this using llvm-test package?
Do llvm tests check all available regalloc options automatically? If not,
then what modifications should I do to the test files?
It would be great if I could test my algo along with linearscan and compare
the results.
Thanks.
Tony.
--
"Nae king! Nae quin! Nae
2006 Aug 21
3
[LLVMdev] Recalculating live intervals
I'm not sure about one thing: you assign stack slot to each new register you
replace the spilled one with. And then you need to allocate physical
registers to them. Is it possible to assign physical register to the virtual
one which has a stack slot already?
On 8/21/06, Fernando Magno Quintao Pereira <fernando at cs.ucla.edu> wrote:
>
>
> > So what addIntervalsToSpills
2009 Feb 28
2
[LLVMdev] Removal of GVStub methods from MachineCodeEmitter, ELFWriter, and MachOWriter
I have done a possible cleanup patch for the MachineCodeEmitter, ELFWriter,
and MachOWriter classes. It removes the two startGVStub(), and
finishGVStub() JIT specific methods.
You may remember the following comments :-
/// JIT SPECIFIC FUNCTIONS - DO NOT IMPLEMENT THESE HERE!
To get rid of these easily turned out to be a semicomplex modification
because of the JITInfo classes dependance on
2009 Mar 02
0
[LLVMdev] Removal of GVStub methods from MachineCodeEmitter, ELFWriter, and MachOWriter
I'll look at these. First scan looks good. Are you able to run some
tests?
Evan
On Feb 28, 2009, at 9:36 AM, Aaron Gray wrote:
> I have done a possible cleanup patch for the MachineCodeEmitter,
> ELFWriter, and MachOWriter classes. It removes the two
> startGVStub(), and finishGVStub() JIT specific methods.
>
> You may remember the following comments :-
>
>
2010 May 02
2
[LLVMdev] Win32 COFF Support
On 2 May 2010 19:32, Nathan Jeffords <blunted2night at gmail.com> wrote:
> Thanks for both of your feedback, I will attempt to make it fit LLVM coding
> standards better before I resubmit my work.
You can send me early drafts to run past GCC, send me something that works.
As far as the hooks I put in, they are really only there so I could build
> the object exporter outside of
2006 Sep 02
1
[LLVMdev] error in /lib/CodeGen/MachOWriter.cpp: line 200
Hi!
I updated LLVM from CVS today and run into the following error:
/lib/CodeGen/MachOWriter.cpp: line 200: no match for function
max(unsigned_int_32, unsigned int)
the line is
Sec.align = std::max(Sec.align, Align);
where Sec.align is of type "unsigned_int_32" and Align is of "unsigned int".
I use gcc-3.4.4 under cygwin. Сasting of the first parameter to simple
unsigned
2009 Mar 27
3
[LLVMdev] GSoC 2009: proposals!
Hi all,
I have interest in some ideas, some I've seen in the Open project
pages (copied straight from there) and some
are by my own, they are:
1) Implement MachOWriter and ELFWriter to allow LLVM-based compilers
to bypass an external assembler.
This may include the idea of an assembler for inline assembly
2) Write a disassembler for machine code that would use TableGen to
output
2009 Mar 16
0
[LLVMdev] MachO and ELF Writers/MachineCodeEmittersarehard-codedinto LLVMTargetMachine
Aaron, I mailed in the same mail twice (by mistake), you answered both
copies. Differently!
In any case, I've re-read what exists. I'm dumping what I understand
here, so that we can discuss in detail. I'm using MachO as the example
object format, as the ELF code is totally broken and outdated. Lets
use the following as the basis for our discussion?
There are 3 classes which
2008 May 13
3
[LLVMdev] Preferring to use GCC instead of LLVM
Owen Anderson wrote:
> There's nothing particularly stopping you from having your
> installation package include copies of gas and ld,
I disagree. gas and ld are not available on Windoze, except
via MinGW. Yes I can make or tell my customers to install
MinGW, but if MinGW is installed, then I don't need LLVM.
(More about this further ahead)
> You're welcome to think