Skip to content

Commit

Permalink
[LLVMGPU] Remove Swizzle from workgroup reordering enums (iree-org#19094
Browse files Browse the repository at this point in the history
)

This is the continuation of iree-org#19039.
  • Loading branch information
kuhar authored Nov 11, 2024
1 parent 3e98592 commit c0dff68
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions compiler/bindings/c/iree/compiler/dialects/iree_gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ extern "C" {

enum ireeGPUReorderWorkgroupsStrategyEnum {
ireeGPUReorderWorkgroupsStrategyEnumNone = 0,
ireeGPUReorderWorkgroupsStrategyEnumSwizzle = 1,
ireeGPUReorderWorkgroupsStrategyEnumTranspose = 2,
ireeGPUReorderWorkgroupsStrategyEnumTranspose = 1,
};

MLIR_CAPI_EXPORTED bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,12 @@ class IREEGPU_I32PipelineEnumAttr<string name, string summary, list<I32EnumAttrC

// ReorderWorkgroups EnumAttrCases.
def ReorderWorkgroupsNone : I32EnumAttrCase<"None", 0>;
def ReorderWorkgroupsSwizzle : I32EnumAttrCase<"Swizzle", 1>;
def ReorderWorkgroupsTranspose : I32EnumAttrCase<"Transpose", 2>;
def ReorderWorkgroupsTranspose : I32EnumAttrCase<"Transpose", 1>;

// EnumAttr for workgroup reordering strategy enums.
def IREEGPU_ReorderWorkgroupsStrategy : IREEGPU_I32PipelineEnumAttr<"ReorderWorkgroupsStrategy",
"Strategy for workgroup reordering", [
ReorderWorkgroupsNone,
ReorderWorkgroupsSwizzle,
ReorderWorkgroupsTranspose
]> {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,6 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os,
case ReorderWorkgroupsStrategy::Transpose:
reorderStr = "transpose";
break;
case ReorderWorkgroupsStrategy::Swizzle:
reorderStr = "swizzle";
break;
case ReorderWorkgroupsStrategy::None:
reorderStr = "none";
break;
Expand Down

0 comments on commit c0dff68

Please sign in to comment.