diff options
author | Christian Sigg <csigg@google.com> | 2019-10-04 04:37:14 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-04 04:37:53 -0700 |
commit | 85dcaf19c721c4c745cd4fa3972aa9093acd69d3 (patch) | |
tree | c311b0c28846249bdfaa6f124ceda4b79d5757be /mlir/lib/IR | |
parent | 5830f71a45df33e24c864bea4c5de070be47b488 (diff) | |
download | bcm5719-llvm-85dcaf19c721c4c745cd4fa3972aa9093acd69d3.tar.gz bcm5719-llvm-85dcaf19c721c4c745cd4fa3972aa9093acd69d3.zip |
Fix typos, NFC.
PiperOrigin-RevId: 272851237
Diffstat (limited to 'mlir/lib/IR')
-rw-r--r-- | mlir/lib/IR/AsmPrinter.cpp | 2 | ||||
-rw-r--r-- | mlir/lib/IR/Attributes.cpp | 2 | ||||
-rw-r--r-- | mlir/lib/IR/Dialect.cpp | 2 | ||||
-rw-r--r-- | mlir/lib/IR/IntegerSet.cpp | 2 | ||||
-rw-r--r-- | mlir/lib/IR/MLIRContext.cpp | 8 |
5 files changed, 8 insertions, 8 deletions
diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp index 83919f7a87b..d9ca6f19cf5 100644 --- a/mlir/lib/IR/AsmPrinter.cpp +++ b/mlir/lib/IR/AsmPrinter.cpp @@ -356,7 +356,7 @@ protected: void printLocationInternal(LocationAttr loc, bool pretty = false); void printDenseElementsAttr(DenseElementsAttr attr); - /// This enum is used to represent the binding stength of the enclosing + /// This enum is used to represent the binding strength of the enclosing /// context that an AffineExprStorage is being printed in, so we can /// intelligently produce parens. enum class BindingStrength { diff --git a/mlir/lib/IR/Attributes.cpp b/mlir/lib/IR/Attributes.cpp index dc72886d873..d74cacbe695 100644 --- a/mlir/lib/IR/Attributes.cpp +++ b/mlir/lib/IR/Attributes.cpp @@ -415,7 +415,7 @@ ElementsAttr ElementsAttr::mapValues( } } -/// Returns the 1 dimenional flattened row-major index from the given +/// Returns the 1 dimensional flattened row-major index from the given /// multi-dimensional index. uint64_t ElementsAttr::getFlattenedIndex(ArrayRef<uint64_t> index) const { assert(isValidIndex(index) && "expected valid multi-dimensional index"); diff --git a/mlir/lib/IR/Dialect.cpp b/mlir/lib/IR/Dialect.cpp index 2daf46e514f..6a7dcaed058 100644 --- a/mlir/lib/IR/Dialect.cpp +++ b/mlir/lib/IR/Dialect.cpp @@ -49,7 +49,7 @@ void mlir::registerDialectAllocator(const DialectAllocatorFunction &function) { } /// Registers a function to set specific hooks for a specific dialect, typically -/// used through the DialectHooksRegistreation template. +/// used through the DialectHooksRegistration template. void mlir::registerDialectHooksSetter(const DialectHooksSetter &function) { assert( function && diff --git a/mlir/lib/IR/IntegerSet.cpp b/mlir/lib/IR/IntegerSet.cpp index 139ca504b58..e5715877649 100644 --- a/mlir/lib/IR/IntegerSet.cpp +++ b/mlir/lib/IR/IntegerSet.cpp @@ -45,7 +45,7 @@ unsigned IntegerSet::getNumInequalities() const { } bool IntegerSet::isEmptyIntegerSet() const { - // This will only work if uniqui'ing is on. + // This will only work if uniquing is on. static_assert(kUniquingThreshold >= 1, "uniquing threshold should be at least one"); return *this == getEmptySet(set->dimCount, set->symbolCount, getContext()); diff --git a/mlir/lib/IR/MLIRContext.cpp b/mlir/lib/IR/MLIRContext.cpp index ab27ab1cbf5..d64d08a2fe9 100644 --- a/mlir/lib/IR/MLIRContext.cpp +++ b/mlir/lib/IR/MLIRContext.cpp @@ -64,7 +64,7 @@ static ValueT safeGetOrCreate(DenseSet<ValueT, DenseInfoT> &container, return *it; } - // Aquire a writer-lock so that we can safely create the new instance. + // Acquire a writer-lock so that we can safely create the new instance. llvm::sys::SmartScopedWriter<true> instanceLock(mutex); // Check for an existing instance again here, because another writer thread @@ -208,7 +208,7 @@ public: using IntegerSets = DenseSet<IntegerSet, IntegerSetKeyInfo>; IntegerSets integerSets; - // Affine expression uniqui'ing. + // Affine expression uniquing. StorageUniquer affineUniquer; //===--------------------------------------------------------------------===// @@ -445,7 +445,7 @@ Identifier Identifier::get(StringRef str, MLIRContext *context) { return Identifier(it->getKeyData()); } - // Aquire a writer-lock so that we can safely create the new instance. + // Acquire a writer-lock so that we can safely create the new instance. llvm::sys::SmartScopedWriter<true> contextLock(impl.identifierMutex); auto it = impl.identifiers.insert({str, char()}).first; return Identifier(it->getKeyData()); @@ -642,7 +642,7 @@ IntegerSet IntegerSet::get(unsigned dimCount, unsigned symbolCount, constructorFn); } - // Otherwise, aquire a writer-lock so that we can safely create the new + // Otherwise, acquire a writer-lock so that we can safely create the new // instance. llvm::sys::SmartScopedWriter<true> affineLock(impl.affineMutex); return constructorFn(); |