I'm trying to write a back-end for an ISA that does not have a multiply instruction, so multiplies need to be done with a loop of adds.
I am following this guide.
I tried simply not defining any multiplies in the InstrInfo.td files, but this just causes it to fail when it reaches it. It's a completely 1:1 translation, so is there a way that I can just tell the compiler to replace any mul instruction with Multiply() fucntion call if I have it written somewhere?