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()
684 Write##CLASS(cast<CLASS>(N), VE, Stream, Record, CLASS##Abbrev); \ in WriteModuleMetadata()
693 const MDString *MDS = cast<MDString>(MD); in WriteModuleMetadata()
879 const Constant *C = cast<Constant>(V); in WriteConstants()
925 cast<ConstantDataSequential>(C)->isString()) { in WriteConstants()
926 const ConstantDataSequential *Str = cast<ConstantDataSequential>(C); in WriteConstants()
991 if (cast<GEPOperator>(C)->isInBounds()) in WriteConstants()
1126 if (cast<GEPOperator>(&I)->isInBounds()) in WriteInstruction()
1134 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I); in WriteInstruction()
1143 const InsertValueInst *IVI = cast<InsertValueInst>(&I); in WriteInstruction()
1177 Vals.push_back(cast<CmpInst>(I).getPredicate()); in WriteInstruction()
1198 const BranchInst &II = cast<BranchInst>(I); in WriteInstruction()
1209 const SwitchInst &SI = cast<SwitchInst>(I); in WriteInstruction()
1228 const InvokeInst *II = cast<InvokeInst>(&I); in WriteInstruction()
1230 PointerType *PTy = cast<PointerType>(Callee->getType()); in WriteInstruction()
1231 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()
1262 const PHINode &PN = cast<PHINode>(I); in WriteInstruction()
1273 const LandingPadInst &LP = cast<LandingPadInst>(I); in WriteInstruction()
1295 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); in WriteInstruction()
1300 if (cast<LoadInst>(I).isAtomic()) { 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()
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()
1334 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in WriteInstruction()
1336 cast<AtomicCmpXchgInst>(I).getSuccessOrdering())); in WriteInstruction()
1338 cast<AtomicCmpXchgInst>(I).getSynchScope())); 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()
1358 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); in WriteInstruction()
1359 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()