Lines Matching refs:I
295 for (StructType::element_iterator I = ST->element_begin(), in WriteTypeTable() local
296 E = ST->element_end(); I != E; ++I) in WriteTypeTable()
297 TypeVals.push_back(VE.getTypeID(*I)); in WriteTypeTable()
752 for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); in WriteMetadataAttachment() local
753 I != E; ++I) { in WriteMetadataAttachment()
755 I->getAllMetadataOtherThanDebugLoc(MDs); in WriteMetadataAttachment()
760 Record.push_back(VE.getInstructionID(&*I)); in WriteMetadataAttachment()
1093 static void WriteInstruction(const Instruction &I, unsigned InstID, in WriteInstruction() argument
1099 VE.setInstructionID(&I); in WriteInstruction()
1100 switch (I.getOpcode()) { in WriteInstruction()
1102 if (Instruction::isCast(I.getOpcode())) { in WriteInstruction()
1104 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1106 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1107 Vals.push_back(GetEncodedCastOpcode(I.getOpcode())); in WriteInstruction()
1109 assert(isa<BinaryOperator>(I) && "Unknown instruction!"); in WriteInstruction()
1111 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1113 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1114 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode())); in WriteInstruction()
1115 uint64_t Flags = GetOptimizationFlags(&I); in WriteInstruction()
1126 if (cast<GEPOperator>(&I)->isInBounds()) in WriteInstruction()
1128 for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) in WriteInstruction()
1129 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1133 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1134 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I); in WriteInstruction()
1141 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1142 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1143 const InsertValueInst *IVI = cast<InsertValueInst>(&I); in WriteInstruction()
1150 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1151 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1152 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1156 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1157 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1161 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1162 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1163 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1167 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1168 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1169 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1175 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1176 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1177 Vals.push_back(cast<CmpInst>(I).getPredicate()); in WriteInstruction()
1183 unsigned NumOperands = I.getNumOperands(); in WriteInstruction()
1187 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1191 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1198 const BranchInst &II = cast<BranchInst>(I); in WriteInstruction()
1209 const SwitchInst &SI = cast<SwitchInst>(I); in WriteInstruction()
1222 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1223 for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) in WriteInstruction()
1224 Vals.push_back(VE.getValueID(I.getOperand(i))); in WriteInstruction()
1228 const InvokeInst *II = cast<InvokeInst>(&I); in WriteInstruction()
1242 Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param. in WriteInstruction()
1246 for (unsigned i = FTy->getNumParams(), e = I.getNumOperands()-3; in WriteInstruction()
1248 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg in WriteInstruction()
1254 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1262 const PHINode &PN = cast<PHINode>(I); in WriteInstruction()
1273 const LandingPadInst &LP = cast<LandingPadInst>(I); in WriteInstruction()
1280 for (unsigned I = 0, E = LP.getNumClauses(); I != E; ++I) { in WriteInstruction() local
1281 if (LP.isCatch(I)) in WriteInstruction()
1285 PushValueAndType(LP.getClause(I), InstID, Vals, VE); in WriteInstruction()
1292 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1293 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1294 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in WriteInstruction()
1295 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); in WriteInstruction()
1300 if (cast<LoadInst>(I).isAtomic()) { in WriteInstruction()
1302 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1305 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr in WriteInstruction()
1308 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1); in WriteInstruction()
1309 Vals.push_back(cast<LoadInst>(I).isVolatile()); in WriteInstruction()
1310 if (cast<LoadInst>(I).isAtomic()) { in WriteInstruction()
1311 Vals.push_back(GetEncodedOrdering(cast<LoadInst>(I).getOrdering())); in WriteInstruction()
1312 Vals.push_back(GetEncodedSynchScope(cast<LoadInst>(I).getSynchScope())); in WriteInstruction()
1316 if (cast<StoreInst>(I).isAtomic()) in WriteInstruction()
1320 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1321 Vals.push_back(VE.getValueID(I.getOperand(0))); // val. in WriteInstruction()
1322 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1); in WriteInstruction()
1323 Vals.push_back(cast<StoreInst>(I).isVolatile()); in WriteInstruction()
1324 if (cast<StoreInst>(I).isAtomic()) { in WriteInstruction()
1325 Vals.push_back(GetEncodedOrdering(cast<StoreInst>(I).getOrdering())); in WriteInstruction()
1326 Vals.push_back(GetEncodedSynchScope(cast<StoreInst>(I).getSynchScope())); in WriteInstruction()
1331 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1332 Vals.push_back(VE.getValueID(I.getOperand(1))); // cmp. in WriteInstruction()
1333 Vals.push_back(VE.getValueID(I.getOperand(2))); // newval. in WriteInstruction()
1334 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in WriteInstruction()
1336 cast<AtomicCmpXchgInst>(I).getSuccessOrdering())); in WriteInstruction()
1338 cast<AtomicCmpXchgInst>(I).getSynchScope())); in WriteInstruction()
1342 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1343 Vals.push_back(VE.getValueID(I.getOperand(1))); // val. in WriteInstruction()
1345 cast<AtomicRMWInst>(I).getOperation())); in WriteInstruction()
1346 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile()); in WriteInstruction()
1347 Vals.push_back(GetEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering())); in WriteInstruction()
1349 cast<AtomicRMWInst>(I).getSynchScope())); in WriteInstruction()
1353 Vals.push_back(GetEncodedOrdering(cast<FenceInst>(I).getOrdering())); in WriteInstruction()
1354 Vals.push_back(GetEncodedSynchScope(cast<FenceInst>(I).getSynchScope())); in WriteInstruction()
1357 const CallInst &CI = cast<CallInst>(I); in WriteInstruction()
1381 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty in WriteInstruction()
1382 Vals.push_back(VE.getValueID(I.getOperand(0))); // valist. in WriteInstruction()
1383 Vals.push_back(VE.getTypeID(I.getType())); // restype. in WriteInstruction()
1459 for (unsigned I : Order.Shuffle) in WriteUseList() local
1460 Record.push_back(I); in WriteUseList()
1513 for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); in WriteFunction() local
1514 I != E; ++I) { in WriteFunction()
1515 WriteInstruction(*I, InstID, VE, Stream, Vals); in WriteFunction()
1517 if (!I->getType()->isVoidTy()) in WriteFunction()
1521 NeedsMetadataAttachment |= I->hasMetadataOtherThanDebugLoc(); in WriteFunction()
1524 DILocation *DL = I->getDebugLoc(); in WriteFunction()