https://github.com/halide/Halide
Raw File
Tip revision: 5601365c96adaba27cd9c694be3f62baaf6a0f0f authored by Steven Johnson on 06 December 2022, 01:51:57 UTC
Skip correctness_allocator_alignment under wasm
Tip revision: 5601365
Tuple.cpp
#include "Tuple.h"
#include "Debug.h"
#include "Func.h"

namespace Halide {

Tuple::Tuple(const FuncRef &f)
    : exprs(f.size()) {
    user_assert(f.size() > 1)
        << "Can't construct a Tuple from a call to Func \""
        << f.function().name() << "\" because it does not return a Tuple.\n";
    for (size_t i = 0; i < f.size(); i++) {
        exprs[i] = f[i];
    }
}

}  // namespace Halide
back to top