|
LLVM
10.0.0
|
This file contains a machine function pass to insert a symbol after each call to _setjmp and store this in the MachineFunction's LongjmpTargets vector. More...
#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/Passes.h"#include "llvm/InitializePasses.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "cfguard-longjmp" |
Functions | |
| STATISTIC (CFGuardLongjmpTargets, "Number of Control Flow Guard longjmp targets") | |
| INITIALIZE_PASS (CFGuardLongjmp, "CFGuardLongjmp", "Insert symbols at valid longjmp targets for /guard:cf", false, false) FunctionPass *llvm | |
This file contains a machine function pass to insert a symbol after each call to _setjmp and store this in the MachineFunction's LongjmpTargets vector.
This will be used to emit the table of valid longjmp targets used by Control Flow Guard.
Definition in file CFGuardLongjmp.cpp.
| #define DEBUG_TYPE "cfguard-longjmp" |
Definition at line 28 of file CFGuardLongjmp.cpp.
| INITIALIZE_PASS | ( | CFGuardLongjmp | , |
| "CFGuardLongjmp" | , | ||
| "Insert symbols at valid longjmp targets for /guard:cf" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 56 of file CFGuardLongjmp.cpp.
References llvm::Function::callsFunctionThatReturnsTwice(), llvm::dyn_cast(), llvm::SmallVectorBase::empty(), F(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::getMMI(), llvm::MachineModuleInfo::getModule(), llvm::Module::getModuleFlag(), MI, llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::AMDGPU::HSAMD::Kernel::Key::SymbolName.
| STATISTIC | ( | CFGuardLongjmpTargets | , |
| "Number of Control Flow Guard longjmp targets" | |||
| ) |
1.8.13