Skip to content

Commit

Permalink
Fix errors reported by clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
silee2 committed Sep 1, 2023
1 parent 8536103 commit 8060e7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ class LoadStore2dToVCPattern : public OpConversionPattern<OpType> {
std::string funcName;
constexpr bool isLoad = std::is_same_v<OpType, Load2DOp>;
if constexpr (isLoad) {
vecType = cast<VectorType>(op.template getResult().getType());
vecType = cast<VectorType>(op.getResult().getType());
funcName = "llvm_genx_lsc_load2d_stateless_";
} else {
vecType = cast<VectorType>(op.template getValue().getType());
vecType = cast<VectorType>(op.getValue().getType());
funcName = "llvm_genx_lsc_store2d_stateless_i1_i64_";
}
auto createIntConstant = [&](Type type, unsigned value) {
Expand Down Expand Up @@ -188,7 +188,7 @@ class LoadStore2dToVCPattern : public OpConversionPattern<OpType> {
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) {
Expand Down

0 comments on commit 8060e7f

Please sign in to comment.