similar to: [LLVMdev] Machine Function pass

Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] Machine Function pass"

2010 Mar 09
0
[LLVMdev] Machine Function pass
On Mar 8, 2010, at 11:45 AM, Manousaridis Aggelos wrote: > > Is it even possible to have a MachineFunctionPass externally, or not? Probably not. MachineFunctionPasses aren't regular Passes which opt can meaningfully run, in its current form. > The documentation implies that is should be possible. Which documentation? Dan
2010 Mar 09
1
[LLVMdev] Machine Function pass
On Tue, Mar 09, 2010 at 12:11:04PM -0800, Dan Gohman wrote: > > On Mar 8, 2010, at 11:45 AM, Manousaridis Aggelos wrote: > > > > Is it even possible to have a MachineFunctionPass externally, or not? > > Probably not. MachineFunctionPasses aren't regular Passes which > opt can meaningfully run, in its current form. > > > The documentation implies that is
2007 Nov 23
3
CopyHandler and hidden files?
Hello, I was wondering whether the CopyHandler plugin works with hidden files like .htaccess? I have an .htaccess under src/ and another one under src/code/, but they won''t be copied to output/. My config.yaml is: File/CopyHandler: paths: [''**/*.css'', ''**/*.js'', ''**/*.jpg'', ''**/*.png'',
2011 May 30
1
[LLVMdev] opt refuses to load a pass
Hi, I'm having problems while using a custom pass with opt. The pass compiles and links just fine but, when I try to use it with opt: opt -load LLVMmyPass.so -my-flag -f aes.bc -o aes_bb.bc opt refuses to load it with the following error: Error opening 'LLVMmyPass.so': LLVMmyPass.so: undefined symbol: _ZN4llvm9DebugFlagE -load request ignored. and then complains that the flag
2009 Jun 23
3
[LLVMdev] Garbage collection implementation
I am using LLVM as the last stage of a compiler in order to easily produce a binary in native code. My compiler is implemented in Ocaml and has various layers of languages. In the last layer prior to LLVM, I have a value which has been converted to CPS, closure and hoisting (of functions). I am now trying to write a garbage collector for this language. The shadow stack is not suitable for me,
2018 Jun 25
2
How to include a opt pass in clang driver
Hello, I have written a pass for the IR and I can run it with opt -load lib/LLVMMyPass.so -mypass -myarguments -S -o output.ll < output.bc I have registered my pass with the following code: static RegisterPass<MyPass> X("mypass", "MyPass Pass (with getAnalysisUsage implemented)"); How do I include the same pass in the clang driver. I tried running the pass: clang
2010 Oct 21
2
[LLVMdev] statically linked passes
Hi, I am trying to create a pass that should get statically linked into opt (since I'm on both mac and native win32 and win32 does not support LOADED_MODULEs, at least I get errors while trying to create one). So I have it working with CMake on windows but when I try to run the same code base on mac I get unresolved externals. Here is what I have done so far in the build system: Within
2018 Jun 25
2
How to include a opt pass in clang driver
Hi Eli, I have tried that: static void registerMyPass(const PassManagerBuilder &, llvm::legacy::PassManagerBase &PM) { PM.add(new MyPass()); } static RegisterStandardPasses RegisterMyPass(PassManagerBuilder::EP_OptimizerLast, registerMyPass); It still couldn't find my pass. Regards, Soham Sinha PhD Student,
2010 Jul 14
0
[LLVMdev] How to cope with 'undefined reference' errors taken the example of building VMkit x86_64 version
Hi all, I haven't found this trick anywhere (including llvm/docs/MakefileGuide.html) so it maybe useful. This occurs only in 64 bit version of linux, linker of 32 bit system understands everything correctly. Situation: While building, at link stage, a 64bit version of some executable, with several archive libraries, say, A.a, B.a, C.a build fails with some "undefined reference to
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
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
2018 Jan 29
2
Polly Dependency Analysis in MyPass
i put following line in CMakeLists.txt; add_subdirectory(mypass) then used make -j9 then i used following and run on canonicalize IR $ opt -load lib/LLVMmypass.so -mypass vec-sum.preopt.ll On Mon, Jan 29, 2018 at 9:39 PM, Michael Kruse <llvmdev at meinersbur.de> wrote: > 2018-01-29 10:18 GMT-06:00 hameeza ahmed <hahmed2305 at gmail.com>: > > I tried writing
2006 Sep 02
2
[LLVMdev] Adding register allocator to LLVM
Hi all! I didn't manage to link my regalloc to lli (I added USEDLIBS to its makefile). Without it I can't run tests cause they need lli to be built. So how can I link createMyRegisterAllocator function to lli? Thanks. On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote: > > I managed to link my RegAlloc.a library to llc tool but can;t make the > same with lli tool.
2007 Apr 13
2
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
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 ;) thoughts ? - Devang On Apr 13, 2007, at 11:28 AM, Devang Patel wrote: > > > Changes in directory llvm/lib/Transforms/Hello: > > Makefile updated: 1.7 ->
2006 Sep 02
0
[LLVMdev] Adding register allocator to LLVM
On Sat, 2 Sep 2006, Anton Vayvod wrote: > I didn't manage to link my regalloc to lli (I added USEDLIBS to its > makefile). Without it I can't run tests cause they need lli to be built. So > how can I link createMyRegisterAllocator function to lli? Make sure to add it to Codegen/LinkAllCodegenComponents.h. -Chris > On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote:
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
2009 Mar 09
1
[LLVMdev] Cygwin patch
I have the PIC stuff building properly on Cygwin now, patch attached. But unfortunately it does not pass the test/Feature/load_module.ll test in 'make check' though, that needs debugging at some stage, but I have wasted enough time on this patch now, atleast SVN LLVM should compile on Cygwin now. The following adds libraries for Cygwin and also for MinGW (not tested) where Linux's
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
2005 Feb 25
2
[LLVMdev]Linker error building (modified) lli
I forgot that lli was "special". It uses the "JIT" keywoard which means "figure out the right libraries to use for a JIT compiler and runtime". So, just add this, to tools/lli/Makefile: USEDLIBS := LLVMBCWriter That worked for me. Reid. On Thu, 2005-02-24 at 16:58, Patrick Meredith wrote: > Where do I add that line? Just putting it in the vanilla Makefile in
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