Skip to content

Commit 572491e

Browse files
committed
Internal feature
Change-Id: Ieb40dfb9eeb2aad156c11b387a4c221c9c67893d
1 parent b878de8 commit 572491e

11 files changed

+803
-722
lines changed

visa/BinaryCISAEmission.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int CBinaryCISAEmitter::Emit(VISAKernelImpl * cisa_kernel, unsigned int& binaryS
160160
CisaFramework::CisaInst * inst = *inst_iter;
161161

162162
CISA_INST * cisa_inst = inst->getCISAInst();
163-
VISA_INST_Desc * inst_desc = inst->getCISAInstDesc();
163+
const VISA_INST_Desc * inst_desc = inst->getCISAInstDesc();
164164
status = emitCisaInst(cisa_kernel, cisa_inst, inst_desc);
165165
if( status != CM_SUCCESS )
166166
{
@@ -171,7 +171,8 @@ int CBinaryCISAEmitter::Emit(VISAKernelImpl * cisa_kernel, unsigned int& binaryS
171171
return status;
172172
}
173173

174-
int CBinaryCISAEmitter::emitCisaInst(VISAKernelImpl* cisa_kernel, CISA_INST* inst, VISA_INST_Desc* desc)
174+
int CBinaryCISAEmitter::emitCisaInst(
175+
VISAKernelImpl* cisa_kernel, CISA_INST* inst, const VISA_INST_Desc* desc)
175176
{
176177
bool useSubDesc = false;
177178
uint8_t subOpcode = 0;

visa/BinaryCISAEmission.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace vISA
6363
void emitLabelInfo(VISAKernelImpl * cisa_kernel, label_info_t * lbl);
6464
void emitInputInfo(VISAKernelImpl * cisa_kernel, input_info_t * in);
6565
void emitAttributeInfo(VISAKernelImpl * cisa_kernel, attribute_info_t * attr);
66-
int emitCisaInst(VISAKernelImpl * cisa_kernel, CISA_INST * inst, VISA_INST_Desc * desc);
66+
int emitCisaInst(VISAKernelImpl * cisa_kernel, CISA_INST * inst, const VISA_INST_Desc * desc);
6767
void emitVectorOpnd(VISAKernelImpl * cisa_kernel, vector_opnd * v_opnd);
6868
void emitRawOpnd(VISAKernelImpl * cisa_kernel, raw_opnd * v_opnd);
6969
};

visa/BuildCISAIR.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class CISA_IR_Builder : public VISABuilder
255255
VISA_opnd *src1,
256256
int line_no);
257257

258-
bool CISA_create_cmp_instruction(Common_ISA_Cond_Mod sub_op,
258+
bool CISA_create_cmp_instruction(Common_ISA_Cond_Mod sub_op,
259259
ISA_Opcode opcode,
260260
Common_VISA_EMask_Ctrl emask,
261261
unsigned exec_size,

visa/BuildIR.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ class IR_Builder {
10871087
/* numberOfFlags MEANS NUMBER OF WORDS (e.g., 1 means 16-bit), not number of bits or number of data elements in operands. */
10881088
G4_Declare* createTempFlag(unsigned short numberOfFlags, const char* prefix = "TEMP_FLAG_" )
10891089
{
1090-
char* name = getNameString(mem, 20, "%s%d", prefix, num_temp_dcl++);
1090+
const char* name = getNameString(mem, 20, "%s%d", prefix, num_temp_dcl++);
10911091

10921092
G4_Declare* dcl = createDeclareNoLookup(name, G4_FLAG, numberOfFlags, 1, Type_UW);
10931093

@@ -2423,7 +2423,7 @@ class IR_Builder {
24232423
//gets next power of 2 size
24242424
return Round_Up_Pow2(ioWidth / dcl->getElemSize()) * dcl->getElemSize();
24252425
}
2426-
void fixSendDstType(G4_DstRegRegion* dst, uint8_t execSize );
2426+
void fixSendDstType(G4_DstRegRegion* dst, uint8_t execSize);
24272427

24282428
struct payloadSource {
24292429
G4_SrcRegRegion *opnd;

0 commit comments

Comments
 (0)