[Mlir-commits] [mlir] 5b0c60c - [mlir][vulkan-runner] Use std::make_tuple to create tuple
Lei Zhang
llvmlistbot at llvm.org
Tue Mar 10 13:21:58 PDT 2020
Author: Lei Zhang
Date: 2020-03-10T16:21:35-04:00
New Revision: 5b0c60c58ea426b215cfd2970c9eaa6eb5b42026
URL: https://github.com/llvm/llvm-project/commit/5b0c60c58ea426b215cfd2970c9eaa6eb5b42026
DIFF: https://github.com/llvm/llvm-project/commit/5b0c60c58ea426b215cfd2970c9eaa6eb5b42026.diff
LOG: [mlir][vulkan-runner] Use std::make_tuple to create tuple
Added:
Modified:
mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp b/mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
index b1bdc3036076..92c376e19788 100644
--- a/mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
+++ b/mlir/lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp
@@ -128,8 +128,8 @@ struct VulkanLaunchOpOperandAdaptor {
// 2. Offset.
// 3. Size in dim 0.
// 4. Stride in dim 0.
- return {operands[numConfigOps + index * loweredMemRefNumOps1D],
- operands[numConfigOps + index * loweredMemRefNumOps1D + 3]};
+ auto offset = numConfigOps + index * loweredMemRefNumOps1D;
+ return std::make_tuple(operands[offset], operands[offset + 3]);
}
/// Returns the number of resources assuming all operands lowered from
More information about the Mlir-commits
mailing list