<div dir="ltr">Hello Everyone<br><div>   I am trying to add an custom Intrinsic to the RISCV backend, which operates on a <i>simm12 </i>operand. I figured the steps to add it to <i>lib/llvm/Target/RISCV/RISCVInstrInfo.td </i>& <i>lib/llvm/Target/RISCV/RISCVInstrFormats.td. </i>But I am not sure how to declare the intrinsic in <i>llvm/include/IR/IntrinsicsRISCV.td </i>. Specifically, since I require a <i>imm12 </i>operand, how should I specify that in intrinsic declaration? Is there a corresponding <i>llvm_i12_ty </i>which I can specify and make use of <i>ImmArg<> </i>to specify that the operand is an immediate, or should I just use the nearest size type, i.e. <i>llvm_i16_ty </i>and make use of the <i>ImmArg<></i> ?</div><div><br></div><div>Please guide me on this</div><div><br></div><div>Thanking you </div><div>Sai</div></div>