Skip to main content

Module plumbing

Module plumbing 

Source
Expand description

The implementation of the query system itself. This defines the macros that generate the actual methods on tcx which find and execute the provider, manage the caches, and so forth.

Macrosยง

call_provider ๐Ÿ”’
cycle_error_handling ๐Ÿ”’
define_queries ๐Ÿ”’
hash_result ๐Ÿ”’
if_cache_on_disk ๐Ÿ”’
Expands to one of two token trees, depending on whether the current query has the cache_on_disk_if modifier.
is_anon ๐Ÿ”’
is_depth_limit ๐Ÿ”’
is_eval_always ๐Ÿ”’
is_feedable ๐Ÿ”’
item_if_cache_on_disk ๐Ÿ”’
Conditionally expands to some token trees, if the current query has the cache_on_disk_if modifier.

Functionsยง

collect_active_jobs_from_all_queries
Returns a map of currently active query jobs, collected from all queries.
create_deferred_query_stack_frame ๐Ÿ”’
current_query_job ๐Ÿ”’
depth_limit_error ๐Ÿ”’
encode_all_query_results ๐Ÿ”’
encode_query_results_inner ๐Ÿ”’
force_from_dep_node_inner ๐Ÿ”’
Implementation of DepKindVTable::force_from_dep_node for queries.
loadable_from_disk ๐Ÿ”’
mk_query_stack_frame_extra ๐Ÿ”’
The deferred part of a deferred query stack frame.
next_job_id ๐Ÿ”’
query_key_hash_verify ๐Ÿ”’
query_key_hash_verify_all
start_query ๐Ÿ”’
Executes a job by changing the ImplicitCtxt to point to the new query job while it executes.
try_load_from_disk ๐Ÿ”’
try_load_from_on_disk_cache_inner ๐Ÿ”’
Implementation of DepKindVTable::try_load_from_on_disk_cache for queries.
try_mark_green ๐Ÿ”’