summaryrefslogtreecommitdiffstats
path: root/mlir/lib/TableGen
diff options
context:
space:
mode:
authorKazuaki Ishizaki <kiszk@users.noreply.github.com>2019-10-20 00:11:03 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-10-20 00:11:34 -0700
commit8bfedb3ca599ccf3c507e721f4bf5e6a3b026f8c (patch)
treeda6308901341daa89423c3c956a74a881378d71b /mlir/lib/TableGen
parent8317bd85e5cccc8048cd1be1b3b17c19c953764d (diff)
downloadbcm5719-llvm-8bfedb3ca599ccf3c507e721f4bf5e6a3b026f8c.tar.gz
bcm5719-llvm-8bfedb3ca599ccf3c507e721f4bf5e6a3b026f8c.zip
Fix minor spelling tweaks (NFC)
Closes tensorflow/mlir#177 PiperOrigin-RevId: 275692653
Diffstat (limited to 'mlir/lib/TableGen')
-rw-r--r--mlir/lib/TableGen/Pattern.cpp2
-rw-r--r--mlir/lib/TableGen/Predicate.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp
index 9db085a310b..2986f30dee6 100644
--- a/mlir/lib/TableGen/Pattern.cpp
+++ b/mlir/lib/TableGen/Pattern.cpp
@@ -475,7 +475,7 @@ std::vector<tblgen::AppliedConstraint> tblgen::Pattern::getConstraints() const {
for (auto it : *listInit) {
auto *dagInit = dyn_cast<llvm::DagInit>(it);
if (!dagInit)
- PrintFatalError(def.getLoc(), "all elemements in Pattern multi-entity "
+ PrintFatalError(def.getLoc(), "all elements in Pattern multi-entity "
"constraints should be DAG nodes");
std::vector<std::string> entities;
diff --git a/mlir/lib/TableGen/Predicate.cpp b/mlir/lib/TableGen/Predicate.cpp
index bc2b424ab00..f8f23e04c3f 100644
--- a/mlir/lib/TableGen/Predicate.cpp
+++ b/mlir/lib/TableGen/Predicate.cpp
@@ -170,7 +170,7 @@ static PredNode *buildPredicateTree(const tblgen::Pred &root,
}
// If the current combined predicate is a leaf substitution, append it to the
- // list before contiuing.
+ // list before continuing.
auto allSubstitutions = llvm::to_vector<4>(substitutions);
if (rootNode->kind == PredCombinerKind::SubstLeaves) {
const auto &substPred = static_cast<const tblgen::SubstLeavesPred &>(root);
@@ -223,7 +223,7 @@ static PredNode *propagateGroundTruth(
// TODO(zinenko,jpienaar): we can support ground truth for rewritten
// predicates by either (a) having our own unique'ing of the predicates
// instead of relying on TableGen record pointers or (b) taking ground truth
- // values optinally prefixed with a list of substitutions to apply, e.g.
+ // values optionally prefixed with a list of substitutions to apply, e.g.
// "predX is true by itself as well as predSubY leaf substitution had been
// applied to it".
if (node->kind == PredCombinerKind::SubstLeaves) {
OpenPOWER on IntegriCloud