Revision d12fbd17b2ec62d7a50fd23a74fbff4f9b247357 authored by Steven Johnson on 23 November 2021, 17:33:38 UTC, committed by GitHub on 23 November 2021, 17:33:38 UTC
The existing code will emit something like `halide_dimension_t foo_buffer_shape[] = {};` for these, which is a zero-length array, which some compilers will (justifiably) say has no effect. We should be able to just use nullptr for the shape in these cases.
1 parent 59d6da7
internal.cpp
#include "Associativity.h"
#include "AutoScheduleUtils.h"
#include "Bounds.h"
#include "CPlusPlusMangle.h"
#include "CSE.h"
#include "CodeGen_C.h"
#include "Deinterleave.h"
#include "Func.h"
#include "Generator.h"
#include "IR.h"
#include "IREquality.h"
#include "IRMatch.h"
#include "IRPrinter.h"
#include "Interval.h"
#include "ModulusRemainder.h"
#include "Monotonic.h"
#include "Reduction.h"
#include "Solve.h"
#include "UniquifyVariableNames.h"
using namespace Halide;
using namespace Halide::Internal;
int main(int argc, const char **argv) {
IRPrinter::test();
CodeGen_C::test();
ir_equality_test();
bounds_test();
expr_match_test();
deinterleave_vector_test();
modulus_remainder_test();
cse_test();
solve_test();
target_test();
cplusplus_mangle_test();
is_monotonic_test();
split_predicate_test();
associativity_test();
generator_test();
propagate_estimate_test();
uniquify_variable_names_test();
printf("Success!\n");
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...