Home
last modified time | relevance | path

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

12345678910>>...39

/llvm-project/llvm/unittests/ADT/
H A DSparseMultiSetTest.cpp20 USet Set; in TEST() local
21 EXPECT_TRUE(Set.empty()); in TEST()
22 EXPECT_EQ(0u, Set.size()); in TEST()
24 Set.setUniverse(10); in TEST()
27 EXPECT_TRUE(Set.find(0) == Set.end()); in TEST()
28 EXPECT_TRUE(Set.find(9) == Set.end()); in TEST()
31 const USet &CSet = Set; in TEST()
41 USet Set; in TEST() local
42 Set.setUniverse(10); in TEST()
43 USet::iterator I = Set.insert(5); in TEST()
[all …]
H A DSparseSetTest.cpp20 USet Set; in TEST() local
21 EXPECT_TRUE(Set.empty()); in TEST()
22 EXPECT_TRUE(Set.begin() == Set.end()); in TEST()
23 EXPECT_EQ(0u, Set.size()); in TEST()
25 Set.setUniverse(10); in TEST()
28 EXPECT_FALSE(Set.contains(0)); in TEST()
29 EXPECT_FALSE(Set.contains(9)); in TEST()
32 const USet &CSet = Set; in TEST()
43 USet Set; in TEST() local
82 USet Set; TEST() local
170 ASet Set; TEST() local
189 USet Set; 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()
26 auto Keys = to_vector<4>(Set.keys()); in TEST_F()
36 StringSet<> Set; in TEST_F() local
38 StringMapEntry<StringRef>::create("A", Set.getAllocator()); in TEST_F()
39 Set.insert(*Element); in TEST_F()
40 size_t Count = Set.count(*Element); in TEST_F()
[all …]
H A DSmallPtrSetTest.cpp336 SmallPtrSet<int *, 2> Set; in TEST()
338 EXPECT_FALSE(Set.contains(&buf[0])); in TEST()
339 EXPECT_FALSE(Set.contains(&buf[1])); in TEST()
341 Set.insert(&buf[0]); in TEST()
342 Set.insert(&buf[1]); in TEST()
343 EXPECT_TRUE(Set.contains(&buf[0])); in TEST()
344 EXPECT_TRUE(Set.contains(&buf[1])); in TEST()
345 EXPECT_FALSE(Set.contains(&buf[3])); in TEST()
347 Set.insert(&buf[1]); in TEST()
348 EXPECT_TRUE(Set in TEST()
334 SmallPtrSet<int *, 2> Set; TEST() local
362 SmallPtrSet<int *, 5> Set; TEST() local
375 SmallPtrSet<int *, 5> Set; TEST() local
[all...]
H A DSmallSetTest.cpp274 SmallSet<int, 2> Set;
275 EXPECT_FALSE(Set.contains(0));
276 EXPECT_FALSE(Set.contains(1));
278 Set.insert(0);
279 Set.insert(1);
280 EXPECT_TRUE(Set.contains(0));
281 EXPECT_TRUE(Set.contains(1));
283 Set.insert(1);
284 EXPECT_TRUE(Set.contains(0));
285 EXPECT_TRUE(Set
188 SmallSet<int, 2> Set; TEST() local
[all...]
/llvm-project/llvm/test/TableGen/
H A DSetTheory.td8 class Set<dag d> {
12 // It prints all Set instances and their ordered set interpretation.
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)>;
27 def S0f : Set<(add a, a, b, a, c, b, d, a)>;
28 def S0g : Set<(add b, a, b)>;
37 // Defs of Set class expand into their elements.
[all …]
/llvm-project/clang/unittests/Basic/
H A DFileEntryTest.cpp138 SmallDenseSet<FileEntryRef, 8> Set; in TEST() local
139 Set.insert(R1Also); in TEST()
140 Set.insert(R1); in TEST()
141 Set.insert(R2); in TEST()
142 EXPECT_TRUE(Set.find(R1Also)->isSameRef(R1Also)); in TEST()
143 EXPECT_TRUE(Set.find(R1)->isSameRef(R1Also)); in TEST()
144 EXPECT_TRUE(Set.find(R2)->isSameRef(R2)); in TEST()
149 SmallDenseSet<FileEntryRef, 8> Set; in TEST() local
150 Set.insert(R1); in TEST()
151 Set.insert(R1Also); 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/polly/utils/pyscop/
H A Disl.py106 class Set(IslObject): class
111 return Set(ptr=ptr)
226 return "<dim Set:%s, Param:%s>" % (dimOut, dimParam)
261 ("is_empty", Set, [Set], c_int),
266 # ("is_universe", Set, [Set], c_int),
271 ("is_wrapping", Set, [Set], c_int),
274 ("is_equal", Set, [Se
[all...]
/llvm-project/llvm/test/MC/RISCV/rvv/
H A Dinvalid-eew.s5 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
8 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
11 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
14 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
17 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
20 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
23 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
26 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
29 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
32 …rocessors) or 'Zve64x' (Vector Extensions for Embedded Processors), RV64I Base Instruction Set{{$}}
[all …]
/llvm-project/lldb/unittests/Language/Highlighting/
H A DHighlighterTest.cpp78 style.identifier.Set("[", "]"); in TEST_F()
79 style.semicolons.Set("<", ">"); in TEST_F()
103 style.selected.Set("<c>", "</c>"); in TEST_F()
112 style.selected.Set("<c>", "</c>"); in TEST_F()
132 s.scalar_literal.Set("<scalar>", "</scalar>"); in TEST_F()
139 s.string_literal.Set("<str>", "</str>"); in TEST_F()
147 s.string_literal.Set("<str>", "</str>"); in TEST_F()
154 s.keyword.Set("<k>", "</k>"); in TEST_F()
161 s.colon.Set("<c>", "</c>"); in TEST_F()
168 s.braces.Set("<b>", "</b>"); in TEST_F()
[all …]
/llvm-project/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()
41 typename Set::const_iterator>::value), ""); 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()
100 typedef std::set<ValueTp, std::less<ValueTp>, Alloc> Set; in main() typedef
101 testSet<Set, ValueTp, ValueTp const*>(); in main()
107 typedef std::set<ValueTp, std::less<ValueTp>, Alloc> Set; in main() typedef
[all …]
/llvm-project/llvm/lib/TableGen/
H A DSetTheory.cpp46 // (sub Add, Sub, ...) Set difference.
51 PrintFatalError(Loc, "Set difference needs at least two arguments: " + in apply()
62 // (and S1, S2) Set intersection.
67 PrintFatalError(Loc, "Set intersection requires two arguments: " + in apply()
80 virtual void apply2(SetTheory &ST, const DagInit *Expr, RecSet &Set,
86 PrintFatalError(Loc, "Operator requires (Op Set, Int) arguments: " + in apply()
88 RecSet Set; in apply()
89 ST.evaluate(Expr->arg_begin()[0], Set, Loc); in apply()
94 apply2(ST, Expr, Set, II->getValue(), Elts, Loc); in apply()
100 void apply2(SetTheory &ST, const DagInit *Expr, RecSet &Set, int64_ in apply2()
87 RecSet Set; apply() local
307 expand(Record * Set) expand() argument
[all...]
/llvm-project/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()
55 typename Set::const_iterator>::value), ""); in testUnorderedSet()
56 static_assert((std::is_convertible<typename Set::local_iterator, in testUnorderedSet()
57 typename Set::const_local_iterator>::value), ""); 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()
[all …]
/llvm-project/llvm/test/MC/RISCV/
H A Drv32xtheadmemidx-invalid.s3 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
4 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
5 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
6 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
7 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
8 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
9 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
10 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
11 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
12 … # CHECK: :[[@LINE]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
[all …]
H A Drv64zaamo-valid.s21 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
25 # 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{{$}}
45 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
49 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
53 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{$}}
59 # CHECK-RV32: :[[@LINE+1]]:1: error: instruction requires the following: RV64I Base Instruction Set{{
[all...]
/llvm-project/libcxx/test/libcxx/containers/unord/unord.set/
H A Dmissing_hash_specialization.verify.cpp48 using Set = std::unordered_set<VT>; in main() typedef
49 Set s; // expected-error@__hash_table:* {{the specified hash does not meet the Hash requirements}} in main()
57 using Set = std::unordered_set<int, BadHashNoCopy>; in main()
58 Set s; // expected-error@__hash_table:* {{the specified hash does not meet the Hash requirements}} in main() typedef
61 using Set = std::unordered_set<int, BadHashNoCall>; in main()
62 Set s; // expected-error@__hash_table:* {{the specified hash does not meet the Hash requirements}} in main() typedef
65 using Set = std::unordered_set<int, GoodHashNoDefault>; in main()
66 Set s(/*bucketcount*/42, GoodHashNoDefault(nullptr)); in main() typedef
/llvm-project/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/libcxx/benchmarks/
H A Dordered_set.bench.cpp
/llvm-project/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/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/lldb/source/Host/windows/
H A DConnectionGenericFileWindows.cpp30 void Set(size_t bytes, ConnectionStatus status, DWORD error_code) { in Set() function in __anon2c98e6df0111::ReturnInfo
36 void Set(size_t bytes, ConnectionStatus status, llvm::StringRef error_msg) { in Set() function in __anon2c98e6df0111::ReturnInfo
148 // Set the disconnect event so that any blocking reads unblock, then cancel in Disconnect()
175 return_info.Set(0, eConnectionStatusNoConnection, ERROR_INVALID_HANDLE); in Read()
199 return_info.Set(0, eConnectionStatusInterrupted, 0); in Read()
202 return_info.Set(0, eConnectionStatusTimedOut, 0); in Read()
205 return_info.Set(0, eConnectionStatusError, ::GetLastError()); in Read()
218 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read()
220 return_info.Set(bytes_read, eConnectionStatusError, result_error); in Read()
222 return_info.Set(bytes_rea in Read()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DNoRecursionCheck.cpp28 llvm::DenseSet<T> Set; member in clang::tidy::misc::__anon86076a210111::ImmutableSmallSet
32 bool isSmall() const { return Set.empty(); } in isSmall()
53 Set.reserve(Storage.size()); in ImmutableSmallSet()
54 Set.insert(Storage.begin(), Storage.end()); in ImmutableSmallSet()
64 return Set.count(V); in count()
79 llvm::DenseSet<T> Set; member in clang::tidy::misc::__anon86076a210111::SmartSmallSetVector
84 bool isSmall() const { return Set.empty(); } in isSmall()
94 assert(Set.empty() && "Should not have already utilized the Set."); in populateSet()
99 Set.reserve(NewMaxElts); in populateSet()
100 Set.insert(Vector.begin(), Vector.end()); in populateSet()
[all …]
/llvm-project/clang/include/clang/Basic/
H A DCodeGenOptions.def56 CODEGENOPT(DataSections , 1, 0) ///< Set when -fdata-sections is enabled.
57 CODEGENOPT(UniqueSectionNames, 1, 1) ///< Set for -funique-section-names.
58 CODEGENOPT(UniqueBasicBlockSectionNames, 1, 1) ///< Set for -funique-basic-block-section-names,
61 CODEGENOPT(SeparateNamedSections, 1, 0) ///< Set for -fseparate-named-sections.
62 CODEGENOPT(EnableAIXExtendedAltivecABI, 1, 0) ///< Set for -mabi=vec-extabi. Enables the extended Altivec ABI on AIX.
63 CODEGENOPT(XCOFFReadOnlyPointers, 1, 0) ///< Set for -mxcoff-roptr.
80 CODEGENOPT(DisableRedZone , 1, 0) ///< Set when -mno-red-zone is enabled.
83 CODEGENOPT(IndirectTlsSegRefs, 1, 0) ///< Set when -mno-tls-direct-seg-refs
94 CODEGENOPT(EmulatedTLS , 1, 0) ///< Set by default or -f[no-]emulated-tls.
99 CODEGENOPT(OutputAsmVariant, 2, 3) ///< Set th
[all...]
/llvm-project/llvm/include/llvm/ADT/
H A DSmallSet.h29 /// delegating to the underlying SmallVector or Set iterators.
137 std::set<T, C> Set;
168 [[nodiscard]] bool empty() const { return Vector.empty() && Set.empty(); } in count()
171 return isSmall() ? Vector.size() : Set.size(); in count()
195 return Set.erase(V); in insert()
206 Set.clear();
212 return {Set.begin()}; in erase()
218 return {Set.end()}; in clear()
225 return Set.find(V) != Set in begin()
140 std::set<T, C> Set; global() variable
[all...]

12345678910>>...39