From 8060e7f29b0606cd4becf368c9a9db52e0ba9d0d Mon Sep 17 00:00:00 2001 From: "Lee, Sang Ik" Date: Fri, 1 Sep 2023 08:57:58 -0700 Subject: [PATCH] Fix errors reported by clang. --- lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp b/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp index 3ce93dcc4..0d6bace7e 100644 --- a/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp +++ b/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp @@ -137,10 +137,10 @@ class LoadStore2dToVCPattern : public OpConversionPattern { std::string funcName; constexpr bool isLoad = std::is_same_v; if constexpr (isLoad) { - vecType = cast(op.template getResult().getType()); + vecType = cast(op.getResult().getType()); funcName = "llvm_genx_lsc_load2d_stateless_"; } else { - vecType = cast(op.template getValue().getType()); + vecType = cast(op.getValue().getType()); funcName = "llvm_genx_lsc_store2d_stateless_i1_i64_"; } auto createIntConstant = [&](Type type, unsigned value) { @@ -188,7 +188,7 @@ class LoadStore2dToVCPattern : public OpConversionPattern { VectorType newType; std::tie(typeStr, newType) = encodeVectorType(rewriter, vecType); if constexpr (!isLoad) { - args.push_back(adaptor.template getValue()); + args.push_back(adaptor.getValue()); } funcName += typeStr; if constexpr (isLoad) {