Lines Matching refs:getInstruction
199 CallInst *call = cast<CallInst>(CS.getInstruction());
379 Instruction *Inst = CS.getInstruction();
702 if (InvokeInst *Invoke = dyn_cast<InvokeInst>(CS.getInstruction())) {
721 CS.getInstruction()->replaceAllUsesWith(GCResult);
726 CS.getInstruction()->eraseFromParent();
834 assert(CS.getInstruction()->getModule() && "must be set");
845 IRBuilder<> Builder(CS.getInstruction());
881 CS.getInstruction()->getContext(), AttributeSet::FunctionIndex,
885 CallInst *ToReplace = cast<CallInst>(CS.getInstruction());
906 InvokeInst *ToReplace = cast<InvokeInst>(CS.getInstruction());
942 if (!CS.getType()->isVoidTy() && !CS.getInstruction()->use_empty()) {
944 CS.getInstruction()->hasName() ? CS.getInstruction()->getName() : "";