[llvm-dev] zero_reg

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 22 01:19:06 PDT 2015


> On Sep 22, 2015, at 1:12 AM, Sky Flyer via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi all,
> 
> what is exactly "zero_reg"?
> 
> from ARMInstFromats.td:
> 
> def pred : PredicateOperand<OtherVT, (ops i32imm, i32imm), (ops (i32 14), (i32 zero_reg))> {...}
> 
> I thought zero_reg can be replace by a random name like (alu_stat_reg for alu state register) but when I compiled it, I figure out that zero_reg is a predefined variable.
> 
> Can someone please give me more information about zero_reg and if possible more about PredicateOperand operands.
> 
> Cheers,
> ES
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


This corresponds to NoRegister (this could use a rename). It allows you to emit an operand an an instruction pattern with an invalid register value which presumably something else expects to fill in later.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150922/9c2fffef/attachment.html>


More information about the llvm-dev mailing list