Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile"
2007 Apr 13
0
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
On Fri, 13 Apr 2007, Devang Patel wrote:
> And this brings back CommandLine Error: Arugment blah defined more
> than once!
>
> And without this, opt -load .../LLVMHello.dylib -hello does not work
> on Darwin because dyld is not able to find SlowerOperationInformer ;)
I think libhello should drop its use of SlowOperationInformer.
-Chris
> On Apr 13, 2007, at 11:28 AM, Devang
2007 Apr 13
3
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
On Apr 13, 2007, at 12:28 PM, Chris Lattner wrote:
> On Fri, 13 Apr 2007, Devang Patel wrote:
>> And this brings back CommandLine Error: Arugment blah defined more
>> than once!
>>
>> And without this, opt -load .../LLVMHello.dylib -hello does not work
>> on Darwin because dyld is not able to find SlowerOperationInformer ;)
>
> I think libhello should drop
2007 Apr 13
0
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
On Fri, 13 Apr 2007, Devang Patel wrote:
>> I think libhello should drop its use of SlowOperationInformer.
>
> That'll fix Hello example. However, anyone trying to load their custom
> pass will likely to run into this again.
It is a long-standing issue. The deal is that libsupport (and many
others) are .a files. If one of the .o files in the .a file is used by a
plugin, but
2008 Apr 22
2
[LLVMdev] The source code Makefile (newbie with pass registering Problem)
Hi!!
It's me again. I guess that there is a problem in the Makefile of my source code. But I don't know where. Could you please verify it?
The Makefile is written like this:
# Makefile for Genetic Algorithm Pass
CXXFLAGS = -Wall -I/iss/fpga3/nicole/galib247/
LDFLAGS= -L/iss/fpga3/nicole/galib247/ga/ -lga -Wl,-E
# Path to top level of LLVM heirarchy
LEVEL=../../../
# Name of the
2010 May 21
1
[LLVMdev] Hello example plugin has unresolved symbol in llvm 2.7
I built llvm-2.7 from source on FreeBSD-i386 with:
./configure --prefix=/opt && gmake
It builds fine, but the Hello plugin fails to load with an unresolved symbol.
$ opt -load /opt/lib/libLLVMHello.so -help
Error opening '/opt/lib/libLLVMHello.so': /opt/lib/libLLVMHello.so: Undefined symbol "_ZNK4llvm4Pass5printERNS_11raw_ostreamEPKNS_6ModuleE"
-load
2009 Jan 19
0
[LLVMdev] ocaml build system
On 2009-01-19, at 13:50, Nick Lewycky wrote:
> I have an issue with the OCaml build system and the ExecutionEngine.
>
> PR2128 has a patch to change the Interpreter to use libffi. This
> breaks test/Bindings/Ocaml/executionengine.ml because OCaml doesn't
> try to link with libffi, even though llvm-config knows that we should:
>
> $ Debug/bin/llvm-config --ldflags
2014 Jul 09
2
[LLVMdev] Help with the 'WritingAnLLVMPass' tutorial
Hi,
I'm making my way through the WritingAnLLVMPass tutorial and hitting the
following issue.
$ opt -load ../../../Debug+Asserts/lib/LLVMHello.so -hello < hello.bc >
/dev/null
opt: symbol lookup error: ../../../Debug+Asserts/lib/LLVMHello.so:
undefined symbol: AnnotateHappensAfter
nm -g ../../../Debug+Asserts/lib/LLVMHello.so
U AnnotateHappensAfter
...
$ ldd
2011 Jun 24
2
[LLVMdev] Missing symbols in pass stack trace
> Looks like your shared library is not being compiled with symbols.
> Did you verify that your sources are compiled with -g?
I think so, this is the makefile (based on the one in the Hello pass):
> LEVEL = ../../..
> LIBRARYNAME = CGF
> LOADABLE_MODULE = 1
> USEDLIBS =
>
> ifneq ($(REQUIRES_RTTI), 1)
> ifneq ($(REQUIRES_EH), 1)
> EXPORTED_SYMBOL_FILE =
2007 Mar 23
1
[LLVMdev] strange pass behaviour
Hi
I have written a pass which creates some scheduling information. Its called MParSchedule.
This pass works with opt. But when feeding it my experimental backend it seems to loose
instructions and fails to work. I am loading this stuff as .so libraries under linux and i am
using the amd64 version with a self compiled llvm-gcc.
With this call it works:
opt
2010 Aug 05
0
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Hi Takumi,
> Any feedbacks are welcome.
> Have fun!
This seems to be pretty useful addition to LLVM on windows! And it
seems the only painless way to make plugins working, yay!
For me the patch looks pretty good. One minor thing: could you please
rename SharedDir => SharedLibDir
Thanks!
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg
2009 Jul 17
2
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
While learning to write LLVM passes and following the precise
instructions under http://llvm.org/docs/WritingAnLLVMPass.html,
<http://llvm.org/docs/WritingAnLLVMPass.html>
I got this error when loading the hello pass to run the test program:
opt -load ./Release/lib/Hello.so -hello < test/test.bc > /dev/null
Error opening './Release/lib/Hello.so': ./Release/lib/Hello.so:
2006 Sep 02
2
[LLVMdev] Adding register allocator to LLVM
On 9/2/06, Chris Lattner <sabre at nondot.org> wrote:
>
> Make sure to add it to Codegen/LinkAllCodegenComponents.h.
I'm sure I did. I did so from the first time and I also needed to add my
library .a file to the USEDLIBS variable within llc makefile to build llc.
I wonder how lli links with all the rest LLVM as it seems to include no lib
within its makefile. May be I need to
2010 Aug 05
2
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Good summer, all!
This patch enables ENABLE_SHARED=1 to build DLL based LLVM toolchain.
I have checked this on Cygwin-1.5, Cygwin-1.7, mingw(msysgit) and
mingw-cross-fedora12.
I can separate this patch into some parts; cleanups, adding
definitions and adding rules.
Any feedbacks are welcome.
Have fun!
...Takumi
* Pros
- reduction of linking time of toolchain.
- capability of -load
2010 Mar 08
2
[LLVMdev] Machine Function pass
I am trying to write a MachineFunction pass and build it as a loadable module.
I want the pass to run after prolog/epilog emmiter. So far, I have been using
MachineFunctionPass, but by inserting it to lib/Codegen and hacking the
LLVMTargetMachine file, and Pass.h files.
I have created a directory "lib/Transforms/MyPass", and inside I have
the code of the pass (which is just a
2007 Apr 13
2
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
Chris,
On Fri, 2007-04-13 at 12:39 -0700, Chris Lattner wrote:
> On Fri, 13 Apr 2007, Devang Patel wrote:
> >> I think libhello should drop its use of SlowOperationInformer.
> >
> > That'll fix Hello example. However, anyone trying to load their custom
> > pass will likely to run into this again.
>
> It is a long-standing issue. The deal is that
2006 Sep 02
0
[LLVMdev] Adding register allocator to LLVM
On Sat, 2 Sep 2006, Anton Vayvod wrote:
> I'm sure I did. I did so from the first time and I also needed to add my
> library .a file to the USEDLIBS variable within llc makefile to build llc.
> I wonder how lli links with all the rest LLVM as it seems to include no lib
> within its makefile. May be I need to include/link my lib somewhere else?
Ah, that's probably it. Try
2009 Jul 19
0
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
Hey Chuck,
I'm afraid I can't reproduce your error but...a problem you may run
into later is that opt will complain with
opt: llvm/lib/VMCore/Pass.cpp:149:
void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&):
Assertion `Inserted && "Pass registered multiple times!"' failed.
Aborted
I "fixed" this by replacing the LLVMLIBS line in
2009 Aug 11
2
[LLVMdev] llc undefined symbol
Hi all
I'm writing a pass for the llc tool. If I try to load my pass(llc -load
../mypass.so), this error message appears :
Error opening '/nfs/wsi/ti/graumann/llvm-2.5/Release/lib/LLVMMicha.so':
/nfs/wsi/ti/graumann/llvm-2.5/Release/lib/LLVMMicha.so: undefined symbol:
_ZTVN12_GLOBAL__N_119MyRegisterAllocatorE
-load request ignored.
Is this code wrong for the pass
2013 Jul 22
0
[LLVMdev] How to additionally compile the source files in subdirectories when using Makefile?
Hi guys,
I am writing a LLVM pass plugin, and just simply add a directory mypass into llvm/lib/Transforms. But since I don't hope this directory to contain too many source files, I add some subdirectories.
For instance, there are 2 files inside *mypass/sub: basic.h, basic.cpp. Here is the structure of the directory llvm/lib/Transforms/mypass
$tree mypass
mypass
├── Makefile
├──
2012 Mar 14
2
[LLVMdev] Linking static external library into an LLVM pass library?
This document http://llvm.org/docs/Projects.html says the USEDLIBS should
be used to statically link libraries:
USEDLIBSThis variable holds a space separated list of libraries that should
be linked into the program. These libraries must be libraries that come
from your *lib* directory. The libraries must be specified without their
"lib" prefix. For example, to link libsample.a, you