[LLVMdev] tablegen foreach question

greened at obbligato.org greened at obbligato.org
Fri Jun 14 13:58:51 PDT 2013


Akira Hatanaka <ahatanak at gmail.com> writes:

> foreach i = 0-3 in
> def D#i: Base0<i>, Base1<StrList.ls[i]>;

I can't recall if this works but you might try:

def D#i: Base0<i>, Base1<StrList.ls[#i]>;

That is, paste the value of i against an empty string.

                       -David



More information about the llvm-dev mailing list