search for: kcpsm6

Displaying 2 results from an estimated 2 matches for "kcpsm6".

2012 Oct 15
2
[LLVMdev] Alternate instruction encoding for subtargets
Hello, I have a compiler in LLVM 2.9 for the KCPM3 processor. I'd like to create a subtarget for the new cpu version called KCPSM6. Besides a couple of new instructions which are not important at the moment, the KCPSM6 cpu has different instruction opcodes. Semantically the instructions are the same, hence I'd like to keep all the lowering and pattern matching stuff unmodified For example, the ADD sX, sY instruction in KC...
2012 Nov 02
0
[LLVMdev] Alternate instruction encoding for subtargets - SOLVED
...f the field in Instruction that holds the encoded bytes. In my target's td files I simply specify both encodings at the same time. This is my target's Instruction base class. It defines the traditional field Inst and also an additional field Inst6 that holds the alternate encodings for the KCPSM6 sub-target. /// base class - a picoblaze instruction class InstPB<Format form, dag outs, dag ins, string asmstr, list<dag> pattern> : Instruction { field bits<18> Inst; // for KCPSM3 field bits<18> Inst6; // for KCPSM6 Format Form = form; bits<4&...