Skip to content

Commit 73629f4

Browse files
committed
linting
1 parent 81bb8bc commit 73629f4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,7 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
903903
}
904904
};
905905

906-
struct GatherToLDSOpLowering
907-
: public ConvertOpToLLVMPattern<GatherToLDSOp> {
906+
struct GatherToLDSOpLowering : public ConvertOpToLLVMPattern<GatherToLDSOp> {
908907
GatherToLDSOpLowering(const LLVMTypeConverter &converter, Chipset chipset)
909908
: ConvertOpToLLVMPattern<GatherToLDSOp>(converter), chipset(chipset) {}
910909

@@ -936,15 +935,13 @@ struct GatherToLDSOpLowering
936935
if (loadWidth != 1 && loadWidth != 2 && loadWidth != 4)
937936
return op.emitOpError("chipset unsupported element size");
938937

939-
auto convertIndices =
940-
[&](ValueRange indices) -> SmallVector<Value, 4> {
938+
auto convertIndices = [&](ValueRange indices) -> SmallVector<Value, 4> {
941939
SmallVector<Value, 4> convertedIndices;
942-
940+
943941
for (Value index : indices) {
944942
Type convertedType = getTypeConverter()->convertType(index.getType());
945943
auto convertedIndex = rewriter.create<LLVM::ConstantOp>(
946-
loc, convertedType,
947-
rewriter.getIntegerAttr(convertedType, 0));
944+
loc, convertedType, rewriter.getIntegerAttr(convertedType, 0));
948945
convertedIndices.push_back(convertedIndex);
949946
}
950947
return convertedIndices;

mlir/lib/Dialect/AMDGPU/IR/AMDGPUDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static bool hasGlobalMemorySpace(Attribute memorySpace) {
120120
else if (auto intMemorySpace = llvm::dyn_cast<IntegerAttr>(memorySpace))
121121
return intMemorySpace.getInt() == 0 || intMemorySpace.getInt() == 1;
122122
else if (auto gpuMemorySpace =
123-
llvm::dyn_cast<gpu::AddressSpaceAttr>(memorySpace))
123+
llvm::dyn_cast<gpu::AddressSpaceAttr>(memorySpace))
124124
return gpuMemorySpace.getValue() == gpu::AddressSpace::Global;
125125
return false;
126126
}

0 commit comments

Comments
 (0)