Home
last modified time | relevance | path

Searched refs:TypeId (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp457 BTFKindVar::BTFKindVar(StringRef VarName, uint32_t TypeId, uint32_t VarInfo) in BTFKindVar() argument
461 BTFType.Type = TypeId; in BTFKindVar()
597 void BTFDebug::visitBasicType(const DIBasicType *BTy, uint32_t &TypeId) { in visitBasicType() argument
620 TypeId = addType(std::move(TypeEntry), BTy); in visitBasicType()
627 uint32_t &TypeId) { in visitSubroutineType() argument
639 TypeId = addType(std::move(TypeEntry)); // For subprogram in visitSubroutineType()
641 TypeId = addType(std::move(TypeEntry), STy); // For func ptr in visitSubroutineType()
729 uint32_t &TypeId) { in visitStructType() argument
760 TypeId = addType(std::move(TypeEntry), CTy); in visitStructType()
763 processDeclAnnotations(CTy->getAnnotations(), TypeId, -1); in visitStructType()
[all …]
H A DBTFDebug.h175 BTFKindVar(StringRef VarName, uint32_t TypeId, uint32_t VarInfo);
268 uint32_t TypeId; ///< Type id referring to .BTF type section member
323 void visitTypeEntry(const DIType *Ty, uint32_t &TypeId, bool CheckPointer,
325 void visitBasicType(const DIBasicType *BTy, uint32_t &TypeId);
329 uint32_t &TypeId);
331 uint32_t &TypeId);
332 void visitCompositeType(const DICompositeType *CTy, uint32_t &TypeId);
334 uint32_t &TypeId);
335 void visitArrayType(const DICompositeType *ATy, uint32_t &TypeId);
336 void visitEnumType(const DICompositeType *ETy, uint32_t &TypeId);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp69 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck() local
70 TypeIds.insert(TypeId->getZExtValue()); in buildCFICheck()
78 if (ConstantInt *TypeId = in buildCFICheck() local
80 TypeIds.insert(TypeId->getZExtValue()); in buildCFICheck()
123 for (uint64_t TypeId : TypeIds) { in buildCFICheck() local
124 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
H A DLowerTypeTests.cpp502 uint8_t *exportTypeId(StringRef TypeId, const TypeIdLowering &TIL);
503 TypeIdLowering importTypeId(StringRef TypeId);
509 buildBitSet(Metadata *TypeId,
518 Value *lowerTypeTestCall(Metadata *TypeId, CallInst *CI,
583 Metadata *TypeId, in buildBitSet() argument
591 if (Type->getOperand(1) != TypeId) in buildBitSet()
717 static bool isKnownTypeIdMember(Metadata *TypeId, const DataLayout &DL, in isKnownTypeIdMember() argument
723 if (Type->getOperand(1) != TypeId) in isKnownTypeIdMember()
741 return isKnownTypeIdMember(TypeId, DL, GEP->getPointerOperand(), COffset); in isKnownTypeIdMember()
746 return isKnownTypeIdMember(TypeId, DL, Op->getOperand(0), COffset); in isKnownTypeIdMember()
[all …]
H A DGlobalDCE.cpp155 void GlobalDCEPass::ScanVTableLoad(Function *Caller, Metadata *TypeId, in ScanVTableLoad() argument
157 for (const auto &VTableInfo : TypeIdMap[TypeId]) { in ScanVTableLoad()
201 auto *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata(); in ScanTypeCheckedLoadIntrinsics() local
204 ScanVTableLoad(CI->getFunction(), TypeId, Offset->getZExtValue()); in ScanTypeCheckedLoadIntrinsics()
208 for (const auto &VTableInfo : TypeIdMap[TypeId]) { in ScanTypeCheckedLoadIntrinsics()
H A DWholeProgramDevirt.cpp2056 Metadata *TypeId = in scanTypeTestUsers() local
2062 CallSlots[{TypeId, Call.Offset}].addCallSite(Ptr, Call.CB, nullptr); in scanTypeTestUsers()
2087 if (!TypeIdMap.count(TypeId)) in scanTypeTestUsers()
2099 else if (ImportSummary && isa<MDString>(TypeId)) { in scanTypeTestUsers()
2101 ImportSummary->getTypeIdSummary(cast<MDString>(TypeId)->getString()); in scanTypeTestUsers()
2124 Metadata *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata(); in scanTypeCheckedLoadUsers() local
2190 CallSlots[{TypeId, Call.Offset}].addCallSite(Ptr, Call.CB, in scanTypeCheckedLoadUsers()
2199 auto *TypeId = dyn_cast<MDString>(Slot.TypeID); in importResolution() local
2200 if (!TypeId) in importResolution()
2203 ImportSummary->getTypeIdSummary(TypeId->getString()); in importResolution()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPassInstrumentation.cpp20 template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const Module *>; member in llvm::Any
21 template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const Function *>; member in llvm::Any
22 template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const Loop *>; member in llvm::Any
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAny.h36 template <typename T> struct TypeId { static char Id; }; argument
53 const void *id() const override { return &TypeId<T>::Id; } in id()
114 return Storage->id() == &Any::TypeId<remove_cvref_t<T>>::Id; in isa()
136 template <typename T> char Any::TypeId<T>::Id = 1;
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h1876 TypeIdSummary &getOrInsertTypeIdSummary(StringRef TypeId) {
1878 GlobalValue::getGUIDAssumingExternalLinkage(TypeId));
1880 if (TypeIdPair.first == TypeId)
1883 TypeIdMap.insert({GlobalValue::getGUIDAssumingExternalLinkage(TypeId),
1884 {TypeIdSaver.save(TypeId), TypeIdSummary()}});
1890 const TypeIdSummary *getTypeIdSummary(StringRef TypeId) const {
1892 GlobalValue::getGUIDAssumingExternalLinkage(TypeId));
1894 if (TypeIdPair.first == TypeId)
1899 TypeIdSummary *getTypeIdSummary(StringRef TypeId) {
1902 TypeId));
[all …]
H A DPassInstrumentation.h69 extern template struct LLVM_TEMPLATE_ABI Any::TypeId<const Module *>;
70 extern template struct LLVM_TEMPLATE_ABI Any::TypeId<const Function *>;
71 extern template struct LLVM_TEMPLATE_ABI Any::TypeId<const Loop *>;
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DNoopLattice.h49 Any::TypeId<clang::dataflow::NoopLattice>;
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjCopy/ELF/
H A DELFConfig.h21 uint32_t TypeId; member
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp223 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata()); in addIntrinsicToSummary() local
224 if (!TypeId) in addIntrinsicToSummary()
227 GlobalValue::getGUIDAssumingExternalLinkage(TypeId->getString()); in addIntrinsicToSummary()
252 auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata()); in addIntrinsicToSummary() local
253 if (!TypeId) in addIntrinsicToSummary()
256 GlobalValue::getGUIDAssumingExternalLinkage(TypeId->getString()); in addIntrinsicToSummary()
846 if (auto *TypeId = dyn_cast<MDString>(TypeID)) in recordTypeIdCompatibleVtableReferences() local
847 Index.getOrInsertTypeIdCompatibleVtableSummary(TypeId->getString()) in recordTypeIdCompatibleVtableReferences()
H A DIR2Vec.cpp236 const Embedding &Vocabulary::operator[](Type::TypeID TypeId) const { in operator []()
237 assert(static_cast<unsigned>(TypeId) < MaxTypeIDs && "Invalid type ID"); in operator []()
238 return Vocab[MaxOpcodes + static_cast<unsigned>(TypeId)]; in operator []()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DGlobalDCE.h78 void ScanVTableLoad(Function *Caller, Metadata *TypeId, uint64_t CallOffset);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp180 if (auto *TypeId = dyn_cast<MDString>(Type->getOperand(1).get()); in getAddressPointOffset() local
181 TypeId && TypeId->getString() == CompatibleType) in getAddressPointOffset()
920 if (auto *TypeId = dyn_cast<MDString>(Type->getOperand(1).get())) in shouldSkipVTable() local
921 if (IgnoredBaseTypes.contains(TypeId->getString())) { in shouldSkipVTable()
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.cpp232 uint32_t TypeId = Symbol.getTypeId(); in dump() local
233 auto Type = Symbol.getSession().getSymbolById(TypeId); in dump()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DUDTLayout.cpp38 uint32_t TypeId = RawSymbol.getTypeId(); in getSymbolType() local
39 return Session.getSymbolById(TypeId); in getSymbolType()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp617 StringRef TypeId = getTok().getIdentifier(); in parseCOMDATType() local
619 Type = StringSwitch<COFF::COMDATType>(TypeId) in parseCOMDATType()
630 return TokError(Twine("unrecognized COMDAT type '" + TypeId + "'")); in parseCOMDATType()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/BTF/
H A DBTF.h240 uint32_t TypeId; ///< Type id referring to .BTF type section member
/freebsd/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h392 typedef const void* TypeId; typedef
410 TypeId GetTypeId() { in GetTypeId()
423 GTEST_API_ TypeId GetTestTypeId();
561 TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc,
H A Dgtest-param-util.h470 virtual TypeId GetTestSuiteTypeId() const = 0;
526 TypeId GetTestSuiteTypeId() const override { return GetTypeId<TestSuite>(); } in GetTestSuiteTypeId()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIR2Vec.h187 const ir2vec::Embedding &operator[](Type::TypeID TypeId) const;
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest.h612 internal::TypeId fixture_class_id, internal::SetUpTestSuiteFunc set_up_tc,
622 internal::TypeId fixture_class_id,
652 const internal::TypeId fixture_class_id_; // ID of the test fixture class
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp787 unsigned TypeId; in getValueOrMetadata() local
788 return getValueTypePair(Record, --Slot, InstNum, ResVal, TypeId, in getValueOrMetadata()
1002 TypeIdCompatibleVtableInfo &TypeId);
7482 TypeIdSummary &TypeId) { in parseWholeProgramDevirtResolution() argument
7484 WholeProgramDevirtResolution &Wpd = TypeId.WPDRes[Id]; in parseWholeProgramDevirtResolution()
7500 TypeIdSummary &TypeId = TheIndex.getOrInsertTypeIdSummary( in parseTypeIdSummaryRecord() local
7504 TypeId.TTRes.TheKind = static_cast<TypeTestResolution::Kind>(Record[Slot++]); in parseTypeIdSummaryRecord()
7505 TypeId.TTRes.SizeM1BitWidth = Record[Slot++]; in parseTypeIdSummaryRecord()
7506 TypeId.TTRes.AlignLog2 = Record[Slot++]; in parseTypeIdSummaryRecord()
7507 TypeId.TTRes.SizeM1 = Record[Slot++]; in parseTypeIdSummaryRecord()
[all …]

12