<div dir="ltr"><div>The identifier come from tablegen class parameter:</div><div> </div>class InstD_LD<bits<8> opVal, string DataSize, string PtrMode, string OffsetMode,<br>                   bit isSExt, bit isSub, string SubOrAdd, bit isDS, bit isTemp,<br>                   dag outs, dag ins, string asmstr, list<dag> pattern><br><div>  <br></div><div><div>  let BaseOpcodeLDST = asmstr # DataSize # isSExt # isDS # isTemp;<br><div><br></div><div>So this will concat string and bit together.</div><div>error: Initializer of 'BaseOpcodeLDST' in 'LD_byte_ptr8_ds_add_sext_ri7' could not be fully resolved: !strconcat("ldl $rsd2, $addr", !strconcat("byte", !strconcat("1", !strconcat("1", !cast<string>(0)))))<br></div><div><br></div><div>it seems like isTemp cannot be converted to string.</div><div><br></div><div>Sorry I can't reduce this more.. its very difficult to extract the problem in a self contained test case.<br></div></div><div><br></div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 11, 2021 at 6:05 PM Paul C. Anagnostopoulos via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Paul-C-Anagnostopoulos added a comment.<br>
<br>
Could you post a simple file that reproduces the problem? Without the context of BaseOpcodeSTSrcKind and all the identifiers being pasted, I cannot tell what's going on. It certainly isn't necessary to declare a field 'field' just to set it to a concatenated value.<br>
<br>
<br>
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D93969/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D93969/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D93969" rel="noreferrer" target="_blank">https://reviews.llvm.org/D93969</a><br>
<br>
</blockquote></div>