search for: irprintingpasses

Displaying 6 results from an estimated 6 matches for "irprintingpasses".

2020 Jul 20
2
Getting LLVM Instructions
Replicating what clang -emit-llvm does sound like the better way to do it. I was looking under IRPrintingPasses but couldn't find anything specific that would allow me to print out say a std::vector<llvm:: Instruction*>. What do you think would be the easiest way to do this? Can I do some hack where I can get away without writing my own llvm pass? I'm not even sure what the right question to a...
2020 Jul 20
2
Getting LLVM Instructions
...uccinctly than LLVM's textual > representation. > > On Mon, Jul 20, 2020 at 12:00 PM Yugesh Kothari <kothariyugesh at gmail.com> > wrote: > > > > Replicating what clang -emit-llvm does sound like the better way to do > it. > > > > I was looking under IRPrintingPasses but couldn't find anything specific > that would allow me to print out say a std::vector<llvm:: Instruction*>. > > > > What do you think would be the easiest way to do this? Can I do some > hack where I can get away without writing my own llvm pass? I'm not even >...
2020 Jul 20
2
Getting LLVM Instructions
Hi, I am working on a project where I need to get a list of llvm Functions that were called during an execution (for futher analysis). To do this I have maintained a vector<llvm:: Function*> which I print out to a .ll file at the end. However this takes a lot of time since the number of call Instructions is HUGE. I feel that the bottleneck is the conversion from llvm:: Function to
2016 Feb 16
2
LLVM IR to C++
Hi, I want to convert LLVM bitcode files to cpp. I use these commands: 1. clang -c -emit-llvm -fopenmp=libiomp5 oh2.c -o oh2.bc2. llc -march=cpp oh2.bc -o oh2.cpp3. g++ -fno-rtti -O0 -g `$HOME/llvmbuild/bin/llvm-config --cxxflags` oh2.cpp `$HOME/llvmbuild/bin/llvm-config --ldflags --libs --system-libs` -o oh2c After the 3rd command, I get a lot of compilation errors. Is it possible that llc
2017 Aug 22
5
[RFC] mir-canon: A new tool for canonicalizing MIR for cleaner diffing.
Patch for review. On Mon, Aug 21, 2017 at 11:45 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com> wrote: > Ping. > > Still working on preparing code for review. Will have a patch for review > ready in the coming days. > > PL > > On Tue, Aug 15, 2017 at 12:06 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com> > wrote: > >> Hi, >> >> >>
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...mpiling Function.cpp for Release+Asserts build llvm[1]: Compiling GCOV.cpp for Release+Asserts build llvm[1]: Compiling GVMaterializer.cpp for Release+Asserts build llvm[1]: Compiling Globals.cpp for Release+Asserts build llvm[1]: Compiling IRBuilder.cpp for Release+Asserts build llvm[1]: Compiling IRPrintingPasses.cpp for Release+Asserts build llvm[1]: Compiling InlineAsm.cpp for Release+Asserts build llvm[1]: Compiling Instruction.cpp for Release+Asserts build llvm[1]: Compiling Instructions.cpp for Release+Asserts build llvm[1]: Compiling IntrinsicInst.cpp for Release+Asserts build llvm[1]: Compiling LLVMC...