Lines Matching refs:cast
368 NewTy = cast<FunctionType>(TypeMapper->remapType(NewTy));
454 Ops.push_back(cast<Constant>(C->getOperand(j)));
458 Ops.push_back(cast<Constant>(Mapped));
465 cast<Constant>(Mapped));
476 return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops);
478 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops);
487 return getVM()[V] = ConstantPointerNull::get(cast<PointerType>(NewTy));
491 Function *F = cast<Function>(mapValue(BA.getFunction()));
533 const MDNode &N = *cast<MDNode>(Op);
542 DistinctWorklist.push_back(cast<MDNode>(
656 MDNode &OpN = *cast<MDNode>(Op);
705 return &G.getFwdReference(*cast<MDNode>(Old));
737 return mapTopLevelUniquedNode(*cast<MDNode>(Old));
813 return MDNodeMapper(*this).map(*cast<MDNode>(MD));
872 PN->setIncomingBlock(i, cast<BasicBlock>(V));
925 F.addMetadata(I.first, *cast<MDNode>(mapMetadata(I.second)));
944 cast<ArrayType>(InitPrefix->getType())->getNumElements();
955 auto &ST = *cast<StructType>(NewMembers.front()->getType());
963 auto *S = cast<ConstantStruct>(V);
968 ConstantStruct::get(cast
976 cast<ArrayType>(GV.getType()->getElementType()), Elements));