search for: clangpass

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

Did you mean: clangast
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
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, their contexts...
2017 Jul 10
2
Problems with registering of ModulePass (with Dependencies)
...l void getAnalysisUsage(AnalysisUsage& au) const override { au.setPreservesCFG(); au.addRequired<LoopInfoWrapperPass>(); } }; } char SkeletonPass::ID = 0; //Automatically enable the pass. //http://adriansampson.net/blog/clangpass.html static void registerSkeletonPass(const PassManagerBuilder &, legacy::PassManagerBase &PM) { PM.add(new SkeletonPass()); } static RegisterStandardPasses RegisterMyPass(PassManagerBuilder::EP_ModuleOptimizerEarly, registerSkeletonPass); static Regis...
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
...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>