Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 0b2d9aa

Browse files
author
Sven Verdoolaege
committed
introduce halide2isl::ParameterVector shorthand
This emphasizes that the two fields of this type represent the same type of object and it will be reused in the next commit.
1 parent 90beb11 commit 0b2d9aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tc/core/halide2isl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ namespace halide2isl {
3333
/// Helper functions that participate in translating Halide IR to ISL
3434
///
3535

36+
using ParameterVector = std::vector<Halide::Internal::Parameter>;
3637
/// Find and categorize all variables referenced in a piece of Halide IR
3738
struct SymbolTable {
3839
std::vector<std::string> reductionVars, idxVars;
39-
std::vector<Halide::Internal::Parameter> params;
40+
ParameterVector params;
4041
};
4142
SymbolTable makeSymbolTable(const tc2halide::HalideComponents& components);
4243

tc/core/polyhedral/scop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ struct Scop {
472472
public:
473473
// Halide stuff
474474
struct {
475-
std::vector<Halide::Internal::Parameter> params;
475+
halide2isl::ParameterVector params;
476476
std::vector<std::string> idx, reductionIdx;
477477
std::vector<Halide::ImageParam> inputs;
478478
std::vector<Halide::OutputImageParam> outputs;

0 commit comments

Comments
 (0)