summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Transforms')
-rw-r--r--mlir/lib/Transforms/DmaGeneration.cpp13
-rw-r--r--mlir/lib/Transforms/LoopTiling.cpp2
-rw-r--r--mlir/lib/Transforms/PipelineDataTransfer.cpp5
-rw-r--r--mlir/lib/Transforms/Utils/LoopUtils.cpp2
-rw-r--r--mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp5
-rw-r--r--mlir/lib/Transforms/Vectorize.cpp7
6 files changed, 17 insertions, 17 deletions
diff --git a/mlir/lib/Transforms/DmaGeneration.cpp b/mlir/lib/Transforms/DmaGeneration.cpp
index 83ba858447b..c70b218e36d 100644
--- a/mlir/lib/Transforms/DmaGeneration.cpp
+++ b/mlir/lib/Transforms/DmaGeneration.cpp
@@ -211,12 +211,12 @@ static bool getFullMemRefAsRegion(Operation *opInst, unsigned numParamLoopIVs,
return true;
}
-static void emitNoteForBlock(Block &block, const Twine &message) {
+static void emitRemarkForBlock(Block &block, const Twine &message) {
auto *op = block.getContainingOp();
if (!op) {
- block.getFunction()->emitNote(message);
+ block.getFunction()->emitRemark(message);
} else {
- op->emitNote(message);
+ op->emitRemark(message);
}
}
@@ -360,7 +360,7 @@ bool DmaGeneration::generateDma(const MemRefRegion &region, Block *block,
oss << "Creating DMA buffer of type " << fastMemRefType;
oss << " and size " << llvm::divideCeil(*sizeInBytes, 1024)
<< " KiB\n";
- emitNoteForBlock(*block, oss.str()));
+ emitRemarkForBlock(*block, oss.str()));
} else {
// Reuse the one already created.
fastMemRef = fastBufferMap[memref];
@@ -741,8 +741,9 @@ uint64_t DmaGeneration::runOnBlock(Block::iterator begin, Block::iterator end) {
AffineForOp forOp;
uint64_t sizeInKib = llvm::divideCeil(totalDmaBuffersSizeInBytes, 1024);
if (llvm::DebugFlag && (forOp = begin->dyn_cast<AffineForOp>())) {
- forOp.emitNote(Twine(sizeInKib) +
- " KiB of DMA buffers in fast memory space for this block\n");
+ forOp.emitRemark(
+ Twine(sizeInKib) +
+ " KiB of DMA buffers in fast memory space for this block\n");
}
if (totalDmaBuffersSizeInBytes > fastMemCapacityBytes) {
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp
index c215fa34172..64d1839fd66 100644
--- a/mlir/lib/Transforms/LoopTiling.cpp
+++ b/mlir/lib/Transforms/LoopTiling.cpp
@@ -403,7 +403,7 @@ void LoopTiling::runOnFunction() {
msg << tSize << " ";
msg << "]\n";
auto rootForOp = band[0];
- rootForOp.emitNote(msg.str());
+ rootForOp.emitRemark(msg.str());
}
if (failed(tileCodeGen(band, tileSizes)))
return signalPassFailure();
diff --git a/mlir/lib/Transforms/PipelineDataTransfer.cpp b/mlir/lib/Transforms/PipelineDataTransfer.cpp
index 8a4026340e7..0ad24e6a711 100644
--- a/mlir/lib/Transforms/PipelineDataTransfer.cpp
+++ b/mlir/lib/Transforms/PipelineDataTransfer.cpp
@@ -249,7 +249,8 @@ static void findMatchingStartFinishInsts(
void PipelineDataTransfer::runOnAffineForOp(AffineForOp forOp) {
auto mayBeConstTripCount = getConstantTripCount(forOp);
if (!mayBeConstTripCount.hasValue()) {
- LLVM_DEBUG(forOp.emitNote("won't pipeline due to unknown trip count loop"));
+ LLVM_DEBUG(
+ forOp.emitRemark("won't pipeline due to unknown trip count loop"));
return;
}
@@ -257,7 +258,7 @@ void PipelineDataTransfer::runOnAffineForOp(AffineForOp forOp) {
findMatchingStartFinishInsts(forOp, startWaitPairs);
if (startWaitPairs.empty()) {
- LLVM_DEBUG(forOp.emitNote("No dma start/finish pairs\n"));
+ LLVM_DEBUG(forOp.emitRemark("No dma start/finish pairs\n"));
return;
}
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index 1e9697a9ad5..a10e4a1ae49 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -244,7 +244,7 @@ LogicalResult mlir::instBodySkew(AffineForOp forOp, ArrayRef<uint64_t> shifts,
// constant trip count "full tiles" before applying this.
auto mayBeConstTripCount = getConstantTripCount(forOp);
if (!mayBeConstTripCount.hasValue()) {
- LLVM_DEBUG(forOp.emitNote("non-constant trip count loop not handled"));
+ LLVM_DEBUG(forOp.emitRemark("non-constant trip count loop not handled"));
return success();
}
uint64_t tripCount = mayBeConstTripCount.getValue();
diff --git a/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp b/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
index d080d65c756..b8640f05590 100644
--- a/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
+++ b/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
@@ -129,7 +129,7 @@ void VectorizerTestPass::testVectorShapeRatio(llvm::raw_ostream &outs) {
auto superVectorType = opInst->getResult(0)->getType().cast<VectorType>();
auto ratio = shapeRatio(superVectorType, subVectorType);
if (!ratio.hasValue()) {
- opInst->emitNote("NOT MATCHED");
+ opInst->emitRemark("NOT MATCHED");
} else {
outs << "\nmatched: " << *opInst << " with shape ratio: ";
interleaveComma(MutableArrayRef<unsigned>(*ratio), outs);
@@ -297,8 +297,7 @@ void VectorizerTestPass::runOnFunction() {
testNormalizeMaps();
if (!outs.str().empty()) {
- getContext().getDiagEngine().emit(UnknownLoc::get(&getContext()),
- outs.str(), DiagnosticSeverity::Note);
+ getContext().emitRemark(UnknownLoc::get(&getContext()), outs.str());
}
}
diff --git a/mlir/lib/Transforms/Vectorize.cpp b/mlir/lib/Transforms/Vectorize.cpp
index 4d96cf725c6..d36dca8eca9 100644
--- a/mlir/lib/Transforms/Vectorize.cpp
+++ b/mlir/lib/Transforms/Vectorize.cpp
@@ -1211,10 +1211,9 @@ void Vectorize::runOnFunction() {
Function &f = getFunction();
if (!fastestVaryingPattern.empty() &&
fastestVaryingPattern.size() != vectorSizes.size()) {
- f.emitNote("Fastest varying pattern specified with different size than the "
- "vector size.");
- this->signalPassFailure();
- return;
+ f.emitRemark("Fastest varying pattern specified with different size than "
+ "the vector size.");
+ return signalPassFailure();
}
// Thread-safe RAII local context, BumpPtrAllocator freed on exit.
OpenPOWER on IntegriCloud