[LLVMdev] Instructions on a target with no general purpose registers

David Chisnall David.Chisnall at cl.cam.ac.uk
Sat Jul 5 11:07:06 PDT 2014


Hi Edwin,

I'm not sure how actively he follows the lists, but you should talk to Steve Montgomery.  He has some experience in porting LLVM to 8-bit microcontrollers (and gave a talk about it at the Cambridge LLVM Day in 2012).

David


On 5 Jul 2014, at 14:59, Edwin Amsler <edwinguy at gmail.com> wrote:

> I've mentioned my sneaky plans to target the MOS6502 here before.
> 
> The big issue I think is that a lot of instructions don't really have a choice for output register. It all just goes into the accumulator, X index, or Y index based on the specific instruction.
> 
> So, my question is, when I'm defining my ins, outs and registers for these instructions, is it going to be a problem that different instructions outputs are defined by the function that is called? And I guess, how do I tell LLVM it can't pick any old register for a given instruction?
> 
> Thanks,
> 
> Edwin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list