https://github.com/halide/Halide
Raw File
Tip revision: 576dda65d1a9a4ad292a55821960d66e74edbc04 authored by Steven Johnson on 23 August 2022, 17:01:17 UTC
Merge branch 'rootjalex/fix-sat-overflow' into srj/sat-fixes-exp
Tip revision: 576dda6
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