Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] --enable-optimized breaks pass registration for dynamically loadable passes?"
2010 Mar 16
3
[LLVMdev] Undefined symbol in Hello pass
Hello,
I just built a virgin ToT (r98634) for release on vanilla Snow
Leopard. It seems that the Hello pass doesn't want to load because of
undefined symbols:
builddir% ../llvm/configure --prefix=$(PWD)/../installdir --enable-optimized
builddir% make
builddir% make install && cd ../installdir
installdir% bin/opt -load lib/libLLVMHello.dylib
Error opening
2010 Dec 02
1
[LLVMdev] Undefined symbol in Hello pass
Hi all,
I recently experienced the same issue as below with LLVM 2.8 on Mac OS
10.5.8. I can load the pass with the debug version of opt, but not the
optimized version.
Does anyone know what the problem is or have any suggestions for debugging this?
My install went fine except for some failures during make check
(Unexpected Failures: 92). All failures were in one of the following:
2013 Mar 29
1
[LLVMdev] How to use the llvm::Linker?
Hi,All
this one pass that will use the Linker
namespace {
// Hello2 - The second implementation with getAnalysisUsage implemented.
llvm::StringRef programNametest("");
struct Hello2 : public ModulePass {
static char ID; // Pass identification, replacement for typeid
Hello2() : ModulePass(ID) {}
virtual bool runOnModule(llvm::Module &M){
llvm::Linker
2010 Jun 21
0
[LLVMdev] r98938 broke argument passing on MSP430?
On Fri, Jun 11, 2010 at 2:55 PM, Ben Ransford <ransford at cs.umass.edu> wrote:
> Yesterday I noticed that MSP430 argument passing is broken in trunk;
> see http://llvm.org/PR6573 for details and testcases. The problem is
> that calls aren't being preceded by instructions that put the
> arguments into registers. I backtracked my working copy and then
> stepped forward
2007 Apr 25
2
[LLVMdev] ModulePass that requires FunctionPass
Hi Devang,
You recently mentioned that the pass manager now allows a ModulePass
to require a FunctionPass. I just tried it but ran into errors. Could
you please take a look to see if I did anything wrong? Thanks!
Basically I changed the HelloWorld sample pass to be a ModulePass and
tried to use the LoopInfo pass inside the runOnModule routine.
See below for the source code and error messages.
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
On 11/08/2011 03:20 AM, ret val wrote:
> I'm writing a Pass that I would like to remain loadable by opt. The
> pass also requires DominatorTree(for PromoteMemToReg).
>
> Looking for examples the only way I found to require a dependecny is
> by doing something like this:
> char Hello::ID = 0;
> namespace llvm { void
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
On 11/08/2011 08:50 PM, ret val wrote:
> Just shows me what I expect
> void getAnalysisUsage(AnalysisUsage&AU) const {
> DominatorTree *dt =&getAnalysis<DominatorTree>();
>
> So I'm only using it for DominatorTree(so I can use PromoteMemToReg).
Interesting. Is the same assert triggered when you use RegisterPass to
register the pass? Is getAnalysisUsage()
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
I'm writing a Pass that I would like to remain loadable by opt. The
pass also requires DominatorTree(for PromoteMemToReg).
Looking for examples the only way I found to require a dependecny is
by doing something like this:
char Hello::ID = 0;
namespace llvm { void initializeHelloPass(llvm::PassRegistry&); }
INITIALIZE_PASS_BEGIN(Hello, "hello", "Hello
2013 Jul 21
3
[LLVMdev] Inst field in MSP430InstrFormats.td
Hello,
Within the file "MSP430InstrFormats.td" there is a class called
"MSP430Inst" which has "Instruction" as superclass. Within this class
there is a field called "Inst" (field bits<16> Inst;) which gets
assigned in classes which specifies a specific instruction format,
e.g. IForm contains:
let Inst{12-15} = opcode;
let Inst{7} = ad.Value;
let
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
Thank you very much!
To make it simpler, I may as well just implement the self-written "check function" in C language instead of wrapping it in LLVM module. According to the hint you give me, all I need to do is as follow(?)
1. Implement the "Check function" in the check.c file;
2. Add the check function into the module(the Hello1.bc file which I will run the functionPass on)
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
I'm confused by your code. StaticInitializer seems to exist so you can
create InitializeEverything, which doesn't get used.
Do I need to do something along the lines of:
static void registerPollyPasses(const llvm::PassManagerBuilder &Builder,
llvm::PassManagerBase &PM) {
PM.add(llvm::createPromoteMemoryToRegisterPass());
2012 Apr 09
1
[LLVMdev] How to instrument a this function using insertBefore instruction???
That sounds like a good general plan, yes!
Joey
2012/4/9 15102925731 <zhenkaixd at 126.com>
> Thank you very much!
>
> To make it simpler, I may as well just implement the self-written "check
> function" in C language instead of wrapping it in LLVM module. *According
> to the hint you give me, all I need to do is as follow(?)*
>
> 1. Implement the
2010 Jun 11
2
[LLVMdev] r98938 broke argument passing on MSP430?
Hello,
Yesterday I noticed that MSP430 argument passing is broken in trunk;
see http://llvm.org/PR6573 for details and testcases. The problem is
that calls aren't being preceded by instructions that put the
arguments into registers. I backtracked my working copy and then
stepped forward until it broke between r98937 and r98938. Refining
further, I found that rolling back 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 Dec 15
2
[LLVMdev] Running a pass
Hello LLVM,
I am following the document "Writing an LLVM Pass". When I ran "opt -load
../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I got the next
error:
***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass <
hello.bc > /dev/null
opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const
llvm::PassInfo&): Assertion
2008 Mar 31
2
[LLVMdev] Pass registered multiple times!
Hi,
I'm writing my first hello world Pass with the class name First, but
when I tried to load it using opt, I got the following error:
/var/soft/llvm-2.2-build/lib/Transforms/Hello$ opt
-load ../../../Debug/lib/First.so --help
opt: /var/soft/llvm-2.2/lib/VMCore/Pass.cpp:157:
void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
`Inserted && "Pass
2009 Dec 15
0
[LLVMdev] Running a pass
Juan Carlos Martinez Santos wrote:
> Hello LLVM,
>
> I am following the document "Writing an LLVM Pass". When I ran "opt
> -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I
> got the next error:
>
> ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass <
> hello.bc > /dev/null
> opt: Pass.cpp:159:
2015 Jun 21
0
9p host/guest permissions & selinux...?
Hello Folks
It's with some trepidation that I venture on to such a heady newsgroup,
but I'm about ready to throw myself off a bridge after getting this all
set up and apparently working only to be struck down by permissions and
selinux hell (either, or both).
I've followed instructions here:
http://wiki.qemu.org/Documentation/9psetup
2012 Jul 23
2
[LLVMdev] building a pass with cmake
Dear all,
I want to build an LLVM pass by using CMake.
After reading the ralevant part of the documentation (
http://llvm.org/releases/3.1/docs/CMake.html#passdev),
I copied the files in the llvm/lib/Transforms/Hello to another folder in
order to give a try.
Then I renamed the folder as Hello2.
Then I have changed CMakeLists.txt as following:
cmake_minimum_required(VERSION 2.8)
# A
2008 Oct 30
2
[LLVMdev] Error in registration of Pass
Hi ,
I get the following error when I try and load a certain pass I have made.
Can anyone help me out? What could be the problem? And how can I remove it?
opt: Pass.cpp:147:
void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion
`Inserted && "Pass registered multiple times!"' failed.
Aborted (core dumped)
Thanks
Nipun
--------------