Hi,
The selection process being split into separate passes (will happen soon, right? ;)), we need generic opcodes to translate the LLVM IR to target independent code.
This patch adds an opcode for addition: gADD.
The patch is pretty straight forward, but I still opted for pre-commit review as I want to be sure everyone agrees on the basic naming convention: g<OPCODE>, where g stands for generic.
From this point, the idea is to add the opcode as we need them and also, just add the ones that we think are necessary. Anyhow, we need at least one to start prototyping the IRTranslator.
Cheers,
-Quentin