[Mlir-commits] [mlir] 4622113 - [mlir][nvgpu] Set useDefaultAttributePrinterParser
Guray Ozen
llvmlistbot at llvm.org
Fri Jul 21 08:00:44 PDT 2023
Author: Guray Ozen
Date: 2023-07-21T17:00:39+02:00
New Revision: 46221138205551541fbd317ff8e6699d49939308
URL: https://github.com/llvm/llvm-project/commit/46221138205551541fbd317ff8e6699d49939308
DIFF: https://github.com/llvm/llvm-project/commit/46221138205551541fbd317ff8e6699d49939308.diff
LOG: [mlir][nvgpu] Set useDefaultAttributePrinterParser
Differential Revision: https://reviews.llvm.org/D155959
Added:
Modified:
mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td
mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td b/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td
index 957394d7e423c9..85c03d85a7d9aa 100644
--- a/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td
+++ b/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td
@@ -38,7 +38,8 @@ def NVGPU_Dialect : Dialect {
let useDefaultTypePrinterParser = 1;
let usePropertiesForAttributes = 1;
-
+ let useDefaultAttributePrinterParser = 1;
+
let extraClassDeclaration = [{
/// Return true if the given MemRefType has an integer address
/// space that matches the NVVM shared memory address space or
diff --git a/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp b/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
index 6346e71c42917a..24c490568a4383 100644
--- a/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
+++ b/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
@@ -370,18 +370,9 @@ LogicalResult TmaCreateDescriptorOp::verify() {
// TableGen'd dialect, type, and op definitions
//===----------------------------------------------------------------------===//
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-function"
-#endif
-
#define GET_ATTRDEF_CLASSES
#include "mlir/Dialect/NVGPU/IR/NVGPUAttrDefs.cpp.inc"
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-
#include "mlir/Dialect/NVGPU/IR/NVGPUEnums.cpp.inc"
#define GET_OP_CLASSES
More information about the Mlir-commits
mailing list