enum WPDCheckMode
Description
Mechanism to add runtime checking of devirtualization decisions, optionally trapping or falling back to indirect call on any that are not correct. Trapping mode is useful for debugging undefined behavior leading to failures with WPD. Fallback mode is useful for ensuring safety when whole program visibility may be compromised.
Declared at: llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp:180
Enumerators
Name | Value | Comment |
---|---|---|
None | 0 | |
Trap | 1 | |
Fallback | 2 |