Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalObject.h121 bool hasComdat() const { return getComdat() != nullptr; } in hasComdat()
122 const Comdat *getComdat() const { return ObjComdat; } in getComdat() function
123 Comdat *getComdat() { return ObjComdat; } in getComdat() function
H A DGlobalValue.h227 bool hasComdat() const { return getComdat() != nullptr; } in hasComdat()
228 const Comdat *getComdat() const;
229 Comdat *getComdat() { in getComdat() function
231 static_cast<const GlobalValue *>(this)->getComdat()); in getComdat()
/llvm-project-15.0.7/llvm/lib/Linker/
H A DLinkModules.cpp382 if (const Comdat *SC = GV.getComdat()) { in linkIfNeeded()
408 const Comdat *SC = GV.getComdat(); in addLazyFor()
426 Comdat *C = GV.getComdat(); in dropReplacedComdat()
498 if (const Comdat *SC = GV.getComdat()) in run()
503 if (const Comdat *SC = SF.getComdat()) in run()
508 if (const Comdat *SC = GA.getComdat()) in run()
543 NewVar->setComdat(Var->getComdat()); in run()
554 const Comdat *SC = GV->getComdat(); in run()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalDCE.cpp154 if (Comdat *C = GV.getComdat()) { in MarkLive()
308 if (Comdat *C = F.getComdat()) in run()
311 if (Comdat *C = GV.getComdat()) in run()
314 if (Comdat *C = GA.getComdat()) in run()
H A DThinLTOBitcodeWriter.cpp73 if (const auto *C = ExportGV.getComdat()) in promoteInternals()
97 if (auto *C = GO.getComdat()) { in promoteInternals()
308 if (const auto *C = GV.getComdat()) in splitAndWriteThinLTOBitcode()
330 if (const auto *C = GV->getComdat()) in splitAndWriteThinLTOBitcode()
368 if (const auto *C = GV->getComdat()) in splitAndWriteThinLTOBitcode()
H A DInternalize.cpp137 if (Comdat *C = GV.getComdat()) { in maybeInternalize()
176 Comdat *C = GV.getComdat(); in checkComdat()
H A DDeadArgumentElimination.cpp168 NF->setComdat(F.getComdat()); in deleteDeadVarargs()
860 NF->setComdat(F->getComdat()); in removeDeadStuffFromFunction()
H A DGlobalOpt.cpp1290 if (const Comdat *C = GV.getComdat()) in deleteIfDead()
2472 if (const Comdat *C = GV.getComdat()) in optimizeGlobalsInModule()
2476 if (const Comdat *C = F.getComdat()) in optimizeGlobalsInModule()
2480 if (const Comdat *C = GA.getComdat()) in optimizeGlobalsInModule()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp49 to->getComdat()->setSelectionKind(from->getComdat()->getSelectionKind()); in copyLinkageVisibility()
H A DTargetLoweringObjectFileImpl.cpp541 const Comdat *C = GV->getComdat(); in getELFComdat()
927 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
1034 GroupName = F.getComdat()->getName().str(); in getSectionForMachineBasicBlock()
1238 const Comdat *C = GV->getComdat(); in checkMachOComdat()
1575 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
1584 if (ComdatGV->getComdat() != C) in getComdatGVForCOFF()
1592 if (const Comdat *C = GV->getComdat()) { in getSelectionForCOFF()
1742 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
2043 const Comdat *C = GV->getComdat(); in getWasmComdat()
2421 assert (!F.getComdat() && "Comdat not supported on XCOFF."); in getSectionForJumpTable()
/llvm-project-15.0.7/llvm/lib/IR/
H A DGlobals.cpp118 !isa<GlobalIFunc>(this) && !isDeduplicateComdat(getComdat()); in canBenefitFromLocalAlias()
181 const Comdat *GlobalValue::getComdat() const { in getComdat() function in GlobalValue
185 return const_cast<GlobalObject *>(GO)->getComdat(); in getComdat()
191 return cast<GlobalObject>(this)->getComdat(); in getComdat()
H A DComdat.cpp40 return wrap(G->getComdat()); in LLVMGetComdat()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp275 if (const auto *C = GV.getComdat()) in processGlobalForThinLTO()
323 if (auto *C = GO.getComdat()) { in processGlobalsForThinLTO()
H A DSplitModule.cpp123 if (const Comdat *C = GV.getComdat()) { in findPartitions()
236 if (const Comdat *C = GV->getComdat()) in isInPartition()
H A DModuleUtils.cpp185 if (Comdat *C = F->getComdat()) in filterDeadComdatFunctions()
202 Comdat *C = F->getComdat(); in filterDeadComdatFunctions()
H A DCloneModule.cpp25 const Comdat *SC = Src->getComdat(); in copyComdat()
H A DSymbolRewriter.cpp98 if (Comdat *CD = GO->getComdat()) { in rewriteComdat()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DInstrumentation.cpp77 if (auto Comdat = F.getComdat()) return Comdat; in getOrCreateFunctionComdat()
H A DPGOInstrumentation.cpp657 Comdat *C = F.getComdat(); in canRenameComdat()
692 Comdat *OrigComdat = F.getComdat(); in renameComdatFunction()
1550 if (Comdat *C = F.getComdat()) in collectComdatMembers()
1553 if (Comdat *C = GV.getComdat()) in collectComdatMembers()
1556 if (Comdat *C = GA.getComdat()) in collectComdatMembers()
/llvm-project-15.0.7/lld/wasm/
H A DInputChunks.h74 uint32_t getComdat() const { return comdat; } in getComdat() function
233 comdat = ms->getComdat(); in addMergeChunk()
H A DInputChunks.cpp59 uint32_t index = getComdat(); in getComdatName()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp320 NewFunc->setComdat(F.getComdat()); in runOnFunction()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDeclCXX.cpp502 if (llvm::Comdat *C = GV->getComdat()) in EmitPointerToInitFunc()
591 llvm::Comdat *C = Addr->getComdat(); in EmitCXXGlobalVarDeclInitFunc()
/llvm-project-15.0.7/llvm/lib/Object/
H A DIRSymtab.cpp303 if (const Comdat *C = GO->getComdat()) { in addSymbol()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DCloningTest.cpp1082 auto *CD = NewGV->getComdat(); in TEST_F()
1088 EXPECT_EQ(CD, NewF->getComdat()); in TEST_F()

12