• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/

Lines Matching defs:TypeId

447   uint8_t *exportTypeId(StringRef TypeId, const TypeIdLowering &TIL);
448 TypeIdLowering importTypeId(StringRef TypeId);
454 buildBitSet(Metadata *TypeId,
463 Value *lowerTypeTestCall(Metadata *TypeId, CallInst *CI,
558 /// Build a bit set for TypeId using the object layouts in
561 Metadata *TypeId,
569 if (Type->getOperand(1) != TypeId)
695 static bool isKnownTypeIdMember(Metadata *TypeId, const DataLayout &DL,
701 if (Type->getOperand(1) != TypeId)
719 return isKnownTypeIdMember(TypeId, DL, GEP->getPointerOperand(), COffset);
724 return isKnownTypeIdMember(TypeId, DL, Op->getOperand(0), COffset);
727 return isKnownTypeIdMember(TypeId, DL, Op->getOperand(1), COffset) &&
728 isKnownTypeIdMember(TypeId, DL, Op->getOperand(2), COffset);
736 Value *LowerTypeTestsModule::lowerTypeTestCall(Metadata *TypeId, CallInst *CI,
746 if (isKnownTypeIdMember(TypeId, DL, Ptr, 0))
911 uint8_t *LowerTypeTestsModule::exportTypeId(StringRef TypeId,
914 ExportSummary->getOrInsertTypeIdSummary(TypeId).TTRes;
920 "__typeid_" + TypeId + "_" + Name, C, &M);
962 LowerTypeTestsModule::importTypeId(StringRef TypeId) {
963 const TypeIdSummary *TidSummary = ImportSummary->getTypeIdSummary(TypeId);
974 Constant *C = M.getOrInsertGlobal(("__typeid_" + TypeId + "_" + Name).str(),
1126 for (Metadata *TypeId : TypeIds) {
1128 BitSetInfo BSI = buildBitSet(TypeId, GlobalLayout);
1130 if (auto MDS = dyn_cast<MDString>(TypeId))
1164 TypeIdUserInfo &TIUI = TypeIdUsers[TypeId];
1167 uint8_t *MaskPtr = exportTypeId(cast<MDString>(TypeId)->getString(), TIL);
1175 Value *Lowered = lowerTypeTestCall(TypeId, CI, TIL);
2022 auto AddTypeIdUse = [&](Metadata *TypeId) -> TypeIdUserInfo & {
2027 auto Ins = TypeIdUsers.insert({TypeId, {}});
2030 GlobalClassesTy::iterator GCI = GlobalClasses.insert(TypeId);
2034 for (GlobalTypeMember *GTM : TypeIdInfo[TypeId].RefGlobals)
2049 auto TypeId = TypeIdMDVal->getMetadata();
2050 AddTypeIdUse(TypeId).CallSites.push_back(CI);
2095 if (auto *TypeId = dyn_cast<MDString>(P.first))
2096 MetadataByGUID[GlobalValue::getGUID(TypeId->getString())].push_back(
2097 TypeId);