| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/ |
| H A D | oop57-cpp.cpp | 47 std::memset(&Data, 0, sizeof(Data)); in foo() 51 std::memcpy(&Data, &Other, sizeof(Data)); in foo() 55 std::strcpy(&Data, &Other, sizeof(Data)); in foo() 57 std::memcmp(&Data, &Other, sizeof(Data)); in foo() 59 std::strcmp(&Data, &Other, sizeof(Data)); in foo() 65 std::memset(&Data, 0, sizeof(Data)); in bar() 84 mymemset(&Data, 0, sizeof(Data)); in baz() 86 mymemcpy(&Data, &Other, sizeof(Data)); in baz() 88 mymemcmp(&Data, &Other, sizeof(Data)); in baz() 95 std::memset(&Data, 1, sizeof(Data)); in nonNullSetValue() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cpp | 118 << TypeCheckKinds[Data->TypeCheckKind] << Data->Type; in handleTypeMismatchImpl() 124 << Data->Type; in handleTypeMismatchImpl() 129 << TypeCheckKinds[Data->TypeCheckKind] << (void *)Pointer << Data->Type; in handleTypeMismatchImpl() 268 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl() 271 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl() 355 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl() 539 << Value(Data->Type, Val) << Data->Type; in handleLoadInvalidValue() 566 switch (Data->Kind) { in handleImplicitConversion() 828 if (Data->CheckKind != CFITCK_ICall && Data->CheckKind != CFITCK_NVMFCall) in handleCFIBadIcall() 901 if (Data->CheckKind == CFITCK_ICall || Data->CheckKind == CFITCK_NVMFCall) in __ubsan_handle_cfi_check_fail() [all …]
|
| H A D | ubsan_handlers.h | 49 RECOVERABLE(alignment_assumption, AlignmentAssumptionData *Data, 67 RECOVERABLE(negate_overflow, OverflowData *Data, ValueHandle OldVal) 70 RECOVERABLE(divrem_overflow, OverflowData *Data, 81 RECOVERABLE(shift_out_of_bounds, ShiftOutOfBoundsData *Data, 98 UNRECOVERABLE(builtin_unreachable, UnreachableData *Data) 100 UNRECOVERABLE(missing_return, UnreachableData *Data) 125 RECOVERABLE(float_cast_overflow, void *Data, ValueHandle From) 169 RECOVERABLE(invalid_builtin, InvalidBuiltinData *Data) 196 RECOVERABLE(nonnull_arg, NonNullArgData *Data) 197 RECOVERABLE(nullability_arg, NonNullArgData *Data) [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/tests/ |
| H A D | FuzzedDataProviderUnittest.cpp | 123 EXPECT_EQ(std::vector<signed char>(Data + 1 + 10 + 24, Data + sizeof(Data)), in TEST() 143 std::vector<signed char> Expected(Data + 1 + 10 + 24, Data + sizeof(Data)); in TEST() 153 EXPECT_EQ(std::string(Data + 12, Data + sizeof(Data)), in TEST() 219 EXPECT_EQ(std::vector<uint8_t>(Data, Data + sizeof(Data)), in TEST() 229 EXPECT_EQ(std::vector<char>(Data + 123, Data + sizeof(Data)), in TEST() 237 EXPECT_EQ(std::string(Data, Data + sizeof(Data)), in TEST() 246 EXPECT_EQ(std::string(Data + 123, Data + sizeof(Data)), in TEST() 372 EXPECT_EQ(std::vector<uint8_t>(Data + 8, Data + sizeof(Data) - 1), in TEST() 390 EXPECT_EQ(std::vector<uint8_t>(Data, Data + sizeof(Data) - 36), in TEST() 417 EXPECT_EQ((std::vector<uint8_t>(Data, Data + sizeof(Data) - 50)).size(), in TEST() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyUtil.h | 94 : Data(A.Data), Size(A.Size), Capacity(A.Capacity) { in SimpleArray() 102 Data = RHS.Data; 247 CopyOnWriteVector(CopyOnWriteVector &&V) : Data(V.Data) { V.Data = nullptr; } in CopyOnWriteVector() 251 Data = V.Data; 266 bool writable() const { return Data && Data->NumRefs == 1; } in writable() 270 if (!Data) { in init() 277 if (!Data) in destroy() 288 if (!Data) { in makeWritable() 295 Data = new VectorData(*Data); in makeWritable() 337 Data->Vect.erase(Data->Vect.begin() + i, Data->Vect.end()); in downsize() [all …]
|
| /llvm-project-15.0.7/openmp/libomptarget/test/mapping/ |
| H A D | data_member_ref.cpp | 11 int Data; member 15 int *Data; member 25 V.Data = 123456; in main() 28 int Data = 123456; in main() local 29 V1.Data = &Data; in main() 38 V.Data = 654321; in main() 43 printf("Host %d %d.\n", Bar.VRef.Data, V.Data); in main() 44 V.Data = 123456; in main() 51 V.Data = 654321; in main() 56 printf("Host %d %d.\n", Bar.VRef.Data, V.Data); in main() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/PBQP/ |
| H A D | Math.h | 36 std::fill(Data.get(), Data.get() + Length, InitVal); in Vector() 42 std::copy(V.Data.get(), V.Data.get() + Length, Data.get()); in Vector() 47 : Length(V.Length), Data(std::move(V.Data)) { in Vector() 56 return std::equal(Data.get(), Data.get() + Length, V.Data.get()); 83 std::transform(Data.get(), Data.get() + Length, V.Data.get(), Data.get(), 91 return std::min_element(Data.get(), Data.get() + Length) - Data.get(); in minIndex() 136 std::fill(Data.get(), Data.get() + (Rows * Cols), InitVal); in Matrix() 143 std::copy(M.Data.get(), M.Data.get() + (Rows * Cols), Data.get()); in Matrix() 148 : Rows(M.Rows), Cols(M.Cols), Data(std::move(M.Data)) { in Matrix() 157 return std::equal(Data.get(), Data.get() + (Rows * Cols), M.Data.get()); [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | fuchsia.cpp | 36 DCHECK(Data); in allocateVmar() 42 Size, &Data->Vmar, &Data->VmarBase); in allocateVmar() 60 const zx_handle_t Vmar = (Data && Data->Vmar != ZX_HANDLE_INVALID) in map() 67 if (Data && Data->Vmo != ZX_HANDLE_INVALID) { in map() 94 DCHECK(Data); in map() 102 DCHECK(Data); in map() 115 if (Data) in map() 138 if (Data) { in unmap() 141 memset(Data, 0, sizeof(*Data)); in unmap() 149 DCHECK(Data); in setMemoryPermission() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | KeepSeedTest.cpp | 17 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { in LLVMFuzzerTestOneInput() argument 21 if (Size >= 6 && Data[0] == 'S' && Data[1] == 'E' && Data[2] == 'L' && in LLVMFuzzerTestOneInput() 22 Data[3] == 'E' && Data[4] == 'C' && Data[5] == 'T') { in LLVMFuzzerTestOneInput() 23 if (Size >= 7 && Data[6] == ' ') { in LLVMFuzzerTestOneInput() 24 if (Size >= 11 && Data[7] == 'F' && Data[8] == 'R' && Data[9] == 'O' && in LLVMFuzzerTestOneInput() 25 Data[10] == 'M') { in LLVMFuzzerTestOneInput() 26 if (Size >= 12 && Data[11] == ' ') { in LLVMFuzzerTestOneInput() 27 if (Size >= 17 && Data[12] == 'W' && Data[13] == 'H' && in LLVMFuzzerTestOneInput() 28 Data[14] == 'E' && Data[15] == 'R' && Data[16] == 'E') { in LLVMFuzzerTestOneInput()
|
| H A D | Labels20Test.cpp | 13 extern "C" bool Func1(const uint8_t *Data, size_t Size); 18 && Data[0] == 'F' in LLVMFuzzerTestOneInput() 19 && Data[1] == 'U' in LLVMFuzzerTestOneInput() 20 && Data[2] == 'Z' in LLVMFuzzerTestOneInput() 21 && Data[3] == 'Z' in LLVMFuzzerTestOneInput() 22 && Func1(Data, Size) in LLVMFuzzerTestOneInput() 23 && Func2(Data, Size)) { in LLVMFuzzerTestOneInput() 32 bool Func1(const uint8_t *Data, size_t Size) { in Func1() argument 34 return Data[16] == 'M'; in Func1() 39 bool Func2(const uint8_t *Data, size_t Size) { in Func2() argument [all …]
|
| H A D | ThreeFunctionsTest.cpp | 19 extern "C" bool Func1(const uint8_t *Data, size_t Size); 24 && Data[0] == 'F' in LLVMFuzzerTestOneInput() 25 && Data[1] == 'U' in LLVMFuzzerTestOneInput() 26 && Data[2] == 'Z' in LLVMFuzzerTestOneInput() 27 && Data[3] == 'Z' in LLVMFuzzerTestOneInput() 28 && Func1(Data, Size) in LLVMFuzzerTestOneInput() 29 && Func2(Data, Size)) { in LLVMFuzzerTestOneInput() 38 bool Func1(const uint8_t *Data, size_t Size) { in Func1() argument 40 return Data[4] == 'M'; in Func1() 45 bool Func2(const uint8_t *Data, size_t Size) { in Func2() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/LineEditor/ |
| H A D | LineEditor.cpp | 127 FILE *Out = Data->Out; in ElCompletionFn() 204 Data->LE = this; in LineEditor() 205 Data->Out = Out; in LineEditor() 208 assert(Data->Hist); in LineEditor() 211 assert(Data->EL); in LineEditor() 215 ::el_set(Data->EL, EL_HIST, history, Data->Hist); in LineEditor() 225 ::el_set(Data->EL, EL_CLIENTDATA, Data.get()); in LineEditor() 236 ::history_end(Data->Hist); in ~LineEditor() 237 ::el_end(Data->EL); in ~LineEditor() 288 Data->In = In; in LineEditor() [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/unittests/ |
| H A D | ResultAnalyzerTest.cpp | 32 EXPECT_THAT(Data, SizeIs(1)); in TEST() 33 EXPECT_THAT(Data[0].Id, Foo1); in TEST() 51 EXPECT_THAT(Data, SizeIs(1)); in TEST() 52 EXPECT_THAT(Data[0].Id, Foo1); in TEST() 95 Data.begin(), Data.end(), in TEST() 98 EXPECT_THAT(Data[0].Id, Foo1); in TEST() 100 EXPECT_THAT(Data[1].Id, Foo2); in TEST() 106 fillScores(Data); in TEST() 137 Data.begin(), Data.end(), in TEST() 141 fillScores(Data); in TEST() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Symbol/Inputs/ |
| H A D | inlined-functions.yaml | 723 Data: 0 725 Data: 0 743 Data: 9 745 Data: 9 753 Data: 5 755 Data: 5 757 Data: 5 759 Data: 0 761 Data: 0 764 Data: 0 [all …]
|
| /llvm-project-15.0.7/llvm/unittests/XRay/ |
| H A D | ProfileTest.cpp | 58 {P.internPath({2, 1}), Profile::Data{1, 1000}}, in TEST() 118 {{P0.internPath({2, 1}), Profile::Data{1, 1000}}, in TEST() 130 {{P1.internPath({3, 1}), Profile::Data{1, 1000}}, in TEST() 189 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() 192 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() 195 {{Profiles[2].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() 217 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}}, in TEST() 218 {Profiles[0].internPath({4, 1}), Profile::Data{1, 1000}}}}))); in TEST() 221 {{Profiles[0].internPath({3, 1}), Profile::Data{1, 1000}}}}))); in TEST() 226 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/benchmarks/ |
| H A D | map.bench.cpp | 115 auto& Map = Data.Maps.front(); in run() 136 auto& Map = Data.Maps.front(); in run() 180 auto& Map = Data.Maps.front(); in run() 199 auto& Map = Data.Maps.front(); in run() 241 auto Data = makeTestingSets( in run() local 286 auto& Map = Data.Maps[I]; in run() 317 auto& Map = Data.Maps[I]; in run() 360 auto Data = makeTestingSets( in run() local 480 auto Data = makeTestingSets( in run() local 600 auto Data = makeTestingSets( in run() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/include/orc/ |
| H A D | c_api.h | 84 R->Data.ValuePtr = 0; in __orc_rt_CWrapperFunctionResultInit() 96 R.Data.ValuePtr = 0; in __orc_rt_CWrapperFunctionResultAllocate() 97 if (Size > sizeof(R.Data.Value)) in __orc_rt_CWrapperFunctionResultAllocate() 109 if (R.Size > sizeof(R.Data.Value)) { in __orc_rt_CreateCWrapperFunctionResultFromRange() 111 memcpy(Tmp, Data, Size); in __orc_rt_CreateCWrapperFunctionResultFromRange() 112 R.Data.ValuePtr = Tmp; in __orc_rt_CreateCWrapperFunctionResultFromRange() 114 memcpy(R.Data.Value, Data, Size); in __orc_rt_CreateCWrapperFunctionResultFromRange() 144 R.Data.ValuePtr = Tmp; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError() 154 if (R->Size > sizeof(R->Data.Value) || in __orc_rt_DisposeCWrapperFunctionResult() 156 free(R->Data.ValuePtr); in __orc_rt_DisposeCWrapperFunctionResult() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMutate.cpp | 116 std::shuffle(Data + ShuffleStart, Data + ShuffleStart + ShuffleAmount, Rand); in Mutate_ShuffleBytes() 127 memmove(Data + Idx, Data + Idx + N, Size - Idx - N); in Mutate_EraseBytes() 137 memmove(Data + Idx + 1, Data + Idx, Size - Idx); in Mutate_InsertByte() 138 Data[Idx] = RandCh(Rand); in Mutate_InsertByte() 152 memmove(Data + Idx + N, Data + Idx, Size - Idx); in Mutate_InsertRepeatedBytes() 157 Data[Idx + i] = Byte; in Mutate_InsertRepeatedBytes() 193 memmove(Data + Idx + W.size(), Data + Idx, Size - Idx); in ApplyDictionaryEntry() 362 return CopyPartOf(Data, Size, Data, Size); in Mutate_CopyPart() 364 return InsertPartOf(Data, Size, Data, Size, MaxSize); in Mutate_CopyPart() 558 *Data = ' '; in MutateImpl() [all …]
|
| H A D | FuzzerMutate.h | 35 size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize); 41 size_t Mutate_EraseBytes(uint8_t *Data, size_t Size, size_t MaxSize); 43 size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize); 47 size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize); 49 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize); 51 size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize); 70 size_t Mutate_CrossOver(uint8_t *Data, size_t Size, size_t MaxSize); 74 size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize); 79 size_t MutateWithMask(uint8_t *Data, size_t Size, size_t MaxSize, 84 size_t DefaultMutate(uint8_t *Data, size_t Size, size_t MaxSize); [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ObjectYAML/ |
| H A D | DWARFYAMLTest.cpp | 28 YIn >> Data; in parseDWARFYAML() 42 DWARFYAML::Data Data; in TEST() local 91 DWARFYAML::Data Data; in TEST() local 94 ASSERT_TRUE(Data.PubNames.has_value()); in TEST() 103 ASSERT_TRUE(Data.PubTypes.has_value()); in TEST() 125 DWARFYAML::Data Data; in TEST() local 126 EXPECT_THAT_ERROR(parseDWARFYAML(Yaml, Data), in TEST() 157 DWARFYAML::Data Data; in TEST() local 160 ASSERT_TRUE(Data.GNUPubNames.has_value()); in TEST() 171 ASSERT_TRUE(Data.GNUPubTypes.has_value()); in TEST() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/tests/unit/ |
| H A D | segmented_array_test.cpp | 29 Array<TestData> Data(A); in TEST() local 30 (void)Data; in TEST() 132 Array<TestData> Data(A); in TEST() local 134 auto I0Begin = Data.begin(), I0End = Data.end(); in TEST() 149 Data.trim(Segment); in TEST() 160 Data.trim(Segment); in TEST() 164 auto I1Begin = Data.begin(), I1End = Data.end(); in TEST() 221 Data.trim(1); in TEST() 258 Data->trim(1); in TEST() 275 Data->~Array(); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BinaryByteStream.h | 34 : Endian(Endian), Data(Data) {} in BinaryByteStream() 36 : Endian(Endian), Data(Data.bytes_begin(), Data.bytes_end()) {} in BinaryByteStream() 52 Buffer = Data.slice(Offset); in readLongestContiguousChunk() 67 ArrayRef<uint8_t> Data; variable 93 : Data(Data), ImmutableStream(Data, Endian) {} in MutableBinaryByteStream() 128 MutableArrayRef<uint8_t> Data; 135 std::vector<uint8_t> Data; variable 143 void clear() { Data.clear(); } in clear() 157 Data.insert(Data.begin() + Offset, Bytes.begin(), Bytes.end()); in insert() 185 if (RequiredSize > Data.size()) in writeBytes() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/ |
| H A D | InlineInfo.cpp | 78 if (skipRanges(Data, Offset) == 0) in skip() 81 bool HasChildren = Data.getU8(&Offset) != 0; in skip() 82 Data.getU32(&Offset); // Skip Inline.Name. in skip() 124 bool HasChildren = Data.getU8(&Offset) != 0; in lookup() 125 Inline.Name = Data.getU32(&Offset); in lookup() 182 if (!Data.isValidOffset(Offset)) in decode() 192 bool HasChildren = Data.getU8(&Offset) != 0; in decode() 196 Inline.Name = Data.getU32(&Offset); in decode() 197 if (!Data.isValidOffset(Offset)) in decode() 201 if (!Data.isValidOffset(Offset)) in decode() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ObjectYAML/ |
| H A D | DWARFEmitter.h | 28 struct Data; 30 Error emitDebugAbbrev(raw_ostream &OS, const Data &DI); 31 Error emitDebugStr(raw_ostream &OS, const Data &DI); 33 Error emitDebugAranges(raw_ostream &OS, const Data &DI); 34 Error emitDebugRanges(raw_ostream &OS, const Data &DI); 35 Error emitDebugPubnames(raw_ostream &OS, const Data &DI); 36 Error emitDebugPubtypes(raw_ostream &OS, const Data &DI); 39 Error emitDebugInfo(raw_ostream &OS, const Data &DI); 40 Error emitDebugLine(raw_ostream &OS, const Data &DI); 41 Error emitDebugAddr(raw_ostream &OS, const Data &DI); [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-rc/ |
| H A D | memoryflags.test | 6 ; CHECK-NEXT: Data version: 0 10 ; CHECK-NEXT: Data version: 0 14 ; CHECK-NEXT: Data version: 0 18 ; CHECK-NEXT: Data version: 0 22 ; CHECK-NEXT: Data version: 0 26 ; CHECK-NEXT: Data version: 0 30 ; CHECK-NEXT: Data version: 0 34 ; CHECK-NEXT: Data version: 0 38 ; CHECK-NEXT: Data version: 0 42 ; CHECK-NEXT: Data version: 0 [all …]
|