• Home
  • Raw
  • Download

Lines Matching +full:llvm +full:- +full:11

2    american fuzzy lop++ - LLVM Injection instrumentation
3 --------------------------------------------------
5 Written by Marc Heuse <mh@mh-sec.de>
8 Copyright 2019-2024 AFLplusplus Project. All rights reserved.
14 https://www.apache.org/licenses/LICENSE-2.0
26 #include "llvm/Config/llvm-config.h"
28 #include "llvm/ADT/Statistic.h"
29 #include "llvm/IR/IRBuilder.h"
30 #if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
31 #include "llvm/Passes/PassPlugin.h"
32 #include "llvm/Passes/PassBuilder.h"
33 #include "llvm/IR/PassManager.h"
35 #include "llvm/IR/LegacyPassManager.h"
36 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
38 #include "llvm/IR/Module.h"
39 #include "llvm/Support/Debug.h"
40 #include "llvm/Support/raw_ostream.h"
42 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
44 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
45 #include "llvm/Pass.h"
46 #include "llvm/Analysis/ValueTracking.h"
48 #include "llvm/IR/IRBuilder.h"
51 #include "llvm/IR/Verifier.h"
52 #include "llvm/IR/DebugInfo.h"
54 #include "llvm/Analysis/Verifier.h"
55 #include "llvm/DebugInfo.h"
60 #include "afl-llvm-common.h"
62 using namespace llvm;
66 #if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
85 #if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
114 #if LLVM_MAJOR >= 11
115 extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK
220 Function *Callee = callInst->getCalledFunction();
222 if (callInst->getCallingConv() != llvm::CallingConv::C) continue;
224 std::string FuncName = Callee->getName().str();
232 // you will need to add a function to afl-compiler-rt.c.o and
282 IRBuilder<> IRB(callInst->getParent());
285 Value *parameter = callInst->getArgOperand(param);
306 #if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
316 printf("Running injection-pass by Marc Heuse (mh@mh-sec.de)\n");
332 #if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
337 #if LLVM_VERSION_MAJOR >= 11 /* use new pass manager */
345 #if LLVM_VERSION_MAJOR < 11 /* use old pass manager */
360 #if LLVM_VERSION_MAJOR >= 11