search for: libmypass

Displaying 7 results from an estimated 7 matches for "libmypass".

2020 Apr 20
2
How to optimize a large project in llvm pass?
Hi, I have written MyPass.cpp and I use "EP_FullLinkTimeOptimizationLast". I compile it and get libMypass.so. MyPass.so rely on some other code, such as,Init.c and Helper.c. So, I use following commands to get a static library libmypass-rt.a. " $ clang -fsanitize=safe-stack -c -emit-llvm -fpic -Wall -Wextra -O2 -I ../include -o obj/helpers.o helpers.c $ clang -fsanitize=safe-stack -c -emit-llvm -...
2010 Dec 12
2
[LLVMdev] Optimized "opt" on Darwin fails to load dynamic libraries with passes
...usr/local/bin/opt | grep assignPass 00000001004223d0 (__TEXT,__text) weak external __ZN4llvm4Pass17assignPassManagerERNS_7PMStackENS_15PassManagerTypeE // my dynamic library contains a ModulePass, with a matching symbol that is missing in the installed "opt" binary $ nm -m /usr/local/lib/libMyPass.dylib | grep assignPass (undefined) external __ZN4llvm10ModulePass17assignPassManagerERNS_7PMStackENS_15PassManagerTypeE // and indeed, when opt tries to load it, it fails. $ opt -load /usr/local/lib/libMyPass.dylib Error opening '/usr/local/lib/libMyPass.dylib': dlopen(/usr/local...
2010 Dec 12
0
[LLVMdev] Optimized "opt" on Darwin fails to load dynamic libraries with passes
...gnPass > 00000001004223d0 (__TEXT,__text) weak external > __ZN4llvm4Pass17assignPassManagerERNS_7PMStackENS_15PassManagerTypeE > > // my dynamic library contains a ModulePass, with a matching symbol that is > missing in the installed "opt" binary > $ nm -m /usr/local/lib/libMyPass.dylib | grep assignPass > (undefined) external > __ZN4llvm10ModulePass17assignPassManagerERNS_7PMStackENS_15PassManagerTypeE > > // and indeed, when opt tries to load it, it fails. > $ opt -load /usr/local/lib/libMyPass.dylib > Error opening '/usr/local/lib/libMyPass....
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
Hi all, I was wondering if there's any way to pass command line arguments to LLVM optimization passes when run through the opt tool. For example, suppose I register called MyPass, then I want to run opt -load libMyPass.so -MyPass 3 < input.bc and have "3" be available to MyPass as a kind of argv argumnet through some method. Or does it take a major rewrite of the opt tool command line parsing? Thanks! Harel Cain -------------- next part -------------- An HTML attachment was scrubbed... URL: &lt...
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
...line arguments to optimization passes > > Hi all, > > I was wondering if there's any way to pass command line arguments to LLVM > optimization passes when run through the opt tool. > > For example, suppose I register called MyPass, then I want to run > > opt -load libMyPass.so -MyPass 3 < input.bc > > and have "3" be available to MyPass as a kind of argv argumnet through > some method. > > > Or does it take a major rewrite of the opt tool command line parsing? > > > Thanks! > > Harel Cain > > _________________...
2011 Jan 27
0
[LLVMdev] Passing command line arguments to optimization passes
....uiuc.edu Subject: [LLVMdev] Passing command line arguments to optimization passes Hi all, I was wondering if there's any way to pass command line arguments to LLVM optimization passes when run through the opt tool. For example, suppose I register called MyPass, then I want to run opt -load libMyPass.so -MyPass 3 < input.bc and have "3" be available to MyPass as a kind of argv argumnet through some method. Or does it take a major rewrite of the opt tool command line parsing? Thanks! Harel Cain -------------- next part -------------- An HTML attachment was scrubbed... URL: &lt...
2011 Jan 28
0
[LLVMdev] Passing command line arguments to optimization passes
...and line arguments to optimization passes > > Hi all, > > I was wondering if there's any way to pass command line arguments to LLVM > optimization passes when run through the opt tool. > > For example, suppose I register called MyPass, then I want to run > > opt -load libMyPass.so -MyPass 3 < input.bc > > and have "3" be available to MyPass as a kind of argv argumnet through > some method. > > > Or does it take a major rewrite of the opt tool command line parsing? > > > Thanks! > > Harel Cain > > ________________________...