<div dir="ltr"><div><div><div><div>Dear LLVMers,<br><br></div>    I am trying to measure the performance overhead (if any) of the canaries that clang inserts in the code. I would like to do this automatically, using the LLVM test infra-structure. However, I am not sure if that is possible. Could someone tell me which flags in the TEST.nightly.Makefile script, (or any other script) I must change to have this done? Usually I insert canaries with the following command line:<br>

<br></div>$> clang -S -fstack-protector hello.c<br><br></div>But I would like to know which part of LLVM calls the pass that inserts the canaries. It seems it is llc, as the pass that inserts the canaries is in /lib/CodeGen/StackProtector.cpp. Yet, I cannot see 'fstack-protector' in the llc --help list, although I can see 'stack-protector-buffer-size' in llc --help.<br>

<br></div>Sincerely, <br clear="all"><div><div><div><div><div><br>-- <br>Izabela Maffra.<br><br><i>Ciência da Computação<span></span><br>Universidade Federal de Minas Gerais<br>(31) 8615-3077</i><br><br>“Don't count the days, make the days count.”
   ― Muhammad Ali<br>
</div></div></div></div></div></div>