<div dir="ltr"><div dir="ltr">Hi Sushma,<div><br></div><div>I think many people have provided really useful tips in <a href="https://reviews.llvm.org/D101819">https://reviews.llvm.org/D101819</a>.</div><div>If you still find difficulties fixing this issue, I'll suggest starting from searching the error message string in the code base and trace the code from there. It should tell you which line of code prevents GlobalISel from supporting big endian.</div><div>After you (temporarily) lift the restriction (of big endian), you can run the test program again to see if it crashes any part of GlobalISel due to big endian.</div><div>In other words the whole process is try-and-error: Using the crash/error as a hint for missing big endian features.</div><div><br></div><div>-Min</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 3, 2021 at 1:15 AM Sushma Unnibhavi via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello everyone,<br>
<br>
I am an Outreachy intern at LLVM and I will be working on implementing<br>
GlobaliSel for M68k backend. I have wired up globalisel for M68k up to<br>
the point where we can select return void. But M68k is big endian and<br>
globalisel doesn't support big endian.<br>
<br>
I have created a test case to test  my implementation:<br>
<br>
; RUN: llc -mtriple=m68k -global-isel -stop-after=irtranslator < %s |<br>
FileCheck %s<br>
<br>
; CHECK: name: f<br>
; CHECK: RTS<br>
define void @f() {<br>
  ret void<br>
}<br>
<br>
<br>
But I get an error:<br>
<br>
LLVM ERROR: unable to translate in big endian mode (in function: f)<br>
<br>
<br>
How do I convert this error into a warning?<br>
_______________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Min-Yih Hsu</div><div>Ph.D Student in ICS Department, University of California, Irvine (UCI).<br></div></div></div>