diff options
| author | Kazuaki Ishizaki <ishizaki@jp.ibm.com> | 2019-12-06 05:58:59 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-12-06 05:59:30 -0800 |
| commit | 84a6182ddd62a2ca8eee2d8470e3be1ef6147fce (patch) | |
| tree | cadd92b3cd08a3f2e04b533a6f0bba78656b78e7 /mlir/lib | |
| parent | 58adf99ed1a2656c8aec310e6f78da986eb05570 (diff) | |
| download | bcm5719-llvm-84a6182ddd62a2ca8eee2d8470e3be1ef6147fce.tar.gz bcm5719-llvm-84a6182ddd62a2ca8eee2d8470e3be1ef6147fce.zip | |
minor spelling tweaks
Closes tensorflow/mlir#290
COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/290 from kiszk:spelling_tweaks_201912 9d9afd16a723dd65754a04698b3976f150a6054a
PiperOrigin-RevId: 284169681
Diffstat (limited to 'mlir/lib')
| -rw-r--r-- | mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp | 6 | ||||
| -rw-r--r-- | mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp | 3 | ||||
| -rw-r--r-- | mlir/lib/IR/AsmPrinter.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/IR/Diagnostics.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/IR/Operation.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/IR/SymbolTable.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/Pass/PassTiming.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/Transforms/LoopFusion.cpp | 6 |
9 files changed, 13 insertions, 14 deletions
diff --git a/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp index 5a6282e8d4d..7b15b758968 100644 --- a/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp +++ b/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp @@ -510,7 +510,7 @@ struct FuncOpConversion : public LLVMLegalizationPattern<FuncOp> { attributes.push_back(attr); } - // Create an LLVM funcion, use external linkage by default until MLIR + // Create an LLVM function, use external linkage by default until MLIR // functions have linkage. auto newFuncOp = rewriter.create<LLVM::LLVMFuncOp>( op->getLoc(), funcOp.getName(), llvmType, LLVM::Linkage::External, diff --git a/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp b/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp index e3b550223e5..694a98fd075 100644 --- a/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp +++ b/mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp @@ -71,7 +71,7 @@ mlir::spirv::getEntryPointABIAttr(ArrayRef<int32_t> localSize, Type SPIRVTypeConverter::getIndexType(MLIRContext *context) { // Convert to 32-bit integers for now. Might need a way to control this in // future. - // TODO(ravishankarm): It is porbably better to make it 64-bit integers. To + // TODO(ravishankarm): It is probably better to make it 64-bit integers. To // this some support is needed in SPIR-V dialect for Conversion // instructions. The Vulkan spec requires the builtins like // GlobalInvocationID, etc. to be 32-bit (unsigned) integers which should be @@ -189,7 +189,7 @@ static spirv::GlobalVariableOp getBuiltinVariable(spirv::ModuleOp &moduleOp, return nullptr; } -/// Gets name of global variable for a buitlin. +/// Gets name of global variable for a builtin. static std::string getBuiltinVarName(spirv::BuiltIn builtin) { return std::string("__builtin_var_") + stringifyBuiltIn(builtin).str() + "__"; } @@ -230,7 +230,7 @@ getOrInsertBuiltinVariable(spirv::ModuleOp &moduleOp, Location loc, } /// Gets the global variable associated with a builtin and add -/// it if it doesnt exist. +/// it if it doesn't exist. Value *mlir::spirv::getBuiltinVariableValue(Operation *op, spirv::BuiltIn builtin, OpBuilder &builder) { diff --git a/mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp b/mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp index 2011c750d83..72d11a19380 100644 --- a/mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp +++ b/mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp @@ -270,7 +270,6 @@ private: // block and redirect all branches to the old header block to the old // merge block (which contains the spv.selection/spv.loop op now). - /// For OpPhi instructions, we use block arguments to represent them. OpPhi /// encodes a list of (value, predecessor) pairs. At the time of handling the /// block containing an OpPhi instruction, the predecessor block might not be @@ -278,7 +277,7 @@ private: /// the block argument from the predecessors. We use the following approach: /// /// 1. For each OpPhi instruction, add a block argument to the current block - /// in construction. Record the block argment in `valueMap` so its uses + /// in construction. Record the block argument in `valueMap` so its uses /// can be resolved. For the list of (value, predecessor) pairs, update /// `blockPhiInfo` for bookkeeping. /// 2. After processing all blocks, loop over `blockPhiInfo` to fix up each diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp index a3a15dac533..ed97b8b5940 100644 --- a/mlir/lib/IR/AsmPrinter.cpp +++ b/mlir/lib/IR/AsmPrinter.cpp @@ -1116,7 +1116,7 @@ void ModulePrinter::printType(Type type) { //===----------------------------------------------------------------------===// namespace { -/// This class provides the main specialication of the DialectAsmPrinter that is +/// This class provides the main specialization of the DialectAsmPrinter that is /// used to provide support for print attributes and types. This hooks allows /// for dialects to hook into the main ModulePrinter. struct CustomDialectAsmPrinter : public DialectAsmPrinter { diff --git a/mlir/lib/IR/Diagnostics.cpp b/mlir/lib/IR/Diagnostics.cpp index f2f2f83b3a8..70a802cd856 100644 --- a/mlir/lib/IR/Diagnostics.cpp +++ b/mlir/lib/IR/Diagnostics.cpp @@ -689,7 +689,7 @@ SourceMgrDiagnosticVerifierHandler::SourceMgrDiagnosticVerifierHandler( for (unsigned i = 0, e = mgr.getNumBuffers(); i != e; ++i) (void)impl->computeExpectedDiags(mgr.getMemoryBuffer(i + 1)); - // Register a handler to verfy the diagnostics. + // Register a handler to verify the diagnostics. setHandler([&](Diagnostic &diag) { // Process the main diagnostics. process(diag); diff --git a/mlir/lib/IR/Operation.cpp b/mlir/lib/IR/Operation.cpp index 69b8d056cd5..1d213f45dd5 100644 --- a/mlir/lib/IR/Operation.cpp +++ b/mlir/lib/IR/Operation.cpp @@ -286,7 +286,7 @@ void Operation::destroy() { /// Return the context this operation is associated with. MLIRContext *Operation::getContext() { return location->getContext(); } -/// Return the dialact this operation is associated with, or nullptr if the +/// Return the dialect this operation is associated with, or nullptr if the /// associated dialect is not registered. Dialect *Operation::getDialect() { if (auto *abstractOp = getAbstractOperation()) diff --git a/mlir/lib/IR/SymbolTable.cpp b/mlir/lib/IR/SymbolTable.cpp index b61308b74af..bd8cb59cea7 100644 --- a/mlir/lib/IR/SymbolTable.cpp +++ b/mlir/lib/IR/SymbolTable.cpp @@ -283,7 +283,7 @@ static Optional<WalkResult> walkSymbolUses( if (walkSymbolRefs(&op, callback).wasInterrupted()) return WalkResult::interrupt(); - // If this operation has regions, and it as well as its dialect arent't + // If this operation has regions, and it as well as its dialect aren't // registered then conservatively fail. The operation may define a // symbol table, so we can't opaquely know if we should traverse to find // nested uses. diff --git a/mlir/lib/Pass/PassTiming.cpp b/mlir/lib/Pass/PassTiming.cpp index 4747249690f..dd193a4d9a9 100644 --- a/mlir/lib/Pass/PassTiming.cpp +++ b/mlir/lib/Pass/PassTiming.cpp @@ -323,7 +323,7 @@ void PassTiming::runAfterPass(Pass *pass, Operation *) { return; } - // Adapator passes aren't timed directly, so we don't need to stop their + // Adaptor passes aren't timed directly, so we don't need to stop their // timers. if (!isAdaptorPass(pass)) timer->stop(); diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp index cda35297abc..6627e73056a 100644 --- a/mlir/lib/Transforms/LoopFusion.cpp +++ b/mlir/lib/Transforms/LoopFusion.cpp @@ -1561,10 +1561,10 @@ public: !canFuseSrcWhichWritesToLiveOut(srcId, dstId, srcStoreOp, mdg)) continue; - // Dont create a private memref if 'writesToLiveInOrOut'. + // Don't create a private memref if 'writesToLiveInOrOut'. bool createPrivateMemref = !writesToLiveInOrOut; - // Dont create a private memref if 'srcNode' has in edges on 'memref', - // or if 'dstNode' has out edges on 'memref'. + // Don't create a private memref if 'srcNode' has in edges on + // 'memref', or if 'dstNode' has out edges on 'memref'. if (mdg->getIncomingMemRefAccesses(srcNode->id, memref) > 0 || mdg->getOutEdgeCount(dstNode->id, memref) > 0) { createPrivateMemref = false; |

