Home | History | Annotate | Download | only in Utils

Lines Matching refs:SI

108   if (SwitchInst *SI = dyn_cast<SwitchInst>(T)) {
111 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition());
112 BasicBlock *TheOnlyDest = SI->getDefaultDest();
116 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end();
127 MDNode* MD = SI->getMetadata(LLVMContext::MD_prof);
129 if (MD && MD->getNumOperands() == 2 + SI->getNumCases()) {
144 SI->setMetadata(LLVMContext::MD_prof,
149 DefaultDest->removePredecessor(SI->getParent());
150 SI->removeCase(i);
164 TheOnlyDest = SI->getDefaultDest();
172 BasicBlock *BB = SI->getParent();
175 for (unsigned i = 0, e = SI->getNumSuccessors(); i != e; ++i) {
177 BasicBlock *Succ = SI->getSuccessor(i);
185 Value *Cond = SI->getCondition();
186 SI->eraseFromParent();
192 if (SI->getNumCases() == 1) {
195 SwitchInst::CaseIt FirstCase = SI->case_begin();
199 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(),
206 SI->getDefaultDest());
207 MDNode* MD = SI->getMetadata(LLVMContext::MD_prof);
212 // The TrueWeight should be the weight for the single case of SI.
220 SI->eraseFromParent();
838 StoreInst *SI, DIBuilder &Builder) {
847 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(SI->getOperand(0)))
849 if (SExtInst *SExt = dyn_cast<SExtInst>(SI->getOperand(0)))
852 DbgVal = Builder.insertDbgValueIntrinsic(ExtendedArg, 0, DIVar, SI);
854 DbgVal = Builder.insertDbgValueIntrinsic(SI->getOperand(0), 0, DIVar, SI);
857 DebugLoc SIDL = SI->getDebugLoc();
908 if (StoreInst *SI = dyn_cast<StoreInst>(*UI))
909 ConvertDebugDeclareToDebugValue(DDI, SI, DIB);
975 for (succ_iterator SI = succ_begin(BB), SE = succ_end(BB); SI != SE; ++SI)
976 if (Reachable.insert(*SI))
977 Worklist.push_back(*SI);
990 for (succ_iterator SI = succ_begin(I), SE = succ_end(I); SI != SE; ++SI)
991 if (Reachable.count(*SI))
992 (*SI)->removePredecessor(I);