search for: gpr13

Displaying 3 results from an estimated 3 matches for "gpr13".

2010 Jan 04
5
[LLVMdev] How to bind a register variable with a given general purpose register?
Hi everyone, There are 16 GPRs in my RISC, but in fact GPR13 is read-only and connected to output of an A/D converter. It would be very convenient if i could bind a register variable with GPR13. Because i am a newbie i don't know how my llvm backend can support that. I plan to implement it as below. A. first declare a global variable in c-code i...
2010 Jan 04
0
[LLVMdev] 答复: [LLVMdev] How to bind a register variable with a given general purpose register?
hi zhu, i am not sure if your c frontend support "int ADC asm("GPR13");" i think you could: 1. add a attribute "GPR13"(or a more meaningful name like "adcreg") and the corresponding handler, so you code "int ADC asm("GPR13");" became "int ADC __attribute__((GPR13));" 2. add a intrinsic functions like &quot...
2010 Jan 04
0
[LLVMdev] 答复: 答复: [LLVMdev] How to bind a register variable with a given general purpose register?
...b at gmail.com] > 发送时间: 2010年1月4日 3:29 > 收件人: Demon(Xiangyang) Zhu 朱向阳 > 抄送: llvmdev at cs.uiuc.edu > 主题: Re: 答复: [LLVMdev] How to bind a register variable with a given general purpose register? > > hi zhu, > > i am not sure if your c frontend support "int ADC asm("GPR13");" > i think you could: > > 1. add a attribute "GPR13"(or a more meaningful name like "adcreg") and > the corresponding handler, so you code "int ADC asm("GPR13");" became > "int ADC __attribute__((GPR13));" > 2. add a i...