dawn-cmake/fuzzers
Ben Clayton 587f387fd9 Add tint::BlockAllocator<T>
A container and allocator of objects of (or deriving from) the template type `T`.

Objects are allocated by calling Create(), and are owned by the BlockAllocator.
When the BlockAllocator is destructed, all constructed objects are automatically destructed and freed.

Objects held by the BlockAllocator can be iterated over using a View or ConstView.

Use this to hold the ast::Nodes in the ast::Module

This is called BlockAllocator as it can be optimized to hold objects in contiguous memory blocks, which will improve cache coherencey. Currently BlockAllocator is a straight port of the vector-of-unique-ptr, taken from ast::Module.

Change-Id: I4bf4d298aec3c70d2ddf833e2f168416cbb024c0
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38001
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-01-21 15:30:10 +00:00
..
CMakeLists.txt Fix typos in CMakeLists 2021-01-18 21:39:14 +00:00
dictionary.txt Update storage_buffer storage class. 2021-01-18 21:06:34 +00:00
tint_all_transforms_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_ast_clone_fuzzer.cc Add tint::BlockAllocator<T> 2021-01-21 15:30:10 +00:00
tint_bound_array_accessors_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_common_fuzzer.cc Initialize transform manager to null in fuzzer 2021-01-18 19:48:54 +00:00
tint_common_fuzzer.h Add fuzzer for Inspector 2021-01-13 15:50:11 +00:00
tint_emit_vertex_point_size_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_first_index_offset_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_inspector_fuzzer.cc Add in Inspector Fuzzer implementation file 2021-01-13 20:15:32 +00:00
tint_spv_reader_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_spv_reader_hlsl_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_spv_reader_msl_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_spv_reader_spv_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_spv_reader_wgsl_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_wgsl_reader_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_wgsl_reader_hlsl_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_wgsl_reader_msl_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_wgsl_reader_spv_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00
tint_wgsl_reader_wgsl_writer_fuzzer.cc Re-land fuzzing work with fix 2021-01-12 16:23:48 +00:00