Lines Matching defs:TypeMap
26 // TypeMap implementation.
389 TypeMapTy TypeMap;
525 TypeMap(Set), GValMaterializer(*this), LValMaterializer(*this),
527 Mapper(ValueMap, RF_MoveDistinctMDs | RF_IgnoreMissingLocals, &TypeMap,
627 new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()),
646 C, i, Attribute::getWithByValType(C, TypeMap.get(Ty)));
657 auto *F = Function::Create(TypeMap.get(SF->getFunctionType()),
671 auto *Ty = TypeMap.get(SGIS->getValueType());
697 Function::Create(cast<FunctionType>(TypeMap.get(SGV->getValueType())),
702 new GlobalVariable(DstM, TypeMap.get(SGV->getValueType()),
751 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
758 TypeMap.addTypeMapping(DAT->getElementType(), SAT->getElementType());
772 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
777 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
788 if (TypeMap.DstStructTypesSet.hasType(ST)) {
822 if (TypeMap.DstStructTypesSet.hasType(DST))
823 TypeMap.addTypeMapping(DST, ST);
828 TypeMap.linkDefinedTypeBodies();
843 Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getValueType()))
927 Constant *Ret = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType()));
1028 // the same as DGV and NewGV, and TypeMap.get() will assert since it
1032 NewGV, TypeMap.get(SGV->getType()));