<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello,</div><div>I am not sure how to determine the operand index in SDTypeConstraint. <br></div><div>For example, there a line of code in TargetSelectionDAG.td:</div><div><br></div><div>def SDTIntBinOp : SDTypeProfile<1, 2, [     // add, and, or, xor, udiv, etc.<br>  SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisInt<0><br>]>;</div><div><br></div><div>The number of results is 1. The number of operands is 2. How could determine the indexes in SDTCisSameAS and SDTCisInt.</div><div>Is it that we count the results first and count the operands second starting with the end index of results?</div><div><br></div><div>I'm transplanting Cpu0 backend from llvm 3.9 to llvm 9.0. I find there is a different file(TargetLoweringObjectFileImpl.cpp) needing to be changed.</div><div>For example, for Sparc, line 208 to line 222:</div><div><br></div><div>case Triple::sparcel:<br>  case Triple::sparc:<br>    if (isPositionIndependent()) {<br>      LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;<br>      PersonalityEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel |<br>        dwarf::DW_EH_PE_sdata4;<br>      TTypeEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel |<br>        dwarf::DW_EH_PE_sdata4;<br>    } else {<br>      LSDAEncoding = dwarf::DW_EH_PE_absptr;<br>      PersonalityEncoding = dwarf::DW_EH_PE_absptr;<br>      TTypeEncoding = dwarf::DW_EH_PE_absptr;<br>    }<br>    CallSiteEncoding = dwarf::DW_EH_PE_udata4;<br>    break;</div><div>How could I understand these codes? I know little about dwarf. what materials do you suggest me to read?<br></div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span>