[Mlir-commits] [mlir] d639b91 - [NFC][mlir][gpu] Fully-qualify all namespaces in the GPU compilation interfaces (#94908)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Jun 9 13:34:48 PDT 2024
Author: Fabian Mora
Date: 2024-06-09T15:34:45-05:00
New Revision: d639b91bb26ed24d612953cf132605531c616c72
URL: https://github.com/llvm/llvm-project/commit/d639b91bb26ed24d612953cf132605531c616c72
DIFF: https://github.com/llvm/llvm-project/commit/d639b91bb26ed24d612953cf132605531c616c72.diff
LOG: [NFC][mlir][gpu] Fully-qualify all namespaces in the GPU compilation interfaces (#94908)
Fully qualify all namespaces appearing in `GPUTargetAttrInterface` and
`OffloadingLLVMTranslationAttrInterface`. If they're not fully qualified
then out-of-tree dialects might encounter name resolution errors.
Added:
Modified:
mlir/include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td b/mlir/include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td
index 1607304803942..582ab91311974 100644
--- a/mlir/include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td
+++ b/mlir/include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td
@@ -37,17 +37,18 @@ def GPUTargetAttrInterface : AttrInterface<"TargetAttrInterface"> {
is meant to be used for passing additional options that are not in the
attribute.
}],
- "std::optional<SmallVector<char, 0>>", "serializeToObject",
- (ins "Operation*":$module, "const gpu::TargetOptions&":$options)>,
+ "std::optional<::mlir::SmallVector<char, 0>>", "serializeToObject",
+ (ins "::mlir::Operation*":$module,
+ "const ::mlir::gpu::TargetOptions&":$options)>,
InterfaceMethod<[{
Creates a GPU object attribute from a binary string.
The `object` parameter is a binary string. The `options` parameter is
meant to be used for passing additional options that are not in the
attribute.
- }], "Attribute", "createObject",
- (ins "const SmallVector<char, 0>&":$object,
- "const gpu::TargetOptions&":$options)>
+ }], "::mlir::Attribute", "createObject",
+ (ins "const ::llvm::SmallVector<char, 0>&":$object,
+ "const ::mlir::gpu::TargetOptions&":$options)>
];
}
@@ -112,9 +113,10 @@ def OffloadingLLVMTranslationAttrInterface :
The first argument has to be a GPU binary operation.
If the function fails at any point, it must return `failure`.
}],
- "LogicalResult", "embedBinary",
- (ins "Operation*":$binaryOp, "llvm::IRBuilderBase&":$hostBuilder,
- "LLVM::ModuleTranslation&":$hostModuleTranslation)
+ "::mlir::LogicalResult", "embedBinary",
+ (ins "::mlir::Operation*":$binaryOp,
+ "::llvm::IRBuilderBase&":$hostBuilder,
+ "::mlir::LLVM::ModuleTranslation&":$hostModuleTranslation)
>,
InterfaceMethod<[{
Translates a `gpu.launch_func` op into a sequence of LLVM IR
@@ -128,10 +130,10 @@ def OffloadingLLVMTranslationAttrInterface :
respectively. If the function fails at any point, it must return
`failure`.
}],
- "LogicalResult", "launchKernel",
- (ins "Operation*":$launchFunc, "Operation*":$binaryOp,
- "llvm::IRBuilderBase&":$hostBuilder,
- "LLVM::ModuleTranslation&":$hostModuleTranslation)
+ "::mlir::LogicalResult", "launchKernel",
+ (ins "::mlir::Operation*":$launchFunc, "::mlir::Operation*":$binaryOp,
+ "::llvm::IRBuilderBase&":$hostBuilder,
+ "::mlir::LLVM::ModuleTranslation&":$hostModuleTranslation)
>
];
}
More information about the Mlir-commits
mailing list