Displaying 1 result from an estimated 1 matches for "arg_attr".
Did you mean:
arg_arr
2019 Jul 23
2
[RFC] Optimization Remark for derived function / argument attributes
...ollowing might not be the final interface, but one could
imagine something like the following:
$ ./clang foobar.c -g -Rannotations -O3
foobar.c:2:1: remark: derived following attributes for function f:
fn_attr("norecurse") fn_attr("nounwind") fn_attr("readonly") arg_attr(0,
"nocapture") arg_attr(0, "readonly") [-Rannotations]
double f(double* a) {
foobar.c:
double f(double* a) {
return a[0];
}
A work in progress patch implementing such an optimization remark is
available here: https://reviews.llvm.org/D65169
Cheers,
Billy...