GCC Middle and Back End API Reference
auto_purge_vect_location Class Reference

#include <tree-vectorizer.h>

Public Member Functions

 ~auto_purge_vect_location ()
 

Detailed Description

A sentinel class for ensuring that the "vect_location" global gets reset at the end of a scope. The "vect_location" global is used during dumping and contains a location_t, which could contain references to a tree block via the ad-hoc data. This data is used for tracking inlining information, but it's not a GC root; it's simply assumed that such locations never get accessed if the blocks are optimized away. Hence we need to ensure that such locations are purged at the end of any operations using them (e.g. via this class).

Constructor & Destructor Documentation

◆ ~auto_purge_vect_location()

auto_purge_vect_location::~auto_purge_vect_location ( )
auto_purge_vect_location's dtor: reset the vect_location global, to avoid stale location_t values that could reference GC-ed blocks.

References vect_location.


The documentation for this class was generated from the following files: