Lines Matching defs:KCFI
1 //===---- KCFI.cpp - Implements Kernel Control-Flow Integrity (KCFI) ------===//
9 // This pass implements Kernel Control-Flow Integrity (KCFI) indirect call
30 #define KCFI_PASS_NAME "Insert KCFI indirect call checks"
35 class KCFI : public MachineFunctionPass {
39 KCFI() : MachineFunctionPass(ID) {}
51 /// Emits a KCFI check before an indirect call.
57 char KCFI::ID = 0;
60 INITIALIZE_PASS(KCFI, DEBUG_TYPE, KCFI_PASS_NAME, false, false)
62 FunctionPass *llvm::createKCFIPass() { return new KCFI(); }
64 bool KCFI::emitCheck(MachineBasicBlock &MBB,
72 report_fatal_error("Cannot emit a KCFI check for a bundled call");
74 // Emit a KCFI check for the call instruction at MBBI. The implementation
91 bool KCFI::runOnMachineFunction(MachineFunction &MF) {