LLVM: Cleaning up instructions

My recent task is to clean up the instructions from LLVM code. One must wonder why do I need to clean up the instructions, well perhaps the definition of my recent task was not adequately explain here.

AEMB is considered as binary compatible to the Xilink Microblaze (Wikipedia link), however it is not a ‘drop in’ replacement. For a quite distinctive example, AEMB does not support floating point instructions. Yet. Fortunately, due to the compatibility of their instruction-set, I was able to start building my custom compiler for AEMB from the existing LLVM Microblaze backend.

But, as mentioned earlier, they are a lot tweaking needs to be done with the existing LLVM code. Hence, come the task to clean up the existing instructions that support floating points. I thought it was quite easy task, well, its not. The problem I was facing right at this moment is that I was unable to get rid anything related to floating points supports without damaging a lot of backend files. All of them are seems to be related to one another, more or less.

Use tablegen command as below to pull up current list of instruction-set of Microblaze LLVM backend.