diff options
Diffstat (limited to 'mlir/lib/Transforms')
| -rw-r--r-- | mlir/lib/Transforms/CSE.cpp | 4 | ||||
| -rw-r--r-- | mlir/lib/Transforms/DmaGeneration.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/Transforms/LoopFusion.cpp | 1 | ||||
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 1 | ||||
| -rw-r--r-- | mlir/lib/Transforms/Utils/Utils.cpp | 4 |
5 files changed, 7 insertions, 5 deletions
diff --git a/mlir/lib/Transforms/CSE.cpp b/mlir/lib/Transforms/CSE.cpp index 02fbda0f680..31f4d48e4ed 100644 --- a/mlir/lib/Transforms/CSE.cpp +++ b/mlir/lib/Transforms/CSE.cpp @@ -197,7 +197,7 @@ void CSE::simplifyRegion(DominanceInfo &domInfo, Region ®ion) { std::deque<std::unique_ptr<CFGStackNode>> stack; // Process the nodes of the dom tree for this region. - stack.emplace_back(std::make_unique<CFGStackNode>( + stack.emplace_back(llvm::make_unique<CFGStackNode>( knownValues, domInfo.getRootNode(®ion))); while (!stack.empty()) { @@ -213,7 +213,7 @@ void CSE::simplifyRegion(DominanceInfo &domInfo, Region ®ion) { if (currentNode->childIterator != currentNode->node->end()) { auto *childNode = *(currentNode->childIterator++); stack.emplace_back( - std::make_unique<CFGStackNode>(knownValues, childNode)); + llvm::make_unique<CFGStackNode>(knownValues, childNode)); } else { // Finally, if the node and all of its children have been processed // then we delete the node. diff --git a/mlir/lib/Transforms/DmaGeneration.cpp b/mlir/lib/Transforms/DmaGeneration.cpp index 43c709fa3ab..23e07fc3a89 100644 --- a/mlir/lib/Transforms/DmaGeneration.cpp +++ b/mlir/lib/Transforms/DmaGeneration.cpp @@ -618,7 +618,7 @@ uint64_t DmaGeneration::runOnBlock(Block::iterator begin, Block::iterator end) { } // Compute the MemRefRegion accessed. - auto region = std::make_unique<MemRefRegion>(opInst->getLoc()); + auto region = llvm::make_unique<MemRefRegion>(opInst->getLoc()); if (failed(region->compute(opInst, dmaDepth))) { LLVM_DEBUG(llvm::dbgs() << "Error obtaining memory region: semi-affine maps?\n"); diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp index 12e52eaf4d3..6d4ea7206b7 100644 --- a/mlir/lib/Transforms/LoopFusion.cpp +++ b/mlir/lib/Transforms/LoopFusion.cpp @@ -39,6 +39,7 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" #include <iomanip> +#include <sstream> #define DEBUG_TYPE "loop-fusion" diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index 1a4b368c4c6..76ab91641f3 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -32,6 +32,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include <iomanip> +#include <sstream> using namespace mlir; diff --git a/mlir/lib/Transforms/Utils/Utils.cpp b/mlir/lib/Transforms/Utils/Utils.cpp index 8a21f273006..cbf68056eb9 100644 --- a/mlir/lib/Transforms/Utils/Utils.cpp +++ b/mlir/lib/Transforms/Utils/Utils.cpp @@ -69,11 +69,11 @@ bool mlir::replaceAllMemRefUsesWith(const Value *oldMemRef, Value *newMemRef, std::unique_ptr<DominanceInfo> domInfo; std::unique_ptr<PostDominanceInfo> postDomInfo; if (domInstFilter) - domInfo = std::make_unique<DominanceInfo>(domInstFilter->getFunction()); + domInfo = llvm::make_unique<DominanceInfo>(domInstFilter->getFunction()); if (postDomInstFilter) postDomInfo = - std::make_unique<PostDominanceInfo>(postDomInstFilter->getFunction()); + llvm::make_unique<PostDominanceInfo>(postDomInstFilter->getFunction()); // The ops where memref replacement succeeds are replaced with new ones. SmallVector<Instruction *, 8> opsToErase; |

