<div dir="ltr"><div><div><div></div>I have created custom Clang flag -no_nop_optimise which can be passes with clang on command line.<br><br></div><div>I am planning to implement someting like:<br></div><div>when -no_nop_optimise flag is passed on the command line do not emit a nop instruction.<br><br></div><div>i.e. inside SelLowering class<br></div><div>if ( !OPT_no_nop_optimise)</div><div>{<br>      BuildMI(*BB, MI, DL, TII->get(Mips::NOP));<br>}<br></div><div><br></div><div>Any clues on how can I pass the flag to the LLVM backend from clang?<br></div><div><br></div>Thanks,<br></div>Ambuj<br></div>