[LLVMdev] A question about instruction operands.
sanjiv gupta
sanjiv.gupta at microchip.com
Wed Sep 24 10:53:04 PDT 2008
On Wed, 2008-09-24 at 10:26 -0700, Evan Cheng wrote:
> > How do I communicate if my CopyRegToReg instruction clobbers a
> > register
> > of another register class? Is it through let Defs = [REG] { ... }
> > while
> > defining the instr pattern?
>
> That won't work. You don't know what physical registers are clobbered
> until you know the register assignments, right? One possibility is to
> add implicit defs when you create these instructions.
>
In our case that isn't a problem because we have only one register.
> Evan
>
> >
> >
> > - Sanjiv
> >
> >> _______________________________________________
> >> LLVM Developers mailing list
> >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> 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