Halide
Introspection.h File Reference
#include <iostream>
#include <stdint.h>
#include <string>

Go to the source code of this file.

Classes

struct  HalideIntrospectionCanary::A
 
class  HalideIntrospectionCanary::A::B
 

Namespaces

 Halide
 This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
 
 Halide::Internal
 
 Halide::Internal::Introspection
 
 HalideIntrospectionCanary
 

Macros

#define HALIDE_DUMP_STACK_FRAME
 

Functions

std::string Halide::Internal::Introspection::get_variable_name (const void *, const std::string &expected_type)
 Get the name of a stack variable from its address. More...
 
void Halide::Internal::Introspection::register_heap_object (const void *obj, size_t size, const void *helper)
 Register an untyped heap object. More...
 
void Halide::Internal::Introspection::deregister_heap_object (const void *obj, size_t size)
 Deregister a heap object. More...
 
bool Halide::Internal::Introspection::dump_stack_frame ()
 Dump the contents of the stack frame of the calling function. More...
 
template<typename T >
const void * Halide::Internal::Introspection::get_introspection_helper ()
 Return the address of a global with type T *. More...
 
std::string Halide::Internal::Introspection::get_source_location ()
 Get the source location in the call stack, skipping over calls in the Halide namespace. More...
 
void Halide::Internal::Introspection::test_compilation_unit (bool(*test)(bool(*)(const void *, const std::string &)), bool(*test_a)(const void *, const std::string &), void(*calib)())
 

Detailed Description

Defines methods for introspecting in C++. Relies on DWARF debugging metadata, so the compilation unit that uses this must be compiled with -g.

Definition in file Introspection.h.

Macro Definition Documentation

◆ HALIDE_DUMP_STACK_FRAME

#define HALIDE_DUMP_STACK_FRAME
Value:
{ \
(void)check; \
}

Definition at line 39 of file Introspection.h.

Halide::Internal::Introspection::dump_stack_frame
bool dump_stack_frame()
Dump the contents of the stack frame of the calling function.