<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I am currently writing a backend for a custom ISA. However, the
      jump and calls are all in the form of a Base + Offset. I have
      tried to use a Pseudo op and expand it in the <i>expandPostRAPseudoOp</i>
      function, but that seems to be a bit too late. As I would need to
      def/use a register (I tried using regScavenger but since I also
      need do it in insert branch, and sometimes a MBB that I need to
      insert branch into has no instruction so regScavenger failed to
      iterate)</p>
    <p><br>
    </p>
    <p>Is there any suggestions as of what is the proper way to do this
      if the target effectively has only indirect branch?</p>
    <p><br>
    </p>
    <p>
    </p>
    <p><br>
    </p>
    <p>Here is the repository where I keep my code, if it helps.<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/transfer-learning/llvm-tl45/tree/tl45-llvm9-rust/llvm/lib/Target/TL45">https://github.com/transfer-learning/llvm-tl45/tree/tl45-llvm9-rust/llvm/lib/Target/TL45</a></p>
    <p><br>
    </p>
    <p>Any help would be appreciated. <br>
    </p>
  </body>
</html>