Home
last modified time | relevance | path

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

/external/llvm-project/llvm/unittests/FuzzMutate/
DStrategiesTest.cpp66 void IterateOnSource(StringRef Source, IRMutator &Mutator) { in IterateOnSource() argument
73 Mutator.mutateModule(*M, Seed, Source.size(), Source.size() + 100); in IterateOnSource()
85 auto Mutator = createInjectorMutator(); in TEST() local
86 ASSERT_TRUE(Mutator); in TEST()
88 Mutator->mutateModule(*M, Seed, 1, 1); in TEST()
106 auto Mutator = createDeleterMutator(); in TEST() local
107 ASSERT_TRUE(Mutator); in TEST()
109 IterateOnSource(Source, *Mutator); in TEST()
132 auto Mutator = createDeleterMutator(); in TEST() local
133 ASSERT_TRUE(Mutator); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DSpeculation.cpp82 IRBuilder<> Mutator(MContext); in emit() local
111 Mutator.SetInsertPoint(SpeculateDecisionBlock); in emit()
114 Mutator.CreateLoad(LoadValueTy, SpeculatorGuard, "guard.value"); in emit()
117 Mutator.CreateICmpEQ(LoadGuard, ConstantInt::get(LoadValueTy, 0), in emit()
119 Mutator.CreateCondBr(CanSpeculate, SpeculateBlock, &ProgramEntry); in emit()
121 Mutator.SetInsertPoint(SpeculateBlock); in emit()
123 Mutator.CreatePtrToInt(&Fn, Type::getInt64Ty(MContext)); in emit()
124 Mutator.CreateCall(RuntimeCallTy, RuntimeCall, in emit()
126 Mutator.CreateStore(ConstantInt::get(LoadValueTy, 1), in emit()
128 Mutator.CreateBr(&ProgramEntry); in emit()
[all …]
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DSpeculation.cpp79 IRBuilder<> Mutator(MContext); in emit() local
108 Mutator.SetInsertPoint(SpeculateDecisionBlock); in emit()
111 Mutator.CreateLoad(LoadValueTy, SpeculatorGuard, "guard.value"); in emit()
114 Mutator.CreateICmpEQ(LoadGuard, ConstantInt::get(LoadValueTy, 0), in emit()
116 Mutator.CreateCondBr(CanSpeculate, SpeculateBlock, &ProgramEntry); in emit()
118 Mutator.SetInsertPoint(SpeculateBlock); in emit()
120 Mutator.CreatePtrToInt(&Fn, Type::getInt64Ty(MContext)); in emit()
121 Mutator.CreateCall(RuntimeCallTy, RuntimeCall, in emit()
123 Mutator.CreateStore(ConstantInt::get(LoadValueTy, 1), in emit()
125 Mutator.CreateBr(&ProgramEntry); in emit()
[all …]
/external/pigweed/pw_persistent_ram/public/pw_persistent_ram/
Dpersistent.h65 class Mutator {
67 explicit constexpr Mutator(Persistent<T>& persistent) in Mutator() function
69 ~Mutator() { persistent_.crc_ = persistent_.CalculateCrc(); } in ~Mutator()
71 Mutator(const Mutator&) = delete; // Copy constructor is disabled.
136 Mutator mutator(GetterAction action = GetterAction::kAssertValid) {
142 return Mutator(*this);
146 friend class Mutator;
/external/libprotobuf-mutator/src/libfuzzer/
Dlibfuzzer_mutator.cc73 int32_t Mutator::MutateInt32(int32_t value) { return MutateValue(value); } in MutateInt32()
75 int64_t Mutator::MutateInt64(int64_t value) { return MutateValue(value); } in MutateInt64()
77 uint32_t Mutator::MutateUInt32(uint32_t value) { return MutateValue(value); } in MutateUInt32()
79 uint64_t Mutator::MutateUInt64(uint64_t value) { return MutateValue(value); } in MutateUInt64()
81 float Mutator::MutateFloat(float value) { return MutateValue(value); } in MutateFloat()
83 double Mutator::MutateDouble(double value) { return MutateValue(value); } in MutateDouble()
85 std::string Mutator::MutateString(const std::string& value, in MutateString()
Dlibfuzzer_mutator.h28 class Mutator : public protobuf_mutator::Mutator {
30 using protobuf_mutator::Mutator::Mutator;
Dlibfuzzer_macro.cc125 Mutator* GetMutator() { in GetMutator()
126 static Mutator mutator; in GetMutator()
/external/libprotobuf-mutator/src/
Dmutator.cc431 std::unordered_multimap<const Descriptor*, Mutator::PostProcess>;
513 Mutator* mutator) in FieldMutator()
521 RepeatMutate(value, std::bind(&Mutator::MutateInt32, mutator_, _1)); in Mutate()
525 RepeatMutate(value, std::bind(&Mutator::MutateInt64, mutator_, _1)); in Mutate()
529 RepeatMutate(value, std::bind(&Mutator::MutateUInt32, mutator_, _1)); in Mutate()
533 RepeatMutate(value, std::bind(&Mutator::MutateUInt64, mutator_, _1)); in Mutate()
537 RepeatMutate(value, std::bind(&Mutator::MutateFloat, mutator_, _1)); in Mutate()
541 RepeatMutate(value, std::bind(&Mutator::MutateDouble, mutator_, _1)); in Mutate()
545 RepeatMutate(value, std::bind(&Mutator::MutateBool, mutator_, _1)); in Mutate()
550 std::bind(&Mutator::MutateEnum, mutator_, _1, value->count)); in Mutate()
[all …]
Dmutator.h45 class Mutator {
48 Mutator() = default;
49 virtual ~Mutator() = default;
Dmutator_test.cc304 class TestMutator : public Mutator {
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerMutate.h99 struct Mutator { struct
107 Vector<Mutator> &Mutators); argument
149 Vector<Mutator> Mutators;
150 Vector<Mutator> DefaultMutators;
151 Vector<Mutator> CurrentMutatorSequence;
DFuzzerMutate.cpp525 Vector<Mutator> &Mutators) { in MutateImpl()
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerMutate.h99 struct Mutator { struct
107 Vector<Mutator> &Mutators); argument
149 Vector<Mutator> Mutators;
150 Vector<Mutator> DefaultMutators;
151 Vector<Mutator> CurrentMutatorSequence;
DFuzzerMutate.cpp525 Vector<Mutator> &Mutators) { in MutateImpl()
/external/llvm/lib/Fuzzer/test/
DFuzzerUnittest.cpp88 typedef size_t (MutationDispatcher::*Mutator)(uint8_t *Data, size_t Size, typedef
91 void TestEraseByte(Mutator M, int NumIter) { in TestEraseByte()
127 void TestInsertByte(Mutator M, int NumIter) { in TestInsertByte()
163 void TestChangeByte(Mutator M, int NumIter) { in TestChangeByte()
199 void TestChangeBit(Mutator M, int NumIter) { in TestChangeBit()
235 void TestShuffleBytes(Mutator M, int NumIter) { in TestShuffleBytes()
265 void TestAddWordFromDictionary(Mutator M, int NumIter) { in TestAddWordFromDictionary()
307 void TestAddWordFromDictionaryWithHint(Mutator M, int NumIter) { in TestAddWordFromDictionaryWithHint()
336 void TestChangeASCIIInteger(Mutator M, int NumIter) { in TestChangeASCIIInteger()
/external/llvm-project/llvm/tools/llvm-opt-fuzzer/
Dllvm-opt-fuzzer.cpp38 static std::unique_ptr<IRMutator> Mutator; variable
59 assert(Mutator && in LLVMFuzzerCustomMutator()
69 Mutator->mutateModule(*M, Seed, Size, MaxSize); in LLVMFuzzerCustomMutator()
253 Mutator = createOptMutator(); in LLVMFuzzerInitialize()
/external/llvm-project/llvm/tools/llvm-isel-fuzzer/
Dllvm-isel-fuzzer.cpp53 static std::unique_ptr<IRMutator> Mutator; variable
78 Mutator->mutateModule(*M, Seed, Size, MaxSize); in LLVMFuzzerCustomMutator()
171 Mutator = createISelMutator(); in LLVMFuzzerInitialize()
/external/llvm/lib/Fuzzer/
DFuzzerInternal.h306 struct Mutator { struct
314 const std::vector<Mutator> &Mutators); argument
327 std::vector<Mutator> CurrentMutatorSequence;
332 std::vector<Mutator> Mutators;
333 std::vector<Mutator> DefaultMutators;
DFuzzerMutate.cpp284 const std::vector<Mutator> &Mutators) { in MutateImpl()
/external/llvm-project/compiler-rt/lib/fuzzer/tests/
DFuzzerUnittest.cpp114 typedef size_t (MutationDispatcher::*Mutator)(uint8_t *Data, size_t Size, typedef
117 void TestEraseBytes(Mutator M, int NumIter) { in TestEraseBytes()
171 void TestInsertByte(Mutator M, int NumIter) { in TestInsertByte()
207 void TestInsertRepeatedBytes(Mutator M, int NumIter) { in TestInsertRepeatedBytes()
251 void TestChangeByte(Mutator M, int NumIter) { in TestChangeByte()
287 void TestChangeBit(Mutator M, int NumIter) { in TestChangeBit()
323 void TestShuffleBytes(Mutator M, int NumIter) { in TestShuffleBytes()
353 void TestCopyPart(Mutator M, int NumIter) { in TestCopyPart()
416 void TestAddWordFromDictionary(Mutator M, int NumIter) { in TestAddWordFromDictionary()
458 void TestChangeASCIIInteger(Mutator M, int NumIter) { in TestChangeASCIIInteger()
[all …]
/external/rust/crates/libfuzzer-sys/libfuzzer/tests/
DFuzzerUnittest.cpp114 typedef size_t (MutationDispatcher::*Mutator)(uint8_t *Data, size_t Size, typedef
117 void TestEraseBytes(Mutator M, int NumIter) { in TestEraseBytes()
171 void TestInsertByte(Mutator M, int NumIter) { in TestInsertByte()
207 void TestInsertRepeatedBytes(Mutator M, int NumIter) { in TestInsertRepeatedBytes()
251 void TestChangeByte(Mutator M, int NumIter) { in TestChangeByte()
287 void TestChangeBit(Mutator M, int NumIter) { in TestChangeBit()
323 void TestShuffleBytes(Mutator M, int NumIter) { in TestShuffleBytes()
353 void TestCopyPart(Mutator M, int NumIter) { in TestCopyPart()
416 void TestAddWordFromDictionary(Mutator M, int NumIter) { in TestAddWordFromDictionary()
458 void TestChangeASCIIInteger(Mutator M, int NumIter) { in TestChangeASCIIInteger()
[all …]
/external/pigweed/pw_persistent_ram/
Ddocs.rst164 a working copy. To work around this, you can get a Mutator handle that provides
165 direct access to the underlying object. As long as the Mutator is in scope, it
167 modify the object in place. Once the Mutator goes out of scope, the Persistent
/external/libprotobuf-mutator/
DREADME.md63 class MyProtobufMutator : public protobuf_mutator::Mutator {
/external/llvm-project/clang-tools-extra/clangd/
DTUScheduler.cpp190 void update(llvm::function_ref<void(TUStatus &)> Mutator) { in update() argument
192 Mutator(Status); in update()
/external/googletest/docs/
Dgmock_cook_book.md2002 class MockMutator : public Mutator {
2029 class MockMutator : public Mutator {