Displaying 1 result from an estimated 1 matches for "int_blackbox".
2015 Nov 02
8
[RFC] A new intrinsic, `llvm.blackbox`, to explicitly prevent constprop, die, etc optimizations
...ations, before and during
codegen. Specifically, this intrinsic should prevent all optimizations
which operate by assuming properties of the value passed to the intrinsic.
Once the last optimization pass (of any kind) is finished, all calls can be
RAUW its argument.
Table-gen def:
```tablegen
def int_blackbox : Intrinsic<[llvm_any_ty], [LLVMMatchType<0>]>;
```
Thus, using the previous example, `%3` would become:
```llvm
%3 = call i32 @llvm.blackbox.i32(i32 2)
```
#
Thoughts and suggestions welcome.
Thanks,
Richard Diamond
-------------- next part --------------
An HTML attachment was...