Displaying 10 results from an estimated 10 matches for "sampsyo".
2017 Jun 09
2
Get segfault with ModulePass
...on is used as an argument in some function extract the instructions,
that uses the argument inside of the function body.
Can somebody help me, to find another way to achive the (argument-)connection
between the instructions? And is the segfault a LLVM bug?
Regards,
Gerion
[1] https://github.com/sampsyo/llvm-pass-skeleton
[2] https://github.com/sampsyo/llvm-pass-skeleton/issues/7
[3] https://github.com/FFmpeg/FFmpeg/blob/master/libavfilter/af_aformat.c
2016 Mar 01
0
How to write a simple MachineFunctionPass
...e a pass and then a MachineFunctionPass.
>From LLVM website, you can refer to
http://llvm.org/docs/WritingAnLLVMPass.html
And for outside pass, you can refer to
http://adriansampson.net/blog/llvm.html
It's a great article.
And the author put the source code on Github
<https://github.com/sampsyo/llvm-pass-skeleton>.
2016-03-01 14:36 GMT+08:00 Balasaheb Dabhade via llvm-dev <
llvm-dev at lists.llvm.org>:
> Hello everyone,
>
> I have written simple LLVM passes, but I cannot able to write a
> MachineFunctionPass pass.
> I am following the steps form the following lin...
2016 Mar 01
2
How to write a simple MachineFunctionPass
Hello everyone,
I have written simple LLVM passes, but I cannot able to write a
MachineFunctionPass pass.
I am following the steps form the following link but it is not working:
http://www.gabriel.urdhr.fr/2014/09/26/adding-a-llvm-pass/
Please share the sample MachineFunctionPass code or steps to follow to
write MachineFunctionPass.
Thanks,
Bala
--
Thanks,
Bala
IIITA Allahabad
--------------
2017 Jul 10
2
Problems with registering of ModulePass (with Dependencies)
...nabledOnOptLevel0, registerSkeletonPass);
-------- /snip------
Invocation per:
clang -Xclang -load -Xclang /path/to/llvm-pass-skeleton/build/skeleton/libSkeletonPass.so -g test.c
I use clang 4.0.1.
Can someone give me an advice, how to fix this and use the LoopInfo?
Gerion
[1] https://github.com/sampsyo/llvm-pass-skeleton/issues/7
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
...nell.edu/~asampson/blog/llvm.html describes how to
> create an out-of-source pass (see 'Let’s Write a Pass’). I think it
> is for LLVM 3.8 though.
Thanks for pointing that out. I had actually recently stumbled across
that page (and the GitHub repository it references,
https://github.com/sampsyo/llvm-pass-skeleton) while searching for an
answer to my questions but wasn't sure how up-to-date the information
is:
* Is add_library the currently recommended CMake macro call for
building an LLVM pass?
http://llvm.org/docs/WritingAnLLVMPass.html and
https://llvm.org/docs/CMake....
2017 Jun 11
2
Get segfault with ModulePass
...ument inside of the function body.
> >
> > Can somebody help me, to find another way to achive the (argument-)connection
> > between the instructions? And is the segfault a LLVM bug?
> >
> >
> > Regards,
> > Gerion
> >
> > [1] https://github.com/sampsyo/llvm-pass-skeleton
> > [2] https://github.com/sampsyo/llvm-pass-skeleton/issues/7
> > [3] https://github.com/FFmpeg/FFmpeg/blob/master/libavfilter/af_aformat.c
> > _______________________________________________
> > LLVM Developers mailing list
> > llvm-dev at lists.ll...
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
I'm looking for a "Hello, world" pass example that ideally has all of
the following properties:
1) Complete. That is, it should have functional CMakeLists.txt,
etc. files.
2) Out-of-source. That is, it should build against a binary LLVM
installation.
3) Modern. That is, I don't want to use any deprecated APIs or
CMake macros.
4) Clang-compatible.
2019 May 25
3
llvm pass
Hi list,
I have several questions about LLVM pass.
1) Is building a custom LLVM pass out-of-source not recommended?
The official document only contains instructions about in-source build (http://llvm.org/docs/WritingAnLLVMPass.html <http://llvm.org/docs/WritingAnLLVMPass.html>).
2) opt (ver >= 4) with custom pass libraries does not work as before. When I have a simple custom LLVM pass
2017 Jan 20
3
LLVM pass error
I am getting the following error while compiling my pass file with clang to
emit bitcode
Hello1.cpp:1:10: fatal error: 'llvm/Pass.h' file not found
#include "llvm/Pass.h"
^
1 error generated.
I had included this .cpp file for implementing function pass in
lib/Transform/Hello1 directory and also made approriate changes in
cmakelists.txt file and again build from the
2016 Aug 03
3
Issue with HelloWorld pass
Dear all,
I'm new to the LLVM world and I'm trying to run reproduce the hello
world example described here
http://llvm.org/releases/3.8.1/docs/WritingAnLLVMPass.html.
I started with a fresh new llvm-3.8.1 installation based on cmake
(running on Linux x86) using the following command:
cmake -DCMAKE_INSTALL_PREFIX=/path/to/llvm -DLLVM_TARGETS_TO_BUILD="X86" ../
The build