reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
3659 if (AnnotationWriter) AnnotationWriter->emitInstructionAnnot(&I, Out); 3665 if (I.hasName()) { 3666 PrintLLVMName(Out, &I); 3668 } else if (!I.getType()->isVoidTy()) { 3670 int SlotNum = Machine.getLocalSlot(&I); 3677 if (const CallInst *CI = dyn_cast<CallInst>(&I)) { 3687 Out << I.getOpcodeName(); 3690 if ((isa<LoadInst>(I) && cast<LoadInst>(I).isAtomic()) || 3690 if ((isa<LoadInst>(I) && cast<LoadInst>(I).isAtomic()) || 3691 (isa<StoreInst>(I) && cast<StoreInst>(I).isAtomic())) 3691 (isa<StoreInst>(I) && cast<StoreInst>(I).isAtomic())) 3694 if (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isWeak()) 3694 if (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isWeak()) 3698 if ((isa<LoadInst>(I) && cast<LoadInst>(I).isVolatile()) || 3698 if ((isa<LoadInst>(I) && cast<LoadInst>(I).isVolatile()) || 3699 (isa<StoreInst>(I) && cast<StoreInst>(I).isVolatile()) || 3699 (isa<StoreInst>(I) && cast<StoreInst>(I).isVolatile()) || 3700 (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isVolatile()) || 3700 (isa<AtomicCmpXchgInst>(I) && cast<AtomicCmpXchgInst>(I).isVolatile()) || 3701 (isa<AtomicRMWInst>(I) && cast<AtomicRMWInst>(I).isVolatile())) 3701 (isa<AtomicRMWInst>(I) && cast<AtomicRMWInst>(I).isVolatile())) 3705 WriteOptimizationInfo(Out, &I); 3708 if (const CmpInst *CI = dyn_cast<CmpInst>(&I)) 3712 if (const AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(&I)) 3716 const Value *Operand = I.getNumOperands() ? I.getOperand(0) : nullptr; 3716 const Value *Operand = I.getNumOperands() ? I.getOperand(0) : nullptr; 3719 if (isa<BranchInst>(I) && cast<BranchInst>(I).isConditional()) { 3719 if (isa<BranchInst>(I) && cast<BranchInst>(I).isConditional()) { 3720 const BranchInst &BI(cast<BranchInst>(I)); 3728 } else if (isa<SwitchInst>(I)) { 3729 const SwitchInst& SI(cast<SwitchInst>(I)); 3743 } else if (isa<IndirectBrInst>(I)) { 3749 for (unsigned i = 1, e = I.getNumOperands(); i != e; ++i) { 3752 writeOperand(I.getOperand(i), true); 3755 } else if (const PHINode *PN = dyn_cast<PHINode>(&I)) { 3757 TypePrinter.print(I.getType(), Out); 3766 } else if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(&I)) { 3768 writeOperand(I.getOperand(0), true); 3771 } else if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(&I)) { 3773 writeOperand(I.getOperand(0), true); Out << ", "; 3774 writeOperand(I.getOperand(1), true); 3777 } else if (const LandingPadInst *LPI = dyn_cast<LandingPadInst>(&I)) { 3779 TypePrinter.print(I.getType(), Out); 3795 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { 3811 } else if (const auto *FPI = dyn_cast<FuncletPadInst>(&I)) { 3822 } else if (isa<ReturnInst>(I) && !Operand) { 3824 } else if (const auto *CRI = dyn_cast<CatchReturnInst>(&I)) { 3830 } else if (const auto *CRI = dyn_cast<CleanupReturnInst>(&I)) { 3839 } else if (const CallInst *CI = dyn_cast<CallInst>(&I)) { 3855 maybePrintCallAddrSpace(Operand, &I, Out); 3884 } else if (const InvokeInst *II = dyn_cast<InvokeInst>(&I)) { 3900 maybePrintCallAddrSpace(Operand, &I, Out); 3927 } else if (const CallBrInst *CBI = dyn_cast<CallBrInst>(&I)) { 3972 } else if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) { 3997 } else if (isa<CastInst>(I)) { 4003 TypePrinter.print(I.getType(), Out); 4004 } else if (isa<VAArgInst>(I)) { 4010 TypePrinter.print(I.getType(), Out); 4012 if (const auto *GEP = dyn_cast<GetElementPtrInst>(&I)) { 4016 } else if (const auto *LI = dyn_cast<LoadInst>(&I)) { 4029 if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I) 4029 if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I) 4029 if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I) 4030 || isa<ReturnInst>(I)) { 4033 for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) { 4034 Operand = I.getOperand(i); 4050 for (unsigned i = 0, E = I.getNumOperands(); i != E; ++i) { 4052 writeOperand(I.getOperand(i), PrintAllTypes); 4057 if (const LoadInst *LI = dyn_cast<LoadInst>(&I)) { 4062 } else if (const StoreInst *SI = dyn_cast<StoreInst>(&I)) { 4067 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { 4070 } else if (const AtomicRMWInst *RMWI = dyn_cast<AtomicRMWInst>(&I)) { 4073 } else if (const FenceInst *FI = dyn_cast<FenceInst>(&I)) { 4079 I.getAllMetadata(InstMD); 4083 printInfoComment(I);