From c2e4981cbf6386b21192c19c6616dcc0ed9f2ce1 Mon Sep 17 00:00:00 2001 From: Alex Reinking Date: Tue, 5 Nov 2024 12:41:23 -0500 Subject: [PATCH] Fix typos --- src/Reduction.cpp | 4 ++-- src/Reduction.h | 2 +- src/Schedule.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Reduction.cpp b/src/Reduction.cpp index bacd79ac4869..bedb51065694 100644 --- a/src/Reduction.cpp +++ b/src/Reduction.cpp @@ -147,10 +147,10 @@ ReductionDomain::ReductionDomain(const std::vector &domain) contents->domain = domain; } -ReductionDomain::ReductionDomain(const std::vector &domain, const Expr &predictate, bool frozen) +ReductionDomain::ReductionDomain(const std::vector &domain, const Expr &predicate, bool frozen) : contents(new ReductionDomainContents) { contents->domain = domain; - contents->predicate = predictate; + contents->predicate = predicate; contents->frozen = frozen; } diff --git a/src/Reduction.h b/src/Reduction.h index d32cb51b2bdd..d36e803b9f5a 100644 --- a/src/Reduction.h +++ b/src/Reduction.h @@ -79,7 +79,7 @@ class ReductionDomain { * for more details. */ void where(Expr predicate); - /** Return the predicate defined on this reducation demain. */ + /** Return the predicate defined on this reduction domain. */ Expr predicate() const; /** Set the predicate, replacing any previously set predicate. */ diff --git a/src/Schedule.cpp b/src/Schedule.cpp index 72737b596e91..9f5f51d7a043 100644 --- a/src/Schedule.cpp +++ b/src/Schedule.cpp @@ -292,7 +292,7 @@ void destroy(const FuncScheduleContents *p) { delete p; } -/** A schedule for a sigle halide stage_index, which defines where, when, and +/** A schedule for a single halide stage_index, which defines where, when, and * how it should be evaluated. */ struct StageScheduleContents { mutable RefCount ref_count;