Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] How to create a mangler instance from target machine?"
2010 Jul 28
3
[LLVMdev] Function-at-a-time Processing
We process very large programs and it is not unusual for the IR for some
compilation unit to exceed system memory. With some hacking in LLVM 2.5
I was able to coax LLVM to generate asm for each functioin as it was
processed and then completely forget about it (i.e. delete it) and move
on to the next function.
This required a bit of hackery. I had to create two pass managers, one
for the module
2011 Aug 26
1
[LLVMdev] Build breaks in lib/CodeGen
I checked recent revisions 138624 and 138620 and both produce this log
with gcc-4.6.0 on FreeBSD-8.2-STABLE amd64:
gmake[2]: Entering directory
`/usr/home/yuri/llvm-svn/llvm-objects/lib/CodeGen'
llvm[2]: Compiling LLVMTargetMachine.cpp for Release build
/usr/home/yuri/llvm-svn/llvm/lib/CodeGen/LLVMTargetMachine.cpp:253:3:
error: ‘AsmStreamer’ does not name a type
2010 Jul 21
0
[LLVMdev] MC-JIT
On Tue, Jul 20, 2010 at 3:41 PM, Olivier Meurant
<meurant.olivier at gmail.com> wrote:
> New patch taking Eli's comments into account.
Comments inline. If you have commit access, I'd fire away. If not, I can.
diff --git include/llvm/MC/MCAssembler.h include/llvm/MC/MCAssembler.h
index 07ca070..afff96e 100644
--- include/llvm/MC/MCAssembler.h
+++ include/llvm/MC/MCAssembler.h
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
Hello all,
I am a LLVM newer who want to add a new backend(EBC) into LLVM. After coping
the related
files from another target and modifying it, I meet a problem when I build
the project. The
error message is as follows:
================================================================
[ 94%] Built target llvm-dis
Linking CXX executable ../../bin/llvm-mc
Undefined symbols:
2013 May 23
2
[LLVMdev] Usage of getenv() inside LLVM and thread safety
On Thu, May 23, 2013 at 8:13 AM, Justin Holewinski <
justin.holewinski at gmail.com> wrote:
> That sounds like a missed multi-threading issue with LLVM. I can't
> imagine why the user should be forced to serialize creation of MCContext
> objects. I would suggest filing a bug for this. A simple lock probably
> wouldn't be too detrimental to performance here, since
2010 Jul 28
0
[LLVMdev] Function-at-a-time Processing
Dear David,
Dumb question: Would it be easier to write an LLVM tool that took the
large IR file and divided it into several smaller IR files that could
then be code-generated separately?
-- John T.
David Greene wrote:
> We process very large programs and it is not unusual for the IR for some
> compilation unit to exceed system memory. With some hacking in LLVM 2.5
> I was able to
2010 Mar 27
2
[LLVMdev] Static code generation - is it gone from LLVM 2.7?
Chris Lattner wrote:
> On Mar 27, 2010, at 12:49 PM, Peter Shugalev wrote:
>
>>>> New method of emitting object code is ok for me. But it is still
>>>> experimental, isn't it?
>>> Yes.
>> Thank you for answers!
>>
>> Now there is a way to implement what I'd like to. But it would be MUCH
>> better if
2010 Mar 29
0
[LLVMdev] Static code generation - is it gone from LLVM 2.7?
On Mar 27, 2010, at 1:50 PM, Peter Shugalev wrote:
> Chris Lattner wrote:
>> On Mar 27, 2010, at 12:49 PM, Peter Shugalev wrote:
>>
>>>>> New method of emitting object code is ok for me. But it is still
>>>>> experimental, isn't it?
>>>> Yes.
>>> Thank you for answers!
>>>
>>> Now there is a way to implement
2010 Jul 20
2
[LLVMdev] MC-JIT
New patch taking Eli's comments into account.
Olivier.
On Tue, Jul 20, 2010 at 11:09 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Jul 20, 2010 at 1:36 PM, Olivier Meurant
> <meurant.olivier at gmail.com> wrote:
>>> Seems reasonable, but I haven't looked at the code yet. I would
>>> suggest trying to split your work up into separate
2010 Jul 21
1
[LLVMdev] MC-JIT
New patch. Thanks for all of your comments !
> Comments inline. If you have commit access, I'd fire away. If not, I can.
I don't have commit access, if you find it ok, please commit it. :)
Olivier.
On Wed, Jul 21, 2010 at 6:56 AM, Reid Kleckner <reid.kleckner at gmail.com> wrote:
> On Tue, Jul 20, 2010 at 3:41 PM, Olivier Meurant
> <meurant.olivier at gmail.com>
2011 Aug 29
0
[LLVMdev] PTX target for LLVM!
Hi everyone,
I downloaded the latest version of LLVM PTX backend from
http://www.prog.uni-saarland.de/projects/anysl
and made the required changes to all the files mentioned in the README. But
I get the following error when I compile it.
llvm[3]: Compiling PTXBackend.cpp for Release build
In file included from PTXBackend.h:70:0,
from PTXBackend.cpp:36:
PTXPasses.h: In constructor
2011 Sep 08
0
[LLVMdev] [LLVM, llvm-mc, AsmParser] Symbol locations.
Now I see, that its to so trivial as I thought before. There are a lots of parser extensions that creates the symbols. And in each place we need insert add its location info. I also found that MCContext has several create symbols methods, but all these methods uses CreateSymbol private method.
So I see two possible ways here:
1. To aggregate all GetOrCreate-like symbol methods inside the
2013 Nov 12
0
[LLVMdev] Debug info: type uniquing for C++ and the status on building clang with "-flto -g"
On Tue, Nov 12, 2013 at 2:08 PM, Manman Ren <manman.ren at gmail.com> wrote:
>
>
>
> On Tue, Nov 12, 2013 at 1:01 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>> Hi Manman,
>>
>> Thanks for sending this summary and progress plans - it's great to see
>> the impact your changes have had and ideas for future direction.
>>
>>
2013 May 23
4
[LLVMdev] Usage of getenv() inside LLVM and thread safety
Hello,
In Rubinius we're seeing an occasional crash inside LLVM that always happens inside getenv(), which is used for example when creating a MCContext (inside lib/MC/MCContext.cpp, it checks getenv("AS_SECURE_LOG_FILE")).
The problem is that getenv() and friends aren't thread safe and Rubinius provides a multithreaded system. We can relatively easily get locking setup around
2013 Aug 22
0
[LLVMdev] Mangler does not check for duplicate symbols?
The current implementation of llvm::Mangler does not check if a symbol name
exists before mangling. This can cause problems if the mangled name
aliases another symbol in the IR. For example, consider the following:
@"a(b" = addrspace(1) global float 1.0
@"a_28_b" = addrspace(1) global float 1.0
If I run this through the x86 backend, I get:
llc:
2013 Nov 12
3
[LLVMdev] Debug info: type uniquing for C++ and the status on building clang with "-flto -g"
On Tue, Nov 12, 2013 at 1:01 PM, David Blaikie <dblaikie at gmail.com> wrote:
> Hi Manman,
>
> Thanks for sending this summary and progress plans - it's great to see the
> impact your changes have had and ideas for future direction.
>
> Type uniquing for C++ is in. Some data for Xalan with -flto -g:
>> 9.9MB raw dwarf size, peak memory usage at 2.8GB
>> The
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
Attached is a working patch set for llvm to be able to emit arm64
(currently as triple aarch64-apple-ios) mach-o object files, in case
someone is interested. I'm not sure if the llvm maintainers want the
patch given the previous message that there's going to be an official
patch set from apple to support this, but here is mine.
What works (tested on an iPhone 5S):
* objc strings,
2011 Dec 30
0
[LLVMdev] how to stream output of addPassesToEmitMC
Hi llvmdev,
I am still using llvm 2.9. The function addPassesToEmitMC in 3.0 takes a
extra parameter to specify the raw stream for the emitter to emit code.
However in 2.9, there is no such a parameter. How shall I do if want to
pass a raw_stream object?
llvm 2.9
// addPassesToEmitMC - Add passes to the specified pass manager to get
/// machine code emitted with the MCJIT. This method returns
2013 May 23
0
[LLVMdev] Usage of getenv() inside LLVM and thread safety
That sounds like a missed multi-threading issue with LLVM. I can't imagine
why the user should be forced to serialize creation of MCContext objects. I
would suggest filing a bug for this. A simple lock probably wouldn't be
too detrimental to performance here, since MCContext objects shouldn't be
created too often.
On Thu, May 23, 2013 at 9:49 AM, Dirkjan Bussink <d.bussink at
2013 May 23
0
[LLVMdev] Usage of getenv() inside LLVM and thread safety
Right. glibc's amusing stance is that you setenv/putenv are not thread
safe, but getenv is. I assume Ruby exposes setenv and therefore simply not
calling setenv isn't an option.
Would it solve your problems if all getenv() calls happened at
cl::ParseCommandLineOptions() time?
On Thu, May 23, 2013 at 9:49 AM, Dirkjan Bussink <d.bussink at gmail.com>wrote:
> Hello,
>
>