#include <sstream>
#include <stdexcept>
#include "Debug.h"
#include "runtime/HalideRuntime.h"
Go to the source code of this file.
|
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 |
|
|
#define | _halide_internal_assertion(condition, flags) |
| _halide_internal_assertion is used to implement our assertion macros in such a way that the messages output for the assertion are only evaluated if the assertion's value is false.
|
|
#define | internal_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, 0) |
|
#define | user_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User) |
|
#define | user_warning Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User | Halide::Internal::ErrorReport::Warning) |
|
#define | halide_runtime_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User | Halide::Internal::ErrorReport::Runtime) |
|
#define | internal_assert(c) |
|
#define | user_assert(c) |
|
#define | _halide_user_assert(c) |
|
◆ _halide_internal_assertion
#define _halide_internal_assertion |
( |
| condition, |
|
|
| flags ) |
Value: \
HALIDE_ALWAYS_INLINE ErrorReport & ref()
_halide_internal_assertion is used to implement our assertion macros in such a way that the messages output for the assertion are only evaluated if the assertion's value is false.
Note that this macro intentionally has no parens internally; in actual use, the implicit grouping will end up being
condition ? (void) : (Voidifier() & (ErrorReport << arg1 << arg2 ... << argN))
This (regrettably) requires a macro to work, but has the highly desirable effect that all assertion parameters are totally skipped (not ever evaluated) when the assertion is true.
Definition at line 155 of file Error.h.
◆ internal_error
◆ user_error
◆ user_warning
◆ halide_runtime_error
◆ internal_assert
#define internal_assert |
( |
| c | ) |
|
Value:
#define _halide_internal_assertion(condition, flags)
_halide_internal_assertion is used to implement our assertion macros in such a way that the messages ...
Definition at line 164 of file Error.h.
◆ user_assert
◆ _halide_user_assert
#define _halide_user_assert |
( |
| c | ) |
|