Skip to content

Commit ddf79c8

Browse files
anikaushikigcbot
authored andcommitted
Minor changes to SWSB handling
Minor changes to SWSB handling
1 parent 7b4102e commit ddf79c8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

visa/iga/IGALibrary/Frontend/KernelParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,8 @@ class KernelParser : GenParser {
34683468
} else if (ConsumeIdentEq("src")) {
34693469
// $4.src
34703470
m_builder.InstDepInfoSBidSrc(loc, sbid);
3471-
} else {
3471+
}
3472+
else {
34723473
FailT("invalid SBID directive expecting 'dst' or 'src'");
34733474
}
34743475
} else if (!LookingAtAnyOf(COMMA, RBRACE)) {

visa/iga/IGALibrary/api/iga_types_swsb.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ enum class SWSB_ENCODE_MODE : uint32_t {
3636
FourDistPipeReduction = 6,
3737
// MTL: 3 distance pipe with DP operations in Math pipe
3838
ThreeDistPipeDPMath = 7,
39-
4039
};
4140

4241
static_assert((uint32_t)SWSB_ENCODE_MODE::SWSBInvalidMode == 0,
@@ -64,7 +63,12 @@ struct SWSB {
6463
REG_DIST_MATH, // XeHPC
6564
};
6665

67-
enum class TokenType { NOTOKEN, SET, SRC, DST };
66+
enum class TokenType {
67+
NOTOKEN,
68+
SET,
69+
SRC,
70+
DST,
71+
};
6872

6973
enum class InstType { UNKNOWN, DPAS, MATH, SEND, OTHERS };
7074

0 commit comments

Comments
 (0)