Skip to content

Commit f1535d1

Browse files
committed
Address review comments.
1 parent e5a5ac6 commit f1535d1

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

mlir/include/mlir/Dialect/XeGPU/uArch/IntelGpuXe2.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ struct XeCoreInfo {
3737
uint32_t num_vector_units;
3838
uint32_t num_matrix_units;
3939

40-
// Constructor
4140
XeCoreInfo(uint32_t num_threads, const SharedMemory &shared_memory,
4241
uint32_t num_vector_units, uint32_t num_matrix_units)
4342
: num_threads(num_threads), shared_memory(shared_memory),
@@ -60,10 +59,7 @@ struct Xe2Plus : public uArch {
6059
// struct to represent DPAS instruction
6160
struct DPASInstruction : public Instruction, public MMAInstructionInterface {
6261
DPASInstruction()
63-
: Instruction(InstructionKind::DPAS, // name
64-
"Dot Product Accumulate",
65-
InstructionScope::Subgroup) // description
66-
{}
62+
: Instruction(InstructionKind::DPAS, InstructionScope::Subgroup) {}
6763

6864
// Override all virtuals from MatrixOpInterface
6965
virtual llvm::SmallVector<std::pair<uint32_t, uint32_t>, 16>

mlir/include/mlir/Dialect/XeGPU/uArch/uArchBase.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@ std::optional<InstructionKind> parseInstructionKind(llvm::StringRef str) {
6969
// struct and add more fields as needed
7070
struct Instruction {
7171
// @TODO: Add more fields as needed
72-
Instruction(InstructionKind kind, std::string desc, InstructionScope scope)
73-
: instKind(kind), description(std::move(desc)), scope(scope) {}
72+
Instruction(InstructionKind kind, InstructionScope scope)
73+
: instKind(kind), scope(scope) {}
7474

7575
virtual ~Instruction() = default;
7676
// Get methods
7777
InstructionKind getInstructionKind() { return instKind; }
78-
std::string getDescription() { return description; }
7978
InstructionScope getScope() { return scope; }
8079

8180
protected:
@@ -143,7 +142,7 @@ struct CacheInfo {
143142
// - the name of the uArch,
144143
// - the description of the uArch,
145144
// - uArch hierarchy
146-
// - Rgister File information
145+
// - Register File information
147146
// - Cache information
148147
// - the set of instructions supported by the uArch,
149148
struct uArch {

0 commit comments

Comments
 (0)