HomePhabricator

[X86] Add inline assembly load hardening mitigation for Load Value Injection…

Authored by craig.topper on May 11 2020, 1:28 PM.

Description

[X86] Add inline assembly load hardening mitigation for Load Value Injection (LVI)

Added code to X86AsmParser::emitInstruction() to add an LFENCE after each instruction that may load, and emit a warning if it encounters an instruction that may be vulnerable, but cannot be automatically mitigated.

Differential Revision: https://reviews.llvm.org/D76158