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

Commit 98bf0f5

Browse files
author
Sven Verdoolaege
committed
codegen_llvm.cc: introduce explicit IteratorMapType
This will make it easier to change the type of the data used to represent the iterators in a statement.
1 parent c1dafe7 commit 98bf0f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/polyhedral/codegen_llvm.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ isl::aff makeIslAffFromExpr(isl::space space, const Halide::Expr& e);
7272

7373
namespace polyhedral {
7474

75+
using IteratorMapType = isl::pw_multi_aff;
7576
using IteratorMapsType =
76-
std::unordered_map<isl::id, isl::pw_multi_aff, isl::IslIdIslHash>;
77+
std::unordered_map<isl::id, IteratorMapType, isl::IslIdIslHash>;
7778

7879
using IteratorLLVMValueMapType =
7980
std::unordered_map<isl::id, llvm::Value*, isl::IslIdIslHash>;
@@ -214,7 +215,7 @@ static constexpr int kOptLevel = 3;
214215

215216
class CodeGen_TC : public Halide::Internal::CodeGen_X86 {
216217
public:
217-
const isl::pw_multi_aff* iteratorMap_;
218+
const IteratorMapType* iteratorMap_;
218219
CodeGen_TC(Target t) : CodeGen_X86(t) {}
219220

220221
using CodeGen_X86::codegen;

0 commit comments

Comments
 (0)