Displaying 10 results from an estimated 10 matches for "asampson".
Did you mean:
sampson
2019 May 25
3
llvm pass
...o.bc -S > /dev/null
opt-4.0: Unknown command line argument '-helloworld'. Try: 'opt-4.0 -help'
opt-4.0: Did you mean '-loops’?
3) I tried to invoke custom LLVM passes from clang rather than opt. I followed instructions from several articles like
https://www.cs.cornell.edu/~asampson/blog/llvm.html <https://www.cs.cornell.edu/~asampson/blog/llvm.html>
https://medium.com/@mshockwave/writing-llvm-pass-in-2018-part-iii-d44cd0c2c354 <https://medium.com/@mshockwave/writing-llvm-pass-in-2018-part-iii-d44cd0c2c354>
and registered the pass to clang’s workflow with legacy pa...
2018 Nov 16
2
Help with a pass
...ied with llvm-6 and llvm-7. I notice that if I change
EP_EarlyAsPossible to anything else it does not crash but I don't see the
expected string printed by the runOnSCC.
Could you help me to solve this problem? How should I create the pass?
Thanks for your time
[1] https://www.cs.cornell.edu/~asampson/blog/llvm.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181116/c779a50d/attachment.html>
2014 Oct 28
2
[LLVMdev] Storing values in global variables
Hello,
I have written a pass that works nicely if I use it with the opt tool,
as proposed by the "Writing an LLVM Pass" tutorial. Now I want to
execute this pass directly when clang is executed. I use the technique
described here:
http://homes.cs.washington.edu/~asampson/blog/clangpass.html. The pass
is loaded and executed, when I run clang with the right command line.
But clang proceeds to crash.
It always crashes because of assertions that test types (e.g. the
types of arguments of a call). So far i figured out that this is
because while the types are the same,...
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 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
Florian,
On 7/10/19 2:17 PM, Florian Hahn wrote:
> http://www.cs.cornell.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-...
2015 Jun 24
3
[LLVMdev] how to compile a large project to LLVM IR?
> On Jun 24, 2015, at 10:19 AM, Eli Bendersky <eliben at google.com> wrote:
>
>
>
> On Wed, Jun 24, 2015 at 7:05 AM, Q Z <zhaoqian301 at gmail.com <mailto:zhaoqian301 at gmail.com>> wrote:
> Hello,I want to compile a large project(for example,Apache httpd) to one .bc file. How can I do this? Can you give me some examples?
>
>
> In general, if the
2018 Jun 25
2
How to include a opt pass in clang driver
...river. I tried running the
pass:
clang output.c -o output -Xclang -load -Xclang lib/LLVMMyPass.so -mypass
-myarguments
However, the pass is not being run as I cannot see output from my pass.
What is the standard way to do it?
I have also tried approach described here:
https://www.cs.cornell.edu/~asampson/blog/clangpass.html . It didn't work.
Regards,
Soham Sinha
PhD Student, Department of Computer Science
Boston University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180625/ff50e226/attachment.html>...
2017 Oct 18
2
LLVM Installation failing
Hi
I am trying to install llvm and clang on ubuntu 16.04, I tried installing
them using apt command but while running the pass it gives me error
"error: llvm/pass.h not found
*#include"llvm/pass.h"*
so i tried installing using the source code and building it my self,
*make *fails
at 98% with this error
*collect2: error: ld returned 1 exit
2017 Jan 15
3
LLVM Start
Hello,
I am a computer science student new to LLVM compiler infrastructure. Please
guide me where to start from to learn LLVM in the most effective way.
Thanks,
Siddharth Shankar Swain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170115/6855d875/attachment.html>
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