Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Linking shared library"
2014 Dec 08
5
[LLVMdev] [lld] Handling multiple -init/-fini command line options
Hi,
The LLD linker in gnu flavor mode accepts multiple -init/-fini command
line options. For _all_ symbols specified by these options the linker
creates appropriate entries in the .init_array/.fini_array sections.
But it looks like LD and Gold linkers do not support this feature and
take in account only the last -init/-fini options.
% cat foo.c
int a = 0;
void foo() { a += 1; }
void bar() { a +=
2006 Jun 02
2
[LLVMdev] Compiling natively vsftp with LLVM
Hi, I have tried another way:
ar rcs libsysdeputil.a sysdeputil.o
gccld seems to recognize the file type. However, it stills find unresoved symbols
which are actually the functions in sysdeputil.o (can be find out with `nm libsysdeputil.a`)
The problem disappears if native gcc/ld tool chain is used.
As another test, main.c:
-----------------
extern void foo();
int main()
{
foo();
return
2010 Mar 05
1
[LLVMdev] How to increase the size of a basic block?
Hi,
I am working on Instruction Set Extensions and I am looking for a way to increase the sizes of a basic block.
Besides the loop-unrollers is there any code laying around which could be used to that purpose (like superblock formation, hyperblocks, predicate execution ..)?
Best regards, Mariusz.
--
Mariusz Grad
2006 Jun 02
0
[LLVMdev] Compiling natively vsftp with LLVM
On Fri, 2 Jun 2006, Nai Xia wrote:
> And the command lines:
>
> llvm-gcc -c -o main.o main.c
> gcc -o foo.o foo.c
> ar rcs libfoo.a foo.o
> llvm-gcc -Wl,-native main.o -L. -lfoo
>
> It's *OK*
>
> Thanks in advance for solving my problem. :)
> And I personally think it may possiblely puzzle other users,
> maybe it deserves its place in FAQ or in man page for
2010 Sep 15
2
[LLVMdev] getAnalysis<LoopInfo> from ModulePass
Hi,
I wrote tiny ModulePass which iterates over functions and then uses getAnalysis<LoopInfo> in order to get informations about the loop.
It compiles smoothly, but whenever I try to run it I got error like this:
opt: .. PassAnalysisSupport.h:203: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass &&
2010 Sep 15
0
[LLVMdev] getAnalysis<LoopInfo> from ModulePass
hi,
On Wed, Sep 15, 2010 at 8:21 PM, Mariusz Grad <mariusz.grad at gmail.com> wrote:
> Hi,
>
> I wrote tiny ModulePass which iterates over functions and then uses getAnalysis<LoopInfo> in order to get informations about the loop.
> It compiles smoothly, but whenever I try to run it I got error like this:
> opt: .. PassAnalysisSupport.h:203: AnalysisType&
2019 Mar 27
4
RFC: ELF Autolinking
On Wed, Mar 27, 2019 at 2:03 AM Saleem Abdulrasool <compnerd at compnerd.org>
wrote:
> On Tue, Mar 26, 2019 at 11:13 AM bd1976 llvm <bd1976llvm at gmail.com> wrote:
>
>> Thanks Saleem/James.
>>
>> On Tue, Mar 26, 2019 at 5:15 AM Saleem Abdulrasool <compnerd at compnerd.org>
>> wrote:
>>
>>> Yes, I don't think that supporting all
2019 Mar 26
2
RFC: ELF Autolinking
Thanks Saleem/James.
On Tue, Mar 26, 2019 at 5:15 AM Saleem Abdulrasool <compnerd at compnerd.org>
wrote:
> Yes, I don't think that supporting all options is entirely possible. But,
> there is certainly some allure to it, as it is a really powerful feature
> (which you can tell from the behaviour of link and `.drectve` section).
> The problem with all options is that
2004 Jul 27
1
[LLVMdev] Linking to native libraries
> Yes, this is no problem. You can do something like
> this:
>
> $ llvmgcc X.c -c -o X.bc
> $ llc X.bc -o X.s
> $ gcc Y.c -o Y.o -c
> $ gcc X.s Y.o -o program
> $ ./program
Ok, fine, and what about the interpreter? It takes
100% llvm, doesn't it? Or is there some kind of import
facility (perhaps as an specially interpreted call or
as an extension to llvm which makes
2005 Feb 21
0
[LLVMdev] Revised patch to make gccld link native .so's
Here is a revised patch after some suggestions:
1. Removed extraneous changes (the white space changes that are -/+
whitespace), and the commented out code.
2. Keep the warning for linking dynamic libraries in LinkLibraries.cpp
I still don't have a good solution to the problem of -L paths that include
bytecode versions of the native libraries we're trying to link. Consider the
2008 May 08
1
[LLVMdev] PPC Isel complex patterns
Hi all,
I have problem with specifying complex patterns in PPC Isel backend.
I would like to fetch few instructions into one like that:
def MatchPAT1 : Pat<(or
(or
(shl GPRC:$rA, (i32 imm:$imm24)),
(and (shl GPRC:$rA, (i32 imm:$imm8)), 0xFF0000)
),
(or
(srl GPRC:$rA, (i32 imm:$imm24)),
(and (shl GPRC:$rA, (i32 imm:$imm8)),0xFF00)
)), (myinstr GPRC:$rA)>;
That pattern
2019 Mar 25
2
RFC: ELF Autolinking
On Sun, Mar 24, 2019 at 9:51 PM Saleem Abdulrasool <compnerd at compnerd.org>
wrote:
> Sorry for the late chiming in.
>
> Yes, swift does use autolinking, and I would like to use that on all the
> targets. The only target which does not support this functionality
> currently are ELF based. That said, I think that `#pragma comment(link,
> ...)` is insufficient for my
2006 Jul 12
2
Error install rgl package on linux
Dear all,
I tried to install rgl package on my linux machine fc5, I got an error.
Here I run R as user,
$ R
> options(repos=c(CRAN="http://cran.at.r-project.org/"))
> install.packages("rgl", lib="/home/subianto/local/lib/R/library/site-packages", dependencies=TRUE)
trying URL 'http://cran.at.r-project.org/src/contrib/rgl_0.67-2.tar.gz'
Content type
2009 Nov 09
2
[LLVMdev] Cmake and pass
Hi,
Is it possible to generate pass (shared object) from Cmake?
I tried to use add_llvm_library() however it produces only static
libs.
Thanks, Mariusz.
2019 Mar 19
2
RFC: ELF Autolinking
On Mon, Mar 18, 2019 at 8:02 PM Rui Ueyama <ruiu at google.com> wrote:
> On Thu, Mar 14, 2019 at 1:05 PM bd1976 llvm via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> On Thu, Mar 14, 2019 at 6:27 PM Peter Collingbourne <peter at pcc.me.uk>
>> wrote:
>>
>>>
>>>
>>> On Thu, Mar 14, 2019 at 6:08 AM bd1976 llvm via
2019 Mar 25
3
RFC: ELF Autolinking
Are you planning to add support for "-F" and "-framework" to ELF linkers?
On Mon, Mar 25, 2019 at 12:51 AM Saleem Abdulrasool via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Sorry for the late chiming in.
>
> Yes, swift does use autolinking, and I would like to use that on all the
> targets. The only target which does not support this functionality
>
2017 Jul 21
2
How does yum decide when 2 packages meet a dependency?
Hi list,
Say a package has a dependency for libfoo.so.1, and 2 (or more) packages
provide libfoo.so.1, how does yum decide which package to install to
meet the dependency?
2017 Jul 21
2
How does yum decide when 2 packages meet a dependency?
On Fri, 21 Jul 2017, Matthew Miller wrote:
> On Fri, Jul 21, 2017 at 04:19:20PM +0100, Phil Perry wrote:
>> Say a package has a dependency for libfoo.so.1, and 2 (or more)
>> packages provide libfoo.so.1, how does yum decide which package to
>> install to meet the dependency?
>
> It has a series of heuristics:
>
> http://yum.baseurl.org/wiki/CompareProviders
2019 Mar 21
3
RFC: ELF Autolinking
On Thu, Mar 21, 2019 at 12:06 AM Rui Ueyama <ruiu at google.com> wrote:
> Perhaps there's no one clean way to solve this issue, because previously
> all libraries and object files are explicitly given to the linker via a
> command line and the order of files in the command line matters. That
> assumes human intervention to work correctly. Now, the autolinking feature
>
2012 Jun 11
0
[LLVMdev] Clang64 on Windows using Mingw64 yields many linking errors?
Hello
First of all, note the "llvm" in the mailing list title. Clang
questions should be asked in other ML.
> 3. Run cmake and let it figure out that its using Clang on Windows.
> 4. Build and realize that the link doesn't work because CMake pulls in the
> wrong libraries (per default it uses Microsoft naming conventions: foo.lib
> instead of libfoo.a).
It seems like