iree/hal/allocator.h
static inline void iree_hal_allocator_statistics_record_free(
    iree_hal_allocator_statistics_t* statistics,
    iree_hal_memory_type_t memory_type, iree_device_size_t allocation_size) {
  if (iree_all_bits_set(memory_type, IREE_HAL_MEMORY_TYPE_HOST_LOCAL)) {
    statistics->host_bytes_freed += allocation_size;
  } else {
    statistics->device_bytes_freed += allocation_size;
  }
}
// Records a buffer deallocation to |statistics|.
Records a buffer deallocation to |statistics|.
Records a buffer deallocation to |statistics| .
static inline void iree_hal_allocator_statistics_record_free(
    iree_hal_allocator_statistics_t* statistics,
    iree_hal_memory_type_t memory_type, iree_device_size_t allocation_size) {
  if (iree_all_bits_set(memory_type, IREE_HAL_MEMORY_TYPE_HOST_LOCAL)) {
    statistics->host_bytes_freed += allocation_size;
  } else {
    statistics->device_bytes_freed += allocation_size;
  }
}
static inline void iree_hal_allocator_statistics_record_free ( iree_hal_allocator_statistics_t * statistics , iree_hal_memory_type_t memory_type , iree_device_size_t allocation_size ) { if ( iree_all_bits_set ( memory_type , IREE_HAL_MEMORY_TYPE_HOST_LOCAL ) ) { statistics -> host_bytes_freed += allocation_size ; } else { statistics -> device_bytes_freed += allocation_size ; } }
Records a buffer deallocation to |statistics|.
Records a buffer deallocation to |statistics| .