<div dir="ltr">attached<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2019 at 12:43 AM hameeza ahmed <<a href="mailto:hahmed2305@gmail.com">hahmed2305@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2019 at 12:41 AM Praveen Velliengiri <<a href="mailto:praveenvelliengiri@gmail.com" target="_blank">praveenvelliengiri@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi, Could please attach your IR file? Convert .bc into .ll file and send :) </div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 26 Aug 2019 at 01:06, hameeza ahmed via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div>I have implemented a pass to count total number of instructions in LLVM 8.0. Its source code is attached here. The pass runs fine with LLVM 4.0.</div><div>But with LLVM 8.0 following error is shown;</div><div><br></div><div>$ $LLVMopt_BIN/opt -load $LLVM_SO/LLVMStatic-Info.so -one output-simple.bc<br>WARNING: You're attempting to print out a bitcode file.<br>This is inadvisable as it may cause display problems. If<br>you REALLY want to taste LLVM bitcode first-hand, you<br>can force output with the `-f' option.<br>%2+_Z5UsageiPPc        5       call:1,getelementptr:1,load:2,ret:1,<br>_Z5UsageiPPc      5       5Stack dump:<br>0.        Program arguments:opt -load /build/lib/LLVMStatic-Info.so -one output-simple.bc <br>1.    Running pass 'Function Pass Manager' on module 'output-simple.bc'.<br>2.  Running pass 'Numbers of Opcodes inside the program' on function '@_Z5UsageiPPc'<br> #0 0x0000000002636939 llvm::sys::PrintStackTrace(llvm::raw_ostream&) /llvm-8.0.0.src/lib/Support/Unix/Signals.inc:495:11<br> #1 0x0000000002636ae9 PrintStackTraceSignalHandler(void*) /llvm-8.0.0.src/lib/Support/Unix/Signals.inc:559:1<br> #2 0x0000000002634bd6 llvm::sys::RunSignalHandlers() /llvm-8.0.0.src/lib/Support/Signals.cpp:68:5<br> #3 0x000000000263718b SignalHandler(int) /llvm-8.0.0.src/lib/Support/Unix/Signals.inc:358:1<br> #4 0x00007f9153c4f890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)<br> #5 0x00007f91524b40fe (anonymous namespace)::opcodecount::runOnFunction(llvm::Function&) /llvm-8.0.0.src/lib/Transforms/Static-Info/Static-Info.cpp:30:1<br> #6 0x0000000001c64464 llvm::FPPassManager::runOnFunction(llvm::Function&) /llvm-8.0.0.src/lib/IR/LegacyPassManager.cpp:1644:23<br> #7 0x0000000001c64845 llvm::FPPassManager::runOnModule(llvm::Module&) /llvm-8.0.0.src/lib/IR/LegacyPassManager.cpp:1679:16<br> #8 0x0000000001c6507b (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /llvm-8.0.0.src/lib/IR/LegacyPassManager.cpp:1744:23<br> #9 0x0000000001c64b1b llvm::legacy::PassManagerImpl::run(llvm::Module&) /llvm-8.0.0.src/lib/IR/LegacyPassManager.cpp:1857:16<br>#10 0x0000000001c65651 llvm::legacy::PassManager::run(llvm::Module&) /llvm-8.0.0.src/lib/IR/LegacyPassManager.cpp:1888:3<br>#11 0x0000000000b54d93 main /llvm-8.0.0.src/tools/opt/opt.cpp:835:12<br>#12 0x00007f91526dbb97 __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0<br>#13 0x0000000000b0a5fa _start (/build/bin/opt+0xb0a5fa)<br>Illegal instruction (core dumped)</div><div><br></div><div>what is the reason of this error?</div><div><br></div><div>Please help.<br></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>