diff options
author | Alon Zakai <azakai@google.com> | 2024-04-11 14:17:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 14:17:56 -0700 |
commit | 81f72e8e77e9c67f1ebf178f26edce3b6ebbd9d5 (patch) | |
tree | 405872e4f86b3aef55e51d73e196433e0fb48a80 /src/tools/fuzzing.h | |
parent | d662d732ff471ea40eacc68cf62391acf27eec4e (diff) | |
download | binaryen-81f72e8e77e9c67f1ebf178f26edce3b6ebbd9d5.tar.gz binaryen-81f72e8e77e9c67f1ebf178f26edce3b6ebbd9d5.tar.bz2 binaryen-81f72e8e77e9c67f1ebf178f26edce3b6ebbd9d5.zip |
Fuzzer: Emit signed Struct/ArrayGet operations (#6486)
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index 837713dce..76c0e13c8 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -345,6 +345,11 @@ private: Expression* makeRefEq(Type type); Expression* makeRefTest(Type type); Expression* makeRefCast(Type type); + + // Decide to emit a signed Struct/ArrayGet sometimes, when the field is + // packed. + bool maybeSignedGet(const Field& field); + Expression* makeStructGet(Type type); Expression* makeStructSet(Type type); Expression* makeArrayGet(Type type); |