Lines Matching refs:cast

267       TypeVals.push_back(cast<IntegerType>(T)->getBitWidth());  in WriteTypeTable()
270 PointerType *PTy = cast<PointerType>(T); in WriteTypeTable()
280 FunctionType *FT = cast<FunctionType>(T); in WriteTypeTable()
291 StructType *ST = cast<StructType>(T); in WriteTypeTable()
318 ArrayType *AT = cast<ArrayType>(T); in WriteTypeTable()
327 VectorType *VT = cast<VectorType>(T); in WriteTypeTable()
683 Write##CLASS(cast<CLASS>(N), VE, Stream, Record, CLASS##Abbrev); \ in WriteModuleMetadata()
692 const MDString *MDS = cast<MDString>(MD); in WriteModuleMetadata()
878 const Constant *C = cast<Constant>(V); in WriteConstants()
924 cast<ConstantDataSequential>(C)->isString()) { in WriteConstants()
925 const ConstantDataSequential *Str = cast<ConstantDataSequential>(C); in WriteConstants()
999 if (cast<GEPOperator>(C)->isInBounds()) in WriteConstants()
1134 if (cast<GEPOperator>(&I)->isInBounds()) in WriteInstruction()
1142 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I); in WriteInstruction()
1151 const InsertValueInst *IVI = cast<InsertValueInst>(&I); in WriteInstruction()
1185 Vals.push_back(cast<CmpInst>(I).getPredicate()); in WriteInstruction()
1206 const BranchInst &II = cast<BranchInst>(I); in WriteInstruction()
1217 const SwitchInst &SI = cast<SwitchInst>(I); in WriteInstruction()
1236 const InvokeInst *II = cast<InvokeInst>(&I); in WriteInstruction()
1238 PointerType *PTy = cast<PointerType>(Callee->getType()); in WriteInstruction()
1239 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()
1270 const PHINode &PN = cast<PHINode>(I); in WriteInstruction()
1281 const LandingPadInst &LP = cast<LandingPadInst>(I); in WriteInstruction()
1302 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); in WriteInstruction()
1307 if (cast<LoadInst>(I).isAtomic()) { in WriteInstruction()
1315 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1); in WriteInstruction()
1316 Vals.push_back(cast<LoadInst>(I).isVolatile()); in WriteInstruction()
1317 if (cast<LoadInst>(I).isAtomic()) { in WriteInstruction()
1318 Vals.push_back(GetEncodedOrdering(cast<LoadInst>(I).getOrdering())); in WriteInstruction()
1319 Vals.push_back(GetEncodedSynchScope(cast<LoadInst>(I).getSynchScope())); in WriteInstruction()
1323 if (cast<StoreInst>(I).isAtomic()) in WriteInstruction()
1329 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1); in WriteInstruction()
1330 Vals.push_back(cast<StoreInst>(I).isVolatile()); in WriteInstruction()
1331 if (cast<StoreInst>(I).isAtomic()) { in WriteInstruction()
1332 Vals.push_back(GetEncodedOrdering(cast<StoreInst>(I).getOrdering())); in WriteInstruction()
1333 Vals.push_back(GetEncodedSynchScope(cast<StoreInst>(I).getSynchScope())); in WriteInstruction()
1341 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in WriteInstruction()
1343 cast<AtomicCmpXchgInst>(I).getSuccessOrdering())); in WriteInstruction()
1345 cast<AtomicCmpXchgInst>(I).getSynchScope())); in WriteInstruction()
1352 cast<AtomicRMWInst>(I).getOperation())); in WriteInstruction()
1353 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile()); in WriteInstruction()
1354 Vals.push_back(GetEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering())); in WriteInstruction()
1356 cast<AtomicRMWInst>(I).getSynchScope())); in WriteInstruction()
1360 Vals.push_back(GetEncodedOrdering(cast<FenceInst>(I).getOrdering())); in WriteInstruction()
1361 Vals.push_back(GetEncodedSynchScope(cast<FenceInst>(I).getSynchScope())); in WriteInstruction()
1364 const CallInst &CI = cast<CallInst>(I); in WriteInstruction()
1365 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); in WriteInstruction()
1366 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()