Displaying 1 result from an estimated 1 matches for "15716cb9".
2017 Jun 21
2
How to prevent optimizing away a call + its arguments
Hi llvm-dev,
I have a C function:
__attribute__((__visibility__("default")))
__attribute__((used))
__attribute__((noinline))
void please_do_not_optimize_me_away(int arg1, void *arg2) {
asm volatile("" :::);
}
(the purpose is that this function will be used dynamically at runtime, perhaps by interposing the function, or via the debugger)
I really thought this will not get