search for: writinganllvmpass

Displaying 20 results from an estimated 320 matches for "writinganllvmpass".

2006 Sep 28
1
[LLVMdev] Bug in WritingAnLLVMPass.html
I find a bug in document llvm/docs/WritingAnLLVMPass.html#debughints Since the PassManager class is in the namespace llvm, we should use command (gdb) break llvm::PassManager::run to set breakpoint. Otherwise we get error message: (gdb) break PassManager::run Can't find member of namespace, class, struct, or union named "PassManager::run...
2009 Oct 12
1
[LLVMdev] [PATCH] docs/WritingAnLLVMPass.html: s/heirarchy/hierarchy/
Hi, attached patch fixes an obvious typo in docs/WritingAnLLVMPass.html. best regards, Timo Lindfors -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm-docs-writing-pass-typo1.patch Type: text/x-diff Size: 407 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091012/27de943d/attachment...
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...
2013 May 18
1
[LLVMdev] Broken link in http://llvm.org/docs/WritingAnLLVMPass.html
Link to LowerAllocations ( http://llvm.org/doxygen/LowerAllocations_8cpp-source.html) is no longer working. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130518/9eb42d79/attachment.html>
2012 Dec 17
3
[LLVMdev] LoopPass doFinalization() called multiple times per program?
On Sun, Dec 16, 2012 at 7:23 AM, Duncan Sands <baldrick at free.fr> wrote: > Hi Stephen, > > > On 13/12/12 18:58, Stephen McGruer wrote: > >> I'm wondering if the documentation for LoopPass >> (http://llvm.org/docs/**WritingAnLLVMPass.html#**LoopPass<http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass>) >> is misleading or >> incorrect (or if I'm just missing something.) The documentation states: >> >> "The doFinalization method ... is called when the pass framework has >> finished &...
2012 Dec 13
2
[LLVMdev] LoopPass doFinalization() called multiple times per program?
I'm wondering if the documentation for LoopPass ( http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass) is misleading or incorrect (or if I'm just missing something.) The documentation states: "The doFinalization method ... is called when the pass framework has finished calling runOnLoop<http://llvm.org/docs/WritingAnLLVMPass.html#runOnLoop> for every loop in the progra...
2002 Sep 17
0
[LLVMdev] Typo in www/docs/WritingAnLLVMPass.html
Pretty straightforward. -- Casey Carter Casey at Carter.net ccarter at uiuc.edu AIM: cartec69 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20020917/24b4e16a/attachment.ksh>
2012 Dec 16
0
[LLVMdev] LoopPass doFinalization() called multiple times per program?
Hi Stephen, On 13/12/12 18:58, Stephen McGruer wrote: > I'm wondering if the documentation for LoopPass > (http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass) is misleading or > incorrect (or if I'm just missing something.) The documentation states: > > "The doFinalization method ... is called when the pass framework has finished > calling runOnLoop <http://llvm.org/docs/WritingAnLLVMPass.html#runOnLoop> for >...
2012 Dec 17
0
[LLVMdev] LoopPass doFinalization() called multiple times per program?
...2012 at 7:23 AM, Duncan Sands <baldrick at free.fr > <mailto:baldrick at free.fr>> wrote: > > Hi Stephen, > > > On 13/12/12 18:58, Stephen McGruer wrote: > > I'm wondering if the documentation for LoopPass > (http://llvm.org/docs/__WritingAnLLVMPass.html#__LoopPass > <http://llvm.org/docs/WritingAnLLVMPass.html#LoopPass>) is misleading or > incorrect (or if I'm just missing something.) The documentation states: > > "The doFinalization method ... is called when the pass framework has >...
2015 Feb 02
2
[LLVMdev] question about the 3th and 4th arguments in the registration function
Hello, I'm a little confused about the 3th and 4th arguments in the registration function, explained here: http://llvm.org/releases/3.3/docs/WritingAnLLVMPass.html e.g static RegisterPass<Hello> X("hello", "Hello World Pass", false /* Only looks at CFG */, false /* Analysis Pass */); "Lastly, we *register our class* <http://llvm.org/releases/3.3/docs/WritingAn...
2015 Oct 22
2
Building LLVM Pass with in Source Tree
Hello , I am following http://llvm.org/docs/WritingAnLLVMPass.html this to build a simple pass with in the source tree. When I try to run make command on my pass directory. I am getting following error: ../../../Makefile.common:60: ../../../Makefile.config: No such file or directory ../../../Makefile.common:68: /Makefile.rules: No such file or directory m...
2020 Feb 29
3
Multi-Threading Compilers
...which the NPM does). I'll leave it to folks (Chandler probably has the most context here) to provide some more detail there if they can/have time. Historically speaking, all of the LLVM pass managers have been designed to support multithreaded compilation (check out the ancient history of the WritingAnLLVMPass <http://llvm.org/docs/WritingAnLLVMPass.html> doc if curious). The problem is that LLVM has global use-def chains on constants, functions and globals, etc, so it is impractical to do this. Every “inst->setOperand” would have to be able to take locks or use something like software transac...
2006 May 01
3
[LLVMdev] ModulePasses requiring FunctionPasses
I am trying to write a ModulePass which requires PostDominator sets for every function in the module. Now finding post dominators is a function pass. The link on the llvm.org website says that : "Currently it is illegal for a ModulePass<http://llvm.org/docs/WritingAnLLVMPass.html#ModulePass>to require a FunctionPass <http://llvm.org/docs/WritingAnLLVMPass.html#FunctionPass>. This is because there is only one instance of the FunctionPass<http://llvm.org/docs/WritingAnLLVMPass.html#FunctionPass>object ever created, thus nowhere to store information for all...
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: undefined symbol: _ZSt...
2006 Sep 27
2
[LLVMdev] dependent passes
...the statement "using namespace llvm;" What I'm saying is that it has been my experience that when a pass Y depends on another pass X, i.e, Y is a required analysis of X, then Y must be defined within the llvm namespace rather than in an anonymous namespace as http://llvm.org/docs/WritingAnLLVMPass.html suggests it should be. I'm wondering if that is correct, or if I'm missing something. Regards, Ryan Devang Patel wrote: > On Sep 26, 2006, at 5:49 PM, Ryan M. Lefever wrote: > >> I am trying to create two passes X and Y, in which pass X depends on >> pass Y. Aft...
2017 Apr 15
2
Why does an LLVM pass based on FunctionPass not get triggered for certain functions?
...o -hello src/world.bc > /dev/null`, the output is: Hello: main However, the [tutorial][2] claims that the output should have been: Hello: __main Hello: puts Hello: main Why does my pass not get triggered for the first two functions? [1]: http://releases.llvm.org/3.8.0/docs/WritingAnLLVMPass.html#quick-start-writing-hello-world [2]: http://releases.llvm.org/3.8.0/docs/WritingAnLLVMPass.html#running-a-pass-with-opt -- Thanks & Regards, Dipanjan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachment...
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
I just follow the tutorial: http://llvm.org/docs/WritingAnLLVMPass.html Actually it's not only my module, I used the LLVMHello.so (a sample module in the source tree) and get the crash (I didn't do anything :-P). ~t On Tue, Aug 12, 2014 at 12:57 AM, Eric Christopher <echristo at gmail.com> wrote: > Weird, it definitely shouldn't be crashi...
2006 Sep 27
0
[LLVMdev] dependent passes
..."opt -load" would complain about undefined symbols when I called > getAnalysis<>(). Am I correct that the pass that is depended on must > be > in the llvm namespace? If so, that was not clear in the documentation > regarding writing an LLVM pass. http://llvm.org/docs/WritingAnLLVMPass.html says, ----- Basic code required Now that we have a way to compile our new pass, we just have to write it. Start out with: #include "llvm/Pass.h" #include "llvm/Function.h" Which are needed because we are writing a Pass, and we are operating on Function's. Next we...
2006 Sep 27
0
[LLVMdev] Name of Function's original module during link-time optimization
On Tue, 26 Sep 2006, Bram Adams wrote: > > A limitation here is that only Functions' debug data can be kept, as > other Values (i.e. Instructions) are not Annotable. Is this an explicit > design decision? Yes, we intentionally do not want things to be annotatable. In fact, Function being annotatable is a wart due to the way the code generator currently works. In general, we
2006 Sep 26
2
[LLVMdev] Name of Function's original module during link-time optimization
Hi, Chris Lattner wrote: > I'd suggest writing a little pass that strips out debug intrinsics. > OK, I did this and it works (the strange seg fault also disappears after all declared debug variables are gone)! In a first phase, all intrinsic instructions are discarded after extracting their data into annotations attached to the relevant Function. Then, a second phase wipes out the