One minute
Creating an LLVM MachineFunctionPass for a custom MIPS processor
When working with a custom MIPS processor, in this case one that was written as part of a university lecture, one of the challenges I faced is having a very limited instruction set.
In particular the following instructions are not supported, but can be manually “created” from other instructions:
SLTI(set less than immediate) - can be easily built from anADDIUand aSLTBNEZ/BNE(branch not equals zero / branch not equal) - a bit more tricky, but it is possible to use twoBEQs (more about that later)SLL(shift left logical) - can be hacked together with repeatingADDUs
103 Words
2023-01-21 16:26