Home
last modified time | relevance | path

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

12345678910>>...29

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSparseMultiSetTest.cpp27 EXPECT_TRUE(Set.find(0) == Set.end()); in TEST()
28 EXPECT_TRUE(Set.find(9) == Set.end()); in TEST()
50 EXPECT_TRUE(Set.find(0) == Set.end()); in TEST()
51 EXPECT_TRUE(Set.find(9) == Set.end()); in TEST()
94 EXPECT_TRUE(Set.erase(Set.find(4)) == Set.end()); in TEST()
97 EXPECT_TRUE(Set.find(4) == Set.end()); in TEST()
101 EXPECT_TRUE(Set.find(5) != Set.end()); in TEST()
102 EXPECT_TRUE(Set.erase(Set.find(5)) != Set.end()); in TEST()
112 USet::iterator I = Set.erase(Set.find(6)); in TEST()
225 I = Set.erase(Set.find(6)); in TEST()
[all …]
H A DSparseSetTest.cpp20 USet Set; in TEST() local
22 EXPECT_TRUE(Set.begin() == Set.end()); in TEST()
43 USet Set; in TEST() local
50 EXPECT_FALSE(Set.begin() == Set.end()); in TEST()
51 EXPECT_TRUE(Set.begin() + 1 == Set.end()); in TEST()
82 USet Set; in TEST() local
121 EXPECT_TRUE(Set.find(5) == Set.begin()); in TEST()
134 I = Set.erase(Set.end() - 1); in TEST()
139 I = Set.erase(Set.begin() + 1); in TEST()
170 ASet Set; in TEST() local
[all …]
H A DStringSetTest.cpp20 StringSet<> Set; in TEST_F() local
21 Set.insert("A"); in TEST_F()
22 Set.insert("B"); in TEST_F()
23 Set.insert("C"); in TEST_F()
24 Set.insert("D"); in TEST_F()
36 StringSet<> Set; in TEST_F() local
48 StringSet<> Set; in TEST_F() local
52 Set.insert(""); in TEST_F()
58 StringSet<> Set; in TEST_F() local
62 Set.insert(""); in TEST_F()
[all …]
H A DSmallSetTest.cpp173 SmallSet<int, 2> Set; in TEST() local
177 Set.insert(0); in TEST()
178 Set.insert(1); in TEST()
179 EXPECT_TRUE(Set.contains(0)); in TEST()
180 EXPECT_TRUE(Set.contains(1)); in TEST()
182 Set.insert(1); in TEST()
183 EXPECT_TRUE(Set.contains(0)); in TEST()
184 EXPECT_TRUE(Set.contains(1)); in TEST()
186 Set.erase(1); in TEST()
190 Set.insert(1); in TEST()
[all …]
H A DSmallPtrSetTest.cpp373 SmallPtrSet<int *, 2> Set; in TEST() local
378 Set.insert(&buf[0]); in TEST()
379 Set.insert(&buf[1]); in TEST()
380 EXPECT_TRUE(Set.contains(&buf[0])); in TEST()
384 Set.insert(&buf[1]); in TEST()
389 Set.erase(&buf[1]); in TEST()
393 Set.insert(&buf[1]); in TEST()
394 Set.insert(&buf[2]); in TEST()
401 SmallPtrSet<int *, 5> Set; in TEST() local
406 Set.insert(Set.begin(), Ptr); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/TableGen/
H A DSetTheory.td8 class Set<dag d> {
22 def S0a : Set<(add)>;
23 def S0b : Set<(add a)>;
24 def S0c : Set<(add a, b)>;
25 def S0d : Set<(add b, a)>;
26 def S0e : Set<(add a, a)>;
28 def S0g : Set<(add b, a, b)>;
39 def S1a : Set<(add S0a)>;
53 def S2c : Set<(sub S1c, b)>;
72 def S4a : Set<(shl S0f, 0)>;
[all …]
/llvm-project-15.0.7/polly/utils/pyscop/
H A Disl.py288 ("complement", Set, [Set], Set),
308 ("coalesce", Set, [Set], Set),
320 ("convex_hull", Set, [Set], Set),
349 ("flatten", Set, [Set], Set),
357 ("intersect", Set, [Set, Set], Set),
370 ("union", Set, [Set, Set], Set),
376 ("subtract", Set, [Set, Set], Set),
382 ("apply", Set, [Set, Map], Set),
392 ("gist", Set, [Set, Set], Set),
401 ("lexmin", Set, [Set], Set),
[all …]
/llvm-project-15.0.7/clang/unittests/Basic/
H A DFileEntryTest.cpp133 Set.insert(R1Also); in TEST()
134 Set.insert(R1); in TEST()
135 Set.insert(R2); in TEST()
144 Set.insert(R1); in TEST()
145 Set.insert(R1Also); in TEST()
146 Set.insert(R2); in TEST()
174 Set.insert(R1Also); in TEST()
175 Set.insert(R1); in TEST()
176 Set.insert(R2); in TEST()
185 Set.insert(R1); in TEST()
[all …]
H A DSanitizersTest.cpp20 SanitizerSet Set; in TEST() local
21 Set.set(parseSanitizerValue("memory", false), true); in TEST()
22 Set.set(parseSanitizerValue("nullability-arg", false), true); in TEST()
25 serializeSanitizerSet(Set, Serialized); in TEST()
33 SanitizerSet Set; in TEST() local
34 Set.set(parseSanitizerValue("memory", false), true); in TEST()
35 Set.set(parseSanitizerValue("nullability-arg", false), true); in TEST()
36 Set.set(parseSanitizerValue("nullability-assign", false), true); in TEST()
37 Set.set(parseSanitizerValue("nullability-return", false), true); in TEST()
40 serializeSanitizerSet(Set, Serialized); in TEST()
/llvm-project-15.0.7/llvm/test/MC/RISCV/rvv/
H A Dinvalid-eew.s5 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
8 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
11 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
14 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
17 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
20 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
23 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
26 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
29 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
32 …ion Processors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set
[all …]
/llvm-project-15.0.7/lldb/unittests/Language/Highlighting/
H A DHighlighterTest.cpp77 style.identifier.Set("[", "]"); in TEST_F()
78 style.semicolons.Set("<", ">"); in TEST_F()
153 s.keyword.Set("<k>", "</k>"); in TEST_F()
160 s.colon.Set("<c>", "</c>"); in TEST_F()
167 s.braces.Set("<b>", "</b>"); in TEST_F()
243 s.operators.Set("[", "]"); in TEST_F()
258 s.selected.Set("<c>", "</c>"); in TEST_F()
276 s.selected.Set("<c>", "</c>"); in TEST_F()
283 s.selected.Set("<c>", "</c>"); in TEST_F()
291 s.selected.Set("<c>", "</c>"); in TEST_F()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/associative/
H A Diterator_types.pass.cpp38 template <class Set, class ValueTp, class CPtrT>
40 static_assert((std::is_same<typename Set::iterator, in testSet()
42 typedef typename Set::difference_type Diff; in testSet()
44 typedef typename Set::iterator It; in testSet()
94 typedef std::set<ValueTp> Set; in main() typedef
95 testSet<Set, ValueTp, ValueTp const*>(); in main()
101 testSet<Set, ValueTp, ValueTp const*>(); in main()
108 testSet<Set, ValueTp, min_pointer<const ValueTp>>(); in main()
113 typedef std::multiset<ValueTp> Set; in main() typedef
114 testSet<Set, ValueTp, ValueTp const*>(); in main()
[all …]
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DSetTheory.cpp87 RecSet Set; in apply() local
104 if (unsigned(N) < Set.size()) in apply2()
105 Elts.insert(Set.begin() + N, Set.end()); in apply2()
117 N = Set.size(); in apply2()
118 Elts.insert(Set.begin(), Set.begin() + N); in apply2()
133 if (Set.empty()) in apply2()
136 N = Set.size() - (-N % Set.size()); in apply2()
138 N %= Set.size(); in apply2()
139 Elts.insert(Set.begin() + N, Set.end()); in apply2()
140 Elts.insert(Set.begin(), Set.begin() + N); in apply2()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/
H A Diterator_difference_type.pass.cpp52 template <class Set, class ValueTp, class CPtrT>
54 static_assert((std::is_convertible<typename Set::iterator, in testUnorderedSet()
58 typedef typename Set::difference_type Diff; in testUnorderedSet()
60 typedef typename Set::iterator It; in testUnorderedSet()
68 typedef typename Set::local_iterator It; in testUnorderedSet()
117 typedef std::unordered_set<ValueTp> Set; in main() typedef
118 testUnorderedSet<Set, ValueTp, ValueTp const*>(); in main()
124 testUnorderedSet<Set, ValueTp, ValueTp const*>(); in main()
136 typedef std::unordered_multiset<ValueTp> Set; in main() typedef
137 testUnorderedSet<Set, ValueTp, ValueTp const*>(); in main()
[all …]
/llvm-project-15.0.7/llvm/test/MC/RISCV/
H A Drv64a-valid.s12 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
16 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
20 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
24 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
29 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
33 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
37 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
41 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
46 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
50 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/containers/unord/unord.set/
H A Dmissing_hash_specialization.fail.cpp48 using Set = std::unordered_set<VT>; in main() typedef
49Set s; // expected-error@__hash_table:* {{the specified hash does not meet the Hash requirements}} in main()
58 using Set = std::unordered_set<int, BadHashNoCopy>; in main() typedef
59Set s; // expected-error@__hash_table:* {{the specified hash does not meet the Hash requirements}} in main()
62 using Set = std::unordered_set<int, BadHashNoCall>; in main() typedef
63Set s; // expected-error@__hash_table:* {{the specified hash does not meet the Hash requirements}} in main()
66 using Set = std::unordered_set<int, GoodHashNoDefault>; in main() typedef
67 Set s(/*bucketcount*/42, GoodHashNoDefault(nullptr)); in main()
/llvm-project-15.0.7/clang/lib/Basic/
H A DXRayInstr.cpp34 void serializeXRayInstrValue(XRayInstrSet Set, in serializeXRayInstrValue() argument
36 if (Set.Mask == XRayInstrKind::All) { in serializeXRayInstrValue()
41 if (Set.Mask == XRayInstrKind::None) { in serializeXRayInstrValue()
46 if (Set.has(XRayInstrKind::Custom)) in serializeXRayInstrValue()
49 if (Set.has(XRayInstrKind::Typed)) in serializeXRayInstrValue()
52 if (Set.has(XRayInstrKind::FunctionEntry) && in serializeXRayInstrValue()
53 Set.has(XRayInstrKind::FunctionExit)) in serializeXRayInstrValue()
55 else if (Set.has(XRayInstrKind::FunctionEntry)) in serializeXRayInstrValue()
57 else if (Set.has(XRayInstrKind::FunctionExit)) in serializeXRayInstrValue()
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dordered_set.bench.cpp92 for (auto& Set : Sets) { in run() local
113 for (auto& Set : Data.Sets) { in run() local
134 for (auto& Set : Data.Sets) { in run() local
135 benchmark::DoNotOptimize(Set.find(K) != Set.end()); in run()
155 for (auto& Set : Data.Sets) { in run() local
176 for (auto& Set : Data.Sets) { in run() local
177 benchmark::DoNotOptimize(Set.erase(Set.insert(K).first)); in run()
196 for (auto& Set : Data.Sets) { in run() local
197 for (auto& V : Set) { in run()
215 for (auto& Set : Data.Sets) { in run() local
[all …]
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DFlagsTest.cpp52 f.Set(eFlag0); in TEST()
55 f.Set(eFlag1); in TEST()
70 f.Set(eFlag0); in TEST()
73 f.Set(eFlag1); in TEST()
90 f.Set(eFlag0); in TEST()
95 f.Set(eFlag1); in TEST()
113 f.Set(eFlag0); in TEST()
116 f.Set(eFlag1); in TEST()
128 f.Set(eFlag0); in TEST()
131 f.Set(eFlag1); in TEST()
[all …]
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDebugArangeSetTest.cpp34 DWARFDebugArangeSet Set; in ExpectExtractError() local
37 Error E = Set.extract(Extractor, &Offset, Warnings); in ExpectExtractError()
198 DWARFDebugArangeSet Set; in TEST() local
200 ASSERT_THAT_ERROR(Set.extract(Extractor, &Offset, WarningHandler()), in TEST()
202 auto Range = Set.descriptors(); in TEST()
225 DWARFDebugArangeSet Set; in TEST() local
227 ASSERT_THAT_ERROR(Set.extract(Extractor, &Offset, WarningHandler()), in TEST()
229 auto Range = Set.descriptors(); in TEST()
254 DWARFDebugArangeSet Set; in TEST() local
257 ASSERT_THAT_ERROR(Set.extract(Extractor, &Offset, Warnings), Succeeded()); in TEST()
[all …]
/llvm-project-15.0.7/lldb/source/Host/windows/
H A DConnectionGenericFileWindows.cpp30 void Set(size_t bytes, ConnectionStatus status, DWORD error_code) { in Set() function in __anon51e59d5c0111::ReturnInfo
200 return_info.Set(0, eConnectionStatusInterrupted, 0); in Read()
203 return_info.Set(0, eConnectionStatusTimedOut, 0); in Read()
206 return_info.Set(0, eConnectionStatusError, ::GetLastError()); in Read()
219 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read()
223 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read()
225 return_info.Set(bytes_read, eConnectionStatusSuccess, 0); in Read()
230 return_info.Set(0, eConnectionStatusEndOfFile, 0); in Read()
233 return_info.Set(0, eConnectionStatusError, ::GetLastError()); in Read()
279 return_info.Set(0, eConnectionStatusError, ::GetLastError()); in Write()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNoRecursionCheck.cpp30 llvm::DenseSet<T> Set; member in clang::tidy::misc::__anone26a69be0111::ImmutableSmallSet
34 bool isSmall() const { return Set.empty(); } in isSmall()
55 Set.reserve(Storage.size()); in ImmutableSmallSet()
56 Set.insert(Storage.begin(), Storage.end()); in ImmutableSmallSet()
66 return Set.count(V); in count()
81 llvm::DenseSet<T> Set; member in clang::tidy::misc::__anone26a69be0111::SmartSmallSetVector
86 bool isSmall() const { return Set.empty(); } in isSmall()
101 Set.reserve(NewMaxElts); in populateSet()
102 Set.insert(Vector.begin(), Vector.end()); in populateSet()
112 return Set.count(V); in count()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSmallSet.h141 std::set<T, C> Set; variable
158 return Vector.empty() && Set.empty(); in empty()
171 return Set.count(V); in count()
196 Set.insert(Vector.back()); in insert()
199 Set.insert(V); in insert()
211 return Set.erase(V); in erase()
222 Set.clear(); in clear()
228 return {Set.begin()}; in begin()
234 return {Set.end()}; in end()
241 return Set.find(V) != Set.end(); in contains()
[all …]
/llvm-project-15.0.7/polly/lib/Transform/
H A DFlattenAlgo.cpp28 bool isDimBoundedByConstant(isl::set Set, unsigned dim) { in isDimBoundedByConstant() argument
30 Set = Set.project_out(isl::dim::param, 0, ParamDims); in isDimBoundedByConstant()
31 Set = Set.project_out(isl::dim::set, 0, dim); in isDimBoundedByConstant()
32 auto SetDims = unsignedFromIslSize(Set.tuple_dim()); in isDimBoundedByConstant()
34 Set = Set.project_out(isl::dim::set, 1, SetDims - 1); in isDimBoundedByConstant()
35 return bool(Set.is_bounded()); in isDimBoundedByConstant()
42 bool isDimBoundedByParameter(isl::set Set, unsigned dim) { in isDimBoundedByParameter() argument
43 Set = Set.project_out(isl::dim::set, 0, dim); in isDimBoundedByParameter()
44 auto SetDims = unsignedFromIslSize(Set.tuple_dim()); in isDimBoundedByParameter()
46 Set = Set.project_out(isl::dim::set, 1, SetDims - 1); in isDimBoundedByParameter()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DCodeGenOptions.def50 CODEGENOPT(UniqueSectionNames, 1, 1) ///< Set for -funique-section-names.
101 CODEGENOPT(InstrumentFunctionsAfterInlining , 1, 0) ///< Set when
103 CODEGENOPT(InstrumentFunctionEntryBare , 1, 0) ///< Set when
118 ///< Set when -femit-dwarf-unwind is passed.
122 ///< Set when -fxray-always-emit-customevents is enabled.
125 ///< Set when -fxray-always-emit-typedevents is enabled.
128 ///< Set when -fxray-ignore-loops is enabled.
131 ///< Set with -fno-xray-function-index to omit the index section.
151 CODEGENOPT(JMCInstrument, 1, 0) ///< Set when -fjmc is enabled.
153 CODEGENOPT(CallFEntry , 1, 0) ///< Set when -mfentry is enabled.
[all …]

12345678910>>...29