Home
last modified time | relevance | path

Searched refs:SelectionKind (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Linker/
H A DLinkModules.cpp164 if (Dst == Comdat::SelectionKind::Largest || in computeResultingSelectionKind()
165 Src == Comdat::SelectionKind::Largest) in computeResultingSelectionKind()
166 Result = Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
168 Result = Comdat::SelectionKind::Any; in computeResultingSelectionKind()
177 case Comdat::SelectionKind::Any: in computeResultingSelectionKind()
181 case Comdat::SelectionKind::NoDeduplicate: in computeResultingSelectionKind()
184 case Comdat::SelectionKind::ExactMatch: in computeResultingSelectionKind()
185 case Comdat::SelectionKind::Largest: in computeResultingSelectionKind()
186 case Comdat::SelectionKind::SameSize: { in computeResultingSelectionKind()
197 if (Result == Comdat::SelectionKind::ExactMatch) { in computeResultingSelectionKind()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DComdat.h35 enum SelectionKind { enum
46 SelectionKind getSelectionKind() const { return SK; } in getSelectionKind()
47 void setSelectionKind(SelectionKind Val) { SK = Val; } in setSelectionKind()
63 SelectionKind SK = Any;
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp94 SourceSelectionKind SelectionKind = in TraverseDecl() local
97 SelectedASTNode(DynTypedNode::create(*D), SelectionKind)); in TraverseDecl()
99 popAndAddToSelectionIfSelected(SelectionKind); in TraverseDecl()
122 SourceSelectionKind SelectionKind = in TraverseStmt() local
125 SelectedASTNode(DynTypedNode::create(*S), SelectionKind)); in TraverseStmt()
127 popAndAddToSelectionIfSelected(SelectionKind); in TraverseStmt()
132 void popAndAddToSelectionIfSelected(SourceSelectionKind SelectionKind) { in popAndAddToSelectionIfSelected() argument
135 if (SelectionKind != SourceSelectionKind::None || !Node.Children.empty()) in popAndAddToSelectionIfSelected()
225 OS << ' ' << selectionKindToString(Node.SelectionKind) << "\n"; in dump()
241 if (Child.SelectionKind == Kind) in hasAnyDirectChildrenWithKind()
[all …]
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h53 SourceSelectionKind SelectionKind; member
56 SelectedASTNode(const DynTypedNode &Node, SourceSelectionKind SelectionKind) in SelectedASTNode()
57 : Node(Node), SelectionKind(SelectionKind) {} in SelectedASTNode()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DIRSymtab.h86 Word SelectionKind; member
287 std::vector<std::pair<StringRef, llvm::Comdat::SelectionKind>>
289 std::vector<std::pair<StringRef, llvm::Comdat::SelectionKind>> ComdatTable; in getComdatTable()
292 ComdatTable.push_back({str(C.Name), llvm::Comdat::SelectionKind( in getComdatTable()
293 uint32_t(C.SelectionKind))}); in getComdatTable()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DASTSelectionTest.cpp91 SourceSelectionKind SelectionKind, unsigned NumChildren) { in checkNodeImpl() argument
94 ASSERT_EQ(Node.SelectionKind, SelectionKind); in checkNodeImpl()
105 const SelectedASTNode &StmtNode, SourceSelectionKind SelectionKind, in checkNode() argument
109 checkNodeImpl(isa<T>(StmtNode.Node.get<Stmt>()), StmtNode, SelectionKind, in checkNode()
116 const SelectedASTNode &DeclNode, SourceSelectionKind SelectionKind, in checkNode() argument
120 checkNodeImpl(isa<T>(DeclNode.Node.get<Decl>()), DeclNode, SelectionKind, in checkNode()
131 SourceSelectionKind SelectionKind) { in childKindVerifier()
133 ASSERT_EQ(Node.SelectionKind, SelectionKind); in childKindVerifier()
134 childKindVerifier(Child, SelectionKind); in childKindVerifier()
/llvm-project-15.0.7/llvm/include/llvm/LTO/
H A DLTO.h123 std::vector<std::pair<StringRef, Comdat::SelectionKind>> ComdatTable;
176 ArrayRef<std::pair<StringRef, Comdat::SelectionKind>> getComdatTable() const { in getComdatTable()
/llvm-project-15.0.7/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp470 ArrayRef<std::pair<StringRef, Comdat::SelectionKind>> ComdatTable = in dumpSymtab()
/llvm-project-15.0.7/llvm/lib/Object/
H A DIRSymtab.cpp211 Comdat.SelectionKind = C->getSelectionKind(); in getComdatIndex()
/llvm-project-15.0.7/lld/wasm/
H A DInputFiles.cpp794 for (std::pair<StringRef, Comdat::SelectionKind> s : obj->getComdatTable()) in parse()
/llvm-project-15.0.7/llvm/tools/gold/
H A Dgold-plugin.cpp637 std::pair<StringRef, Comdat::SelectionKind> C = Obj->getComdatTable()[CI]; in claim_file_hook()
/llvm-project-15.0.7/lld/ELF/
H A DInputFiles.cpp1635 for (std::pair<StringRef, Comdat::SelectionKind> s : obj->getComdatTable()) { in parse()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1263 static Comdat::SelectionKind getDecodedComdatSelectionKind(unsigned Val) { in getDecodedComdatSelectionKind()
3648 Comdat::SelectionKind SK = getDecodedComdatSelectionKind(Record[0]); in parseComdatRecord()
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A Dir.go1081 func (c Comdat) SelectionKind() ComdatSelectionKind { func
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLParser.cpp690 Comdat::SelectionKind SK; in parseComdat()
/llvm-project-15.0.7/llvm/docs/
H A DLangRef.rst952 $<Name> = comdat SelectionKind