[Mlir-commits] [mlir] 9a2255d - [mlir][NFC] Add explicit "::mlir" namespace to tblgen generated code
Vladislav Vinogradov
llvmlistbot at llvm.org
Mon Sep 20 00:36:47 PDT 2021
Author: Vladislav Vinogradov
Date: 2021-09-20T10:37:50+03:00
New Revision: 9a2255dfa012ad0334eacb2d09da7aa4db249c51
URL: https://github.com/llvm/llvm-project/commit/9a2255dfa012ad0334eacb2d09da7aa4db249c51
DIFF: https://github.com/llvm/llvm-project/commit/9a2255dfa012ad0334eacb2d09da7aa4db249c51.diff
LOG: [mlir][NFC] Add explicit "::mlir" namespace to tblgen generated code
Reviewed By: lattner, ftynse
Differential Revision: https://reviews.llvm.org/D109223
Added:
Modified:
mlir/include/mlir/IR/OpBase.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td
index ac99ac4d0897d..9dfff98bdcada 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -1582,7 +1582,8 @@ def SymbolRefAttr : Attr<CPred<"$_self.isa<::mlir::SymbolRefAttr>()">,
let storageType = [{ ::mlir::SymbolRefAttr }];
let returnType = [{ ::mlir::SymbolRefAttr }];
let valueType = NoneType;
- let constBuilderCall = "SymbolRefAttr::get($_builder.getContext(), $0)";
+ let constBuilderCall =
+ "::mlir::SymbolRefAttr::get($_builder.getContext(), $0)";
let convertFromStorage = "$_self";
}
@@ -1591,7 +1592,8 @@ def FlatSymbolRefAttr : Attr<CPred<"$_self.isa<::mlir::FlatSymbolRefAttr>()">,
let storageType = [{ ::mlir::FlatSymbolRefAttr }];
let returnType = [{ ::llvm::StringRef }];
let valueType = NoneType;
- let constBuilderCall = "SymbolRefAttr::get($_builder.getContext(), $0)";
+ let constBuilderCall =
+ "::mlir::SymbolRefAttr::get($_builder.getContext(), $0)";
let convertFromStorage = "$_self.getValue()";
}
More information about the Mlir-commits
mailing list