https://github.com/halide/Halide
Raw File
Tip revision: cb38e7514d23ca703d526bea2bf00befad17781a authored by Alex Reinking on 25 August 2020, 23:42:50 UTC
Replace large code model build option with target feature.
Tip revision: cb38e75
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