This pass replaces each indirect call/jump with a direct call to a thunk that looks like:
lfence jmpq *%r11
This ensures that if the value in register %r11 was loaded from memory, then
the value in %r11 is (architecturally) correct prior to the jump.
Also adds a new target feature to X86: +lvi-cfi
("cfi" meaning control-flow integrity)
The feature can be added via clang CLI using -mlvi-cfi.
Please add HelpText to these. It seems we've been bad about this and the lack of HelpText prevents the options from showing up in clang -help