similar to: [LLVMdev] profiling basic block frequency in LLVM3.1

Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] profiling basic block frequency in LLVM3.1"

2012 Nov 18
1
[LLVMdev] Basic Block Frequency counting in LLVM 2.9
Dear All, I'm using LLVM2.9 for profiling basic block frequency. I'm using following commands. rdpatel55 at ubuntu:~$ llvm-gcc -emit-llvm -O0 -c -o adpcm.bc adpcm.c rdpatel55 at ubuntu:~$ llvm-gcc -emit-llvm -O0 -c -o rawcaudio.bc rawcaudio.c rdpatel55 at ubuntu:~$ llvm-link -o main.bc rawcaudio.bc adpcm.bc rdpatel55 at ubuntu:~$ opt -q -f -insert-edge-profiling -o main.inst main.bc
2012 Dec 10
1
[LLVMdev] install llvm on sparc/solaris
Hello, Is there any package to install llvm 3.1 on solaris?  Standard installation by compiling the sources does not run smoothly. I found that similar issues have been addressed before, but without replies: http://clang-developers.42468.n3.nabble.com/Using-Clang-LLVM-on-sparc-solaris-td2807126.html I tried to install llvm 3.1 on a system with Sun Microsystems Inc.   SunOS 5.10      Generic
2013 Jan 08
2
[LLVMdev] SVN GIT version corresponding to release
Hi All, I was checking for GIT or SVN versions corresponding to llvm3.1 release by checking svn and git logs, but failed to find the exact match. I checked with r156747, which is the last version it shows in      http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_31/ but when I 'diff' this with the 'downloaded llvm3.1 release'(http://llvm.org/releases/download.html#3.1), then I
2013 Jan 08
0
[LLVMdev] SVN GIT version corresponding to release
Won't it be http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_31/final/ On Tue, Jan 8, 2013 at 7:46 PM, Pankaj Gode <godepankaj at yahoo.com> wrote: > Hi All, > > I was checking for GIT or SVN versions corresponding to llvm3.1 release by > checking svn and git logs, but failed to find the exact match. > > I checked with r156747, which is the last version it shows
2013 Jan 03
0
[LLVMdev] Opt error
Hi Ahmad, On 03/01/13 16:26, Hassan, Ahmad wrote: > Hi Team, > > I am migrating one of the Pass that was written for llvm2.2 or older to llvm3.1. > The code snippet looks like the following: > > Constant *func; > > void add( Module *M) { > > func = M->getOrInsertFunction("func", Type::getVoidTy(M->getContext()), NULL); this function has no
2013 Jan 03
2
[LLVMdev] Opt error
Hi Team, I am migrating one of the Pass that was written for llvm2.2 or older to llvm3.1. The code snippet looks like the following: Constant *func; void add( Module *M) { func = M->getOrInsertFunction("func", Type::getVoidTy(M->getContext()), NULL); } virtual bool runOnModule(Module &M) { add (&M); for(Module::iterator F = M.begin(), E = M.end(); F !=
2012 Jun 14
0
[LLVMdev] Installation Error
Hi All, I am installing llvm 3.1 and clang from the source on my Mac os x 10.5.8. I got this error in the middle of the compilation process: llvm[4]: Compiling InitHeaderSearch.cpp for Release+Asserts build /Users/georgebaah/llvm3.1/llvm-3.1.src/tools/clang/lib/Frontend/InitHeaderSearch.cpp:29:10: fatal error: 'clang/Config/config.h' file not found #include
2013 Jan 08
1
[LLVMdev] SVN GIT version corresponding to release
I always though the /tags/RELEASE_xx/final branch would hold the final, released tarball contents, but this does not appear to be the case, at least not for 3.1. I can confirm that diffing /tags/RELEASE_31/final and the 3.1 tarball shows some non-trivial changes. The 3.2 release seems to be okay though; the diff only shows changes in the last-modified timestamps in the HTML docs. Though I just
2012 Aug 20
5
[LLVMdev] DomTreeNode
Hi Guys, I am using the Postdom pass and I would like to get the root of the tree. However, everytime I try to get the root, I get a segfault. I don't know why the environment can't find DominatorTreeBase. Below is the code that generates the Segfault. In my .h file I include Dominators.h PDT.getRootNode(); //PDT is a reference to a PostDominatorTree dyld: lazy symbol binding
2012 Aug 21
0
[LLVMdev] Fwd: DomTreeNode
That is what I don't understand. This symbol is defined in Dominators.h, which I include in my file. I don't understand why I am getting this error. Here is my opt command, "opt -load LLVMMyDomPass.dylib -mdp < test.bc > test.d.bc" George On Tue, Aug 21, 2012 at 3:25 AM, Duncan Sands <baldrick at free.fr> wrote: > Hi George, > > ... > > dyld: lazy
2013 Jan 04
1
[LLVMdev] LLVM Pass Crashes
Hi Team, I am writing an LLVM pass that compiles fine and opt instrumentation goes fine as well. But when I run the instrumented C-program then I get the following stack dump. My question is, how can I debug the problem in this scenario please? // LLVM pass compiles fine and the following OPT instrumentation goes fine for basic malloc.bc program as well. Malloc.bc runs fine without any
2012 Jun 04
2
[LLVMdev] llc unhandled attribute
Hi, I was trying to do a source to source transformation in llvm from c++11 more basic c++ (to transform away auto etc.) using llvm3.1. I generate llvm bitcode using "clang++ -emit-llvm ...", but executing llc -march=cpp throws /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: void {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const
2013 Oct 29
1
[LLVMdev] undefined symbol: _ZTIN4llvm10ModulePassE
I have a MdoulePass which compiles and runs fine with LLVM3.1. Then I wanted to upgrade to LLVM3.3, it compiles and links fine, but when you run it by "opt -load /path/to/.so", it shows this message: undefined symbol: _ZTIN4llvm10ModulePassE which means undefined symbol: llvm::ModulePass after demangling. Googled for a while and still no clue. Anybody have an idea? Thanks, Welson
2012 Aug 06
2
[LLVMdev] Code-emission problem
Hi Everyone, When I compile a program with clang with debug symbols enabled and I try to run it using the JIT (lli) I get the following error message. I am running on Lion (10.7.4). Thanks. George >> pseudo instructions should be removed before code emission UNREACHABLE executed at /Users/JD/Software/llvm3.1/llvm-3.1.src/lib/Target/X86/X86CodeEmitter.cpp:736! 0 lli
2012 Jun 04
0
[LLVMdev] llc unhandled attribute
>> > I was trying to do a source to source transformation in llvm from c++11 >> > more >> > basic c++ (to transform away auto etc.) using llvm3.1. >> > I generate llvm bitcode using "clang++ -emit-llvm ...", but executing >> > llc >> > -march=cpp throws >> > /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493:
2012 Aug 02
0
[LLVMdev] Unhandled instruction encoding format!
I am doing some tests running llvm on an ARM board. I'm getting an error message saying: Unhandled instruction encoding format! My steps below: Code //------------------------------------------------------------ #include <stdio.h> int main() { int a = 1; int b = 3; int c = a * b; printf("c=%d\n", c); return 0; } run on device
2012 Oct 22
0
[LLVMdev] Can I debug llvm source code by iMac Xcode?
Hi, I can build llvm3.1 source code by CMAKE first, which generate LLVM.xcodeproj. And then open it by iMac Xcode and build llvm project execution files, clang, llc, llvm-as, ... . But I don't know how to debug it on Xcode IDE since the menu "Product -- Test" is grey color (not enabled). I am writing a llvm backend for fun and used to debug it on linux by gdb -args llc ... . I
2013 Feb 19
0
[LLVMdev] ARM assembler's syntax in clang
Hi,all, I find clang's integrated-as changes fast, My code which can't be compiled by llvm3.1 tool-chain can be compiled by llvm3.2 tool-chain now. However, there are still existing link-errors. My develop environment is: Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.2.1 Thread model: posix the code is attached, I get this error (there is no
2013 Dec 20
3
[LLVMdev] Making LLVM safer in out-of-memory situations
>> To increase stability for us we have already moved the main part of the compilation to a separate process that may crash in case of an error without doing much harm, i.e. does not crash the database. > Were there any interesting challenges that arose during this process? > This seems to be an approach many folks are either taking or > considering. If there are things we could
2013 Apr 26
0
[LLVMdev] 'LowerDbgDeclare' in Instruction combining affects scope information
Hi All,   For the test snippet below, int func(int dd, int ds, int *rm) {   int d_sn = 0;   int dv_sn = 0;   unsigned int d, r;   if (dd < 0) { d_sn = 1; dd = -dd; };   if (ds < 0) { dv_sn = 1; ds = -ds ; };     d = func1( dd, ds, &r);     if (d_sn && dv_sn){ r = -r;}   else if (d_sn) { d = -d; r = -r; }   else if (dv_sn) { d = -d; };     if (rm) { *rm = (signed int)r; }