search for: createmypass

Displaying 5 results from an estimated 5 matches for "createmypass".

2011 Sep 23
3
[LLVMdev] statically link pass to clang
Hi all, A question about statically linking a pass to clang instead of dynamically loading it at runtime. I am stumped on this bug for a while. I inserted a pass under lib/Transforms/mypass directory, registered it with INITIALIZE_PASS and defined createMyPass in the pass. Also I added file mypass.h in include/llvm/Transforms/ to expose the accessor functions that expose my passes. Entries are added in include/llvm/LinkAllPasses.h to force pass linking. The archive files of my passes are added to LINK_COMPONENTS in the Makefiles for opt and clang. Howeve...
2011 Nov 15
1
[LLVMdev] add pass to O2. use as "clang -O2 .."
Hello folks, I wrote a transforming looppass for my project, opt --help can see it. I want clang to use my pass too, so that I don't have to compile to IR, opt, and then llc to binary manually. Now I am trying to add my pass to O2 by mimicking LICM pass. I add a line "MPM.add(createMyPass());" in PassManagerBuilder::populateModulePassManager, and got assertion fail "void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed." I can't figure out how to solve this? thanks for...
2011 Sep 26
0
[LLVMdev] statically link pass to clang
...about statically linking a pass to clang instead of >> > dynamically >> > loading it at runtime. I am stumped on this bug for a while. I inserted >> > a >> > pass under lib/Transforms/mypass directory, registered it with >> > INITIALIZE_PASS and defined createMyPass in the pass. Also I added file >> > mypass.h in include/llvm/Transforms/ to expose the accessor functions >> > that >> > expose my passes. Entries are added in include/llvm/LinkAllPasses.h to >> > force >> > pass linking. The archive files of my passes a...
2008 May 01
0
[LLVMdev] Is it possible to write a llvm pass in OCaml?
...at might not be immediately obvious. If you're most interested in quick results, probably the path of least resistance is to write a pass in C++ and provide your own ocaml bindings for that; bindings for passes are extremely trivial, since passes are controlled by a single entry point (a createMyPass() function in C++). If it's feasible to execute an external program, you could also run 'opt -load'. — Gordon
2014 Jul 14
3
[LLVMdev] Register Machine Pass
It's not being executed. I'm both trying to print via outs() and add info via STATISTIC, neither is occurring. On Mon, Jul 14, 2014 at 12:22 PM, Justin Holewinski <jholewinski at nvidia.com> wrote: > On Mon, 2014-07-14 at 08:31 -0700, Ryan Taylor wrote: > > Where is the documentation about registering a machine pass? I'm > > unable to find it. > > >