11#ifndef LLVM_TRANSFORMS_CFGUARD_H
12#define LLVM_TRANSFORMS_CFGUARD_H
31 Mechanism GuardMechanism;
This header defines various interfaces for pass management in LLVM.
FunctionAnalysisManager FAM
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM)
CFGuardPass(Mechanism M=Mechanism::Check)
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
FunctionPass class - This class is used to implement most global optimizations.
A set of analyses that are preserved following a run of a transformation pass.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI bool isCFGuardCall(const CallBase *CB)
LLVM_ABI bool isCFGuardFunction(const GlobalValue *GV)
LLVM_ABI FunctionPass * createCFGuardDispatchPass()
Insert Control FLow Guard dispatches on indirect function calls.
LLVM_ABI FunctionPass * createCFGuardCheckPass()
Insert Control FLow Guard checks on indirect function calls.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
A CRTP mix-in to automatically provide informational APIs needed for passes.