Displaying 1 result from an estimated 1 matches for "opt_no_nop_optimise".
2015 Mar 19
2
[LLVMdev] Clang flag to either print/omit nop instruction in llvm backend
I have created custom Clang flag -no_nop_optimise which can be passes with
clang on command line.
I am planning to implement someting like:
when -no_nop_optimise flag is passed on the command line do not emit a nop
instruction.
i.e. inside SelLowering class
if ( !OPT_no_nop_optimise)
{
BuildMI(*BB, MI, DL, TII->get(Mips::NOP));
}
Any clues on how can I pass the flag to the LLVM backend from clang?
Thanks,
Ambuj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150319/ad9ed9b8/at...