<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 22, 2016, at 9:57 PM, Varun Patil via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Hi Developer,<br class=""><br class=""></div>I have wrote simple program called test.c as follows.<br class=""><b class="">int a, b;<br class="">int main() {<br class="">a=10;<br class="">b=10;<br class="">return a+b;<br class="">}</b><br class=""></div><br class="">Compiled with clang command to produce test.ll file which is attached below,<br class=""><b class="">$clang -cc1 test.c -emit-llvm</b><br clear="all" class=""><div class=""><div class=""><div class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""> Now If I want to run with my own target for selection with <b class="">llc</b> with command as follow getting error,<br class=""><b class="">COMMAND:<br class="">$ ./llc -view-dag-combine1-dags -march=toy -relocation-model=pic -filetype=asm ~/test.ll <br class="">ERROR:<br class="">./llc: /home/varun/test.ll:14:18: error: expected comma after load's type<br class=""> %2 = load i32* @a, align 4<br class=""></b></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br class=""></div><div>The clang you’re using is not the same version as the llc you built.</div><div>It seems quite older.</div><div>You’ll be more successful with:</div><div><br class=""></div><div>clang -c -emit-llvm test.c -o test.bc</div><div><br class=""></div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div></div></body></html>