File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
mlir/include/mlir/Dialect/XeGPU/uArch Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ struct XeCoreInfo {
37
37
uint32_t num_vector_units;
38
38
uint32_t num_matrix_units;
39
39
40
- // Constructor
41
40
XeCoreInfo (uint32_t num_threads, const SharedMemory &shared_memory,
42
41
uint32_t num_vector_units, uint32_t num_matrix_units)
43
42
: num_threads(num_threads), shared_memory(shared_memory),
@@ -60,10 +59,7 @@ struct Xe2Plus : public uArch {
60
59
// struct to represent DPAS instruction
61
60
struct DPASInstruction : public Instruction , public MMAInstructionInterface {
62
61
DPASInstruction ()
63
- : Instruction(InstructionKind::DPAS, // name
64
- " Dot Product Accumulate" ,
65
- InstructionScope::Subgroup) // description
66
- {}
62
+ : Instruction(InstructionKind::DPAS, InstructionScope::Subgroup) {}
67
63
68
64
// Override all virtuals from MatrixOpInterface
69
65
virtual llvm::SmallVector<std::pair<uint32_t , uint32_t >, 16 >
Original file line number Diff line number Diff line change @@ -69,13 +69,12 @@ std::optional<InstructionKind> parseInstructionKind(llvm::StringRef str) {
69
69
// struct and add more fields as needed
70
70
struct Instruction {
71
71
// @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) {}
74
74
75
75
virtual ~Instruction () = default ;
76
76
// Get methods
77
77
InstructionKind getInstructionKind () { return instKind; }
78
- std::string getDescription () { return description; }
79
78
InstructionScope getScope () { return scope; }
80
79
81
80
protected:
@@ -143,7 +142,7 @@ struct CacheInfo {
143
142
// - the name of the uArch,
144
143
// - the description of the uArch,
145
144
// - uArch hierarchy
146
- // - Rgister File information
145
+ // - Register File information
147
146
// - Cache information
148
147
// - the set of instructions supported by the uArch,
149
148
struct uArch {
You can’t perform that action at this time.
0 commit comments