[Mlir-commits] [mlir] eb6b2ef - [mlir][NFC] Fully qualify use of SmallVector in generated C++ code of mlir-tblgen

Markus Böck llvmlistbot at llvm.org
Sat Jan 1 05:52:41 PST 2022


Author: Markus Böck
Date: 2022-01-01T14:52:32+01:00
New Revision: eb6b2efe4e953afc4b3befedebbf37d4175e8f48

URL: https://github.com/llvm/llvm-project/commit/eb6b2efe4e953afc4b3befedebbf37d4175e8f48
DIFF: https://github.com/llvm/llvm-project/commit/eb6b2efe4e953afc4b3befedebbf37d4175e8f48.diff

LOG: [mlir][NFC] Fully qualify use of SmallVector in generated C++ code of mlir-tblgen

Added: 
    

Modified: 
    mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
index 2f9f079da8c95..484bb230e6b06 100644
--- a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@ -1756,7 +1756,7 @@ void OpEmitter::genCodeForAddingArgAndRegionForBuilder(
 
       // Add the segment attribute.
       body << "  {\n"
-           << "    SmallVector<int32_t> rangeSegments;\n"
+           << "    ::llvm::SmallVector<int32_t> rangeSegments;\n"
            << "    for (::mlir::ValueRange range : " << argName << ")\n"
            << "      rangeSegments.push_back(range.size());\n"
            << "    " << builderOpState << ".addAttribute("


        


More information about the Mlir-commits mailing list