summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
diff options
context:
space:
mode:
authorChristian Sigg <csigg@google.com>2019-10-04 04:37:14 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-10-04 04:37:53 -0700
commit85dcaf19c721c4c745cd4fa3972aa9093acd69d3 (patch)
treec311b0c28846249bdfaa6f124ceda4b79d5757be /mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
parent5830f71a45df33e24c864bea4c5de070be47b488 (diff)
downloadbcm5719-llvm-85dcaf19c721c4c745cd4fa3972aa9093acd69d3.tar.gz
bcm5719-llvm-85dcaf19c721c4c745cd4fa3972aa9093acd69d3.zip
Fix typos, NFC.
PiperOrigin-RevId: 272851237
Diffstat (limited to 'mlir/lib/Dialect/GPU/IR/GPUDialect.cpp')
-rw-r--r--mlir/lib/Dialect/GPU/IR/GPUDialect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
index ff05802d521..98f5651279f 100644
--- a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
+++ b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
@@ -221,7 +221,7 @@ void LaunchOp::print(OpAsmPrinter &p) {
// (%region_arg, %region_arg, %region_arg) in
// (%region_arg = %operand, %region_arg = %operand, %region_arg = %operand)
// where %region_arg are percent-identifiers for the region arguments to be
-// introduced futher (SSA defs), and %operand are percent-identifiers for the
+// introduced further (SSA defs), and %operand are percent-identifiers for the
// SSA value uses.
static ParseResult
parseSizeAssignment(OpAsmParser &parser,
@@ -267,10 +267,10 @@ ParseResult LaunchOp::parse(OpAsmParser &parser, OperationState &result) {
kNumConfigRegionAttributes);
MutableArrayRef<OpAsmParser::OperandType> regionArgsRef(regionArgs);
- // Parse the size assignment segments: the first segment assigns grid siezs
+ // Parse the size assignment segments: the first segment assigns grid sizes
// and defines values for block identifiers; the second segment assigns block
- // sies and defines values for thread identifiers. In the region argument
- // list, identifiers preceed sizes, and block-related values preceed
+ // sizes and defines values for thread identifiers. In the region argument
+ // list, identifiers precede sizes, and block-related values precede
// thread-related values.
if (parser.parseKeyword(getBlocksKeyword().data()) ||
parseSizeAssignment(parser, sizesRef.take_front(3),
@@ -338,7 +338,7 @@ class PropagateConstantBounds : public OpRewritePattern<LaunchOp> {
PatternMatchResult matchAndRewrite(LaunchOp launchOp,
PatternRewriter &rewriter) const override {
- auto oringInsertionPoint = rewriter.saveInsertionPoint();
+ auto origInsertionPoint = rewriter.saveInsertionPoint();
rewriter.setInsertionPointToStart(&launchOp.getBody().front());
// Traverse operands passed to kernel and check if some of them are known
@@ -365,7 +365,7 @@ class PropagateConstantBounds : public OpRewritePattern<LaunchOp> {
kernelArg->replaceAllUsesWith(internalConstant);
launchOp.eraseKernelArgument(index);
}
- rewriter.restoreInsertionPoint(oringInsertionPoint);
+ rewriter.restoreInsertionPoint(origInsertionPoint);
if (!found)
return matchFailure();
OpenPOWER on IntegriCloud