Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DIRSimilarityIdentifierTest.cpp751 Mapper.initializeForBBs(*M); in TEST()
781 Mapper.initializeForBBs(*M); in TEST()
808 Mapper.initializeForBBs(*M); in TEST()
1067 Mapper.EnableMatchCallsByName = true; in TEST()
1096 Mapper.EnableMatchCallsByName = false; in TEST()
2270 Mapper.initializeForBBs(*M); in TEST()
2325 Mapper.initializeForBBs(*M); in TEST()
2372 Mapper.initializeForBBs(*M); in TEST()
2423 Mapper.initializeForBBs(*M); in TEST()
2472 Mapper.initializeForBBs(*M); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DMapperJITLinkMemoryManager.cpp36 Parent.Mapper->initialize(AI, [&](Expected<ExecutorAddr> Result) { in finalize()
47 Parent.Mapper->release({AllocAddr}, std::move(OnFinalize)); in abandon()
58 std::unique_ptr<MemoryMapper> Mapper) in MapperJITLinkMemoryManager() argument
59 : Mapper(std::move(Mapper)) {} in MapperJITLinkMemoryManager()
66 auto SegsSizes = BL.getContiguousPageBasedLayoutSizes(Mapper->getPageSize()); in allocate()
80 Mapper->reserve( in allocate()
99 Seg.WorkingMem = Mapper->prepare(NextSegAddr, TotalSize); in allocate()
101 NextSegAddr += alignTo(TotalSize, Mapper->getPageSize()); in allocate()
131 Mapper->release(Bases, std::move(OnDeallocated)); in deallocate()
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/
H A DMapperJITLinkMemoryManager.h25 MapperJITLinkMemoryManager(std::unique_ptr<MemoryMapper> Mapper);
30 auto Mapper = MemoryMapperType::Create(std::forward<Args>(A)...); in CreateWithMapper() local
31 if (!Mapper) in CreateWithMapper()
32 return Mapper.takeError(); in CreateWithMapper()
34 return std::make_unique<MapperJITLinkMemoryManager>(std::move(*Mapper)); in CreateWithMapper()
50 std::unique_ptr<MemoryMapper> Mapper; variable
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DMemoryMapperTest.cpp68 std::unique_ptr<MemoryMapper> Mapper = in TEST() local
72 auto PageSize = Mapper->getPageSize(); in TEST()
76 auto Mem1 = reserve(*Mapper, TotalSize); in TEST()
84 char *WA1 = Mapper->prepare(Mem1->Start, HW.size() + 1); in TEST()
136 auto Init1 = initialize(*Mapper, Alloc1); in TEST()
143 auto Init2 = initialize(*Mapper, Alloc2); in TEST()
152 EXPECT_THAT_ERROR(deinitialize(*Mapper, DeinitAddr), Succeeded()); in TEST()
159 auto Mem2 = reserve(*Mapper, PageSize); in TEST()
162 char *WA = Mapper->prepare(Mem2->Start, HW.size() + 1); in TEST()
183 auto Init3 = initialize(*Mapper, Alloc3); in TEST()
[all …]
H A DSharedMemoryMapperTest.cpp65 std::unique_ptr<MemoryMapper> Mapper = in TEST() local
68 auto PageSize = Mapper->getPageSize(); in TEST()
71 Mapper->reserve(ReqSize, [&](Expected<ExecutorAddrRange> Result) { in TEST()
75 char *Addr = Mapper->prepare(Reservation.Start, TestString.size() + 1); in TEST()
100 Mapper->initialize(AI, [&, Reservation](Expected<ExecutorAddr> Result) { in TEST()
109 Mapper->deinitialize({*Result}, [&, Reservation](Error Err) { in TEST()
115 Mapper->release({Reservation.Start}, [&](Error Err) { in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineOutliner.cpp401 void findCandidates(InstructionMapper &Mapper,
531 SuffixTree ST(Mapper.UnsignedVec); in findCandidates()
750 InstructionMapper &Mapper, in outline() argument
766 erase_if(OF.Candidates, [&Mapper](Candidate &C) { in outline()
768 Mapper.UnsignedVec.begin() + C.getStartIdx(), in outline()
769 Mapper.UnsignedVec.begin() + C.getEndIdx() + 1, in outline()
925 Mapper.convertToUnsignedVec(MBB, *TII); in populateMapper()
929 UnsignedVecSize = Mapper.UnsignedVec.size(); in populateMapper()
1049 InstructionMapper Mapper; in doOutline() local
1052 populateMapper(Mapper, M, MMI); in doOutline()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTensorSpec.cpp56 json::ObjectMapper Mapper(Value, Root); in getTensorSpecFromJSON() local
57 if (!Mapper) in getTensorSpecFromJSON()
65 if (!Mapper.map<std::string>("name", TensorName)) in getTensorSpecFromJSON()
67 if (!Mapper.map<std::string>("type", TensorType)) in getTensorSpecFromJSON()
69 if (!Mapper.map<int>("port", TensorPort)) in getTensorSpecFromJSON()
71 if (!Mapper.map<std::vector<int64_t>>("shape", TensorShape)) in getTensorSpecFromJSON()
H A DIRSimilarityIdentifier.cpp867 Mapper.initializeForBBs(M); in populateMapper()
879 Mapper.convertToUnsignedVec(BB, InstrListForModule, in populateMapper()
887 Mapper.IDL->push_back(*InstrListForModule.back()); in populateMapper()
933 if (Key > Mapper.IllegalInstrNumber) { in createCandidatesFromSuffixTree()
1199 Mapper.InstClassifier.EnableBranches = this->EnableBranches; in findSimilarity()
1200 Mapper.InstClassifier.EnableIndirectCalls = EnableIndirectCalls; in findSimilarity()
1201 Mapper.EnableMatchCallsByName = EnableMatchingCallsByName; in findSimilarity()
1202 Mapper.InstClassifier.EnableIntrinsics = EnableIntrinsics; in findSimilarity()
1213 Mapper.InstClassifier.EnableBranches = this->EnableBranches; in findSimilarity()
1215 Mapper.EnableMatchCallsByName = EnableMatchingCallsByName; in findSimilarity()
[all …]
H A DMemoryBuiltins.cpp393 function_ref<const Value *(const Value *)> Mapper) { in getAllocSize() argument
407 APInt Size(IntTyBits, GetStringLength(Mapper(CB->getArgOperand(0)))); in getAllocSize()
414 dyn_cast<ConstantInt>(Mapper(CB->getArgOperand(FnData->FstParam))); in getAllocSize()
426 dyn_cast<ConstantInt>(Mapper(CB->getArgOperand(FnData->FstParam))); in getAllocSize()
438 Arg = dyn_cast<ConstantInt>(Mapper(CB->getArgOperand(FnData->SndParam))); in getAllocSize()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp110 class Mapper { class
191 Mapper &M;
223 MDNodeMapper(Mapper &M) : M(M) {} in MDNodeMapper()
339 Value *Mapper::mapValue(const Value *V) { in mapValue()
864 void Mapper::flush() { in flush()
998 void Mapper::remapFunction(Function &F) { in remapFunction()
1116 void Mapper::addFlags(RemapFlags Flags) { in addFlags()
1121 static Mapper *getAsMapper(void *pImpl) { in getAsMapper()
1122 return reinterpret_cast<Mapper *>(pImpl); in getAsMapper()
1128 Mapper &M;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h145 Error mapVectorN(T &Items, const ElementMapper &Mapper,
155 if (auto EC = Mapper(*this, X))
164 if (auto EC = Mapper(*this, X))
172 if (auto EC = Mapper(*this, Item))
182 Error mapVectorTail(T &Items, const ElementMapper &Mapper,
187 if (auto EC = Mapper(*this, Item))
194 if (auto EC = Mapper(*this, Field))
/llvm-project-15.0.7/llvm/lib/Linker/
H A DIRMover.cpp441 ValueMapper Mapper; member in __anon496259980211::IRLinker
538 IndirectSymbolMCID(Mapper.registerAlternateMappingContext( in IRLinker()
966 Mapper.scheduleMapAppendingVariable( in linkAppendingVarProto()
1096 Mapper.scheduleMapGlobalInitializer(Dst, *Src.getInitializer()); in linkGlobalVariable()
1125 Mapper.scheduleRemapFunction(Dst); in linkFunctionBody()
1130 Mapper.scheduleMapGlobalAlias(Dst, *Src.getAliasee(), IndirectSymbolMCID); in linkAliasAliasee()
1134 Mapper.scheduleMapGlobalIFunc(Dst, *Src.getResolver(), IndirectSymbolMCID); in linkIFuncResolver()
1249 DestNMD->addOperand(Mapper.mapMDNode(*Op)); in linkNamedMDNodes()
1595 Mapper.mapValue(*GV); in run()
1604 Mapper.addFlags(RF_NullMapMissingGlobalValues); in run()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConfusableIdentifierCheck.h33 llvm::StringMap<llvm::SmallVector<const NamedDecl *>> Mapper; variable
H A DConfusableIdentifierCheck.cpp152 llvm::SmallVector<const NamedDecl *> &Mapped = Mapper[skeleton(NDName)]; in check()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DCMakeLists.txt13 Mapper.cpp
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang-tools-extra/clang-doc/
H A DBUILD.gn25 "Mapper.cpp",
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h985 : Mapper(&InstDataAllocator, &InstDataListAllocator),
1063 IRInstructionMapper Mapper; variable
H A DMemoryBuiltins.h112 function_ref<const Value *(const Value *)> Mapper = [](const Value *V) {
/llvm-project-15.0.7/llvm/lib/IR/
H A DDebugInfo.cpp740 DebugTypeInfoRemoval Mapper(M.getContext()); in stripNonLineTableDebugInfo() local
744 Mapper.traverseAndRemap(Node); in stripNonLineTableDebugInfo()
745 auto *NewNode = Mapper.mapNode(Node); in stripNonLineTableDebugInfo()
755 Mapper.traverseAndRemap(SP); in stripNonLineTableDebugInfo()
756 auto *NewSP = cast<DISubprogram>(Mapper.mapNode(SP)); in stripNonLineTableDebugInfo()
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DTypeRecordMapping.cpp684 MapOneMethodRecord Mapper(IsFromOverloadList); in visitKnownMember() local
685 return Mapper(IO, Record); in visitKnownMember()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp7338 const ValueDecl *Mapper = nullptr; member
7354 Mapper(Mapper), VarRef(VarRef), ForDeviceAddr(ForDeviceAddr) {} in MapInfo()
7570 const ValueDecl *Mapper = nullptr, bool ForDeviceAddr = false, in generateInfoForComponentList() argument
8070 bool HasMapper = Mapper && Next == CE; in generateInfoForComponentList()
8486 IsImplicit, Mapper, VarRef, ForDeviceAddr); in generateAllInfoForClauses()
9079 const ValueDecl *VDecl, *Mapper; in generateInfoForCapture() local
9083 std::tie(VDecl, Components, Mapper) = L; in generateInfoForCapture()
9121 const ValueDecl *Mapper; in generateInfoForCapture() local
9239 const ValueDecl *Mapper; in generateInfoForCapture() local
9247 PartialStruct, IsFirstComponentList, IsImplicit, Mapper, in generateInfoForCapture()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp2021 GUIDToFuncNameMapper Mapper(M, *Reader, GUIDToFuncNameMap); in runOnModule() local
H A DAttributorAttributes.cpp6053 auto Mapper = [&](const Value *V) -> const Value * { in getSize() local
6064 return getAllocSize(AI.CB, TLI, Mapper); in getSize()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DOpenMPClause.h5564 const ValueDecl *Mapper = nullptr; variable
5566 Mapper = cast<ValueDecl>(cast<DeclRefExpr>(*MapperCur)->getDecl());
5570 Mapper);
/llvm-project-15.0.7/clang/docs/tools/
H A Dclang-formatted-files.txt756 clang-tools-extra/clang-doc/Mapper.cpp
757 clang-tools-extra/clang-doc/Mapper.h