-
Notifications
You must be signed in to change notification settings - Fork 9
[KTDF][KTDFArch] Record splat mode on ktdf.read_from_fifo
#45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
a08db51
7b533f8
dc60e0d
523a824
4d97a6d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -363,6 +363,7 @@ struct SIMD : FeatureAttr<&KTDFArchDialect::getFeatureSIMDAttrName> { | |
| static constexpr StringLiteral kSplatAttrName = "splat"; | ||
| static constexpr StringLiteral kZeroPadAttrName = "zero_pad"; | ||
| static constexpr StringLiteral kLanesAttrName = "lanes"; | ||
| static constexpr StringLiteral kSubSimdLanesAttrName = "sub_simd_lanes"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keeping with the style of the existing attribute, this should be called There was also the open design question on whether SIMD lanes could be multidimensional, i.e., |
||
|
|
||
| using LanesAttr = TypedMapAttr<TypeAttr, I64Attr>; | ||
|
|
||
|
|
@@ -395,6 +396,21 @@ struct SIMD : FeatureAttr<&KTDFArchDialect::getFeatureSIMDAttrName> { | |
| } | ||
| return 0; | ||
| } | ||
|
|
||
| /// Gets the width of a sub-SIMD group, in lanes, per scalar type. The lanes | ||
| /// of a group are what a shuffle mode naming sub-SIMD groups operates over. | ||
| [[nodiscard]] auto getSubSimdLanes() const -> LanesAttr { | ||
| return getAttr<LanesAttr>(kSubSimdLanesAttrName); | ||
| } | ||
| /// Gets the width of a sub-SIMD group, in lanes, for @p scalar_type . | ||
| /// | ||
| /// @returns Group width for @p scalar_type , or 0 if not declared. | ||
| [[nodiscard]] auto getSubSimdLanes(Type scalar_type) const -> int64_t { | ||
| if (const auto lanes = getSubSimdLanes(); lanes) { | ||
| return lanes.getValue(TypeAttr::get(scalar_type)).value_or(0); | ||
| } | ||
| return 0; | ||
| } | ||
| }; | ||
|
|
||
| // Indicates that the execution unit can perform store operations. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.