Halide 17.0.1
Halide compiler and libraries
Loading...
Searching...
No Matches
Introspection.h File Reference

Defines methods for introspecting in C++. More...

#include <cstdint>
#include <iostream>
#include <string>

Go to the source code of this file.

Classes

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

Namespaces

namespace  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.
 
namespace  Halide::Internal
 
namespace  Halide::Internal::Introspection
 
namespace  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.
 
void Halide::Internal::Introspection::register_heap_object (const void *obj, size_t size, const void *helper)
 Register an untyped heap object.
 
void Halide::Internal::Introspection::deregister_heap_object (const void *obj, size_t size)
 Deregister a heap object.
 
bool Halide::Internal::Introspection::dump_stack_frame ()
 Dump the contents of the stack frame of the calling function.
 
template<typename T >
const void * Halide::Internal::Introspection::get_introspection_helper ()
 Return the address of a global with type T *.
 
std::string Halide::Internal::Introspection::get_source_location ()
 Get the source location in the call stack, skipping over calls in the Halide namespace.
 
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; \
}
bool dump_stack_frame()
Dump the contents of the stack frame of the calling function.

Definition at line 39 of file Introspection.h.