[llvm-dev] increment in tablegen
hameeza ahmed via llvm-dev
llvm-dev at lists.llvm.org
Sun Apr 15 12:23:33 PDT 2018
i have loop index I. I want to increment it by 1. How to do this in
registerinfo.td. I m trying following but getting error.
let SubRegIndices = [sub_32bit, sub_32bit_hi], CoveredBySubRegs = 1 in {
foreach I = 0-255 in
{ m=add(I,1);
def R_#J#_REG64b_#I : R_P<"R_"#J#"_R64b_"#I, !shl(I,2),
[!cast<R_P>("R_"#J#"_REG32b_"#I), !cast<R_PIM>("R_"#J#"_REG32b_"#m)]>;
}
}
please help. how to increment I (add+1 in I).
Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180416/dcb1a196/attachment.html>
More information about the llvm-dev
mailing list