[llvm-dev] Adding assembly instructions to LLVM (original) (raw)

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Sun Oct 30 14:51:55 PDT 2016


On Sun, Oct 30, 2016 at 04:33:08PM -0500, soroosh khoram via llvm-dev wrote:

I've been reading the documents and the source code for several days now and I feel kind of lost right now. I was hoping someone here could point me to the right direction.

The expansion for add on x86 starts in lib/Targets/X86/X86InstrArithmethic.td, line 1197 (defm ADD) and involves somewhat complicated multiclassing to deal with various operand combinations. A better starting point is likely the "test" family, line 1223ff.

Joerg



More information about the llvm-dev mailing list