Skip to content

Commit 711e477

Browse files
committed
rename sgMape to descAttr
Signed-off-by: dchigarev <[email protected]>
1 parent 55b0e2f commit 711e477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/gc/Transforms/GPU/LinalgToXeGPU.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ struct TilesArray {
102102

103103
static xegpu::TensorDescType
104104
getTensorDescType(llvm::ArrayRef<int64_t> shape, mlir::Type elementType,
105-
std::optional<mlir::Attribute> sgMap = std::nullopt) {
106-
if (!sgMap) {
105+
std::optional<mlir::Attribute> descAttr = std::nullopt) {
106+
if (!descAttr) {
107107
// Assuming default tensor descriptor type (blocked & in global memory).
108108
return xegpu::TensorDescType::get(shape, elementType, /*array_length=*/1,
109109
/*boundary_check=*/true);
110110
}
111111

112-
auto descriptor = sgMap.value();
112+
auto descriptor = descAttr.value();
113113
if (auto scatterMap = dyn_cast<ScatterTensorDescAttr>(descriptor)) {
114114
auto memSpace = scatterMap.getMemorySpace().getValue();
115115
int64_t chunkSize = scatterMap.getChunkSize().getInt();

0 commit comments

Comments
 (0)