Lines Matching +full:ci +full:- +full:pass
1 //===- TestPasses.cpp - "buggy" passes used to test bugpoint --------------===//
8 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
20 #include "llvm/Pass.h"
25 /// CrashOnCalls - This pass is used to test bugpoint. It intentionally
29 static char ID; // Pass ID, replacement for typeid
48 X("bugpoint-crashcalls",
49 "BugPoint Test Pass - Intentionally crash on CallInsts");
52 /// DeleteCalls - This pass is used to test bugpoint. It intentionally
56 static char ID; // Pass ID, replacement for typeid
61 if (CallInst *CI = dyn_cast<CallInst>(I)) { in runOnBasicBlock() local
62 if (!CI->use_empty()) in runOnBasicBlock()
63 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in runOnBasicBlock()
64 CI->getParent()->getInstList().erase(CI); in runOnBasicBlock()
74 Y("bugpoint-deletecalls",
75 "BugPoint Test Pass - Intentionally 'misoptimize' CallInsts");
78 /// CrashOnDeclFunc - This pass is used to test bugpoint. It intentionally
83 static char ID; // Pass ID, replacement for typeid
99 Z("bugpoint-crash-decl-funcs",
100 "BugPoint Test Pass - Intentionally crash on declared functions");
104 /// CrashOnOneCU - This pass is used to test bugpoint. It intentionally
116 if (CU_Nodes->getNumOperands() >= 2) in runOnModule()
125 A("bugpoint-crash-too-many-cus",
126 "BugPoint Test Pass - Intentionally crash on too many CUs");