Skip to content

Commit a0874ab

Browse files
trbauerigcbot
authored andcommitted
normalize IR_Builder names
Normalize IR_Builder names. Get rid of Odd_Snake_Case....
1 parent ec05391 commit a0874ab

24 files changed

+524
-527
lines changed

visa/BuildIR.h

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,11 @@ class IR_Builder
566566

567567
void bindInputDecl(G4_Declare* dcl, int grfOffset);
568568

569-
uint32_t getPerThreadInputSize() const
570-
{
569+
uint32_t getPerThreadInputSize() const {
571570
return kernel.getInt32KernelAttr(Attributes::ATTR_PerThreadInputSize);
572571
}
573572

574-
int32_t getCrossThreadInputSize() const
575-
{
573+
int32_t getCrossThreadInputSize() const {
576574
return kernel.getInt32KernelAttr(Attributes::ATTR_CrossThreadInputSize);
577575
}
578576

@@ -1336,15 +1334,15 @@ class IR_Builder
13361334
G4_SrcRegRegion* src, uint16_t start, uint8_t size, uint16_t newVs, uint16_t newWd);
13371335
G4_INST *makeSplittingInst(G4_INST *inst, G4_ExecSize execSize);
13381336

1339-
G4_InstSend *Create_Send_Inst_For_CISA(
1337+
G4_InstSend *createSendInst(
13401338
G4_Predicate *pred,
13411339
G4_DstRegRegion *postDst, G4_SrcRegRegion *payload,
13421340
G4_ExecSize execSize,
13431341
G4_SendDescRaw *msgDesc,
13441342
G4_InstOpts options,
13451343
bool is_sendc);
13461344

1347-
G4_InstSend *Create_SplitSend_Inst(
1345+
G4_InstSend *createSplitSendInst(
13481346
G4_Predicate *pred,
13491347
G4_DstRegRegion *dst, G4_SrcRegRegion *src1, G4_SrcRegRegion *src2,
13501348
G4_ExecSize execSize,
@@ -1353,7 +1351,7 @@ class IR_Builder
13531351
bool is_sendc);
13541352

13551353

1356-
G4_InstSend *Create_SplitSend_Inst_For_RT(
1354+
G4_InstSend *createSplitSendToRenderTarget(
13571355
G4_Predicate *pred,
13581356
G4_DstRegRegion *dst,
13591357
G4_SrcRegRegion *src1,
@@ -1363,7 +1361,7 @@ class IR_Builder
13631361
G4_SendDescRaw *msgDesc,
13641362
G4_InstOpts option);
13651363

1366-
G4_InstSend* Create_Send_Inst_For_CISA(
1364+
G4_InstSend* createSendInst(
13671365
G4_Predicate* pred,
13681366
G4_DstRegRegion* postDst,
13691367
G4_SrcRegRegion* payload,
@@ -1379,7 +1377,7 @@ class IR_Builder
13791377
G4_InstOpts options,
13801378
bool is_sendc);
13811379

1382-
G4_InstSend* Create_SplitSend_Inst_For_CISA(
1380+
G4_InstSend* createSplitSendInst(
13831381
G4_Predicate* pred, G4_DstRegRegion* dst,
13841382
G4_SrcRegRegion* src1, unsigned regs2snd1,
13851383
G4_SrcRegRegion* src2, unsigned regs2snd2,
@@ -1395,12 +1393,14 @@ class IR_Builder
13951393

13961394
// helper functions
13971395
G4_Declare *createSendPayloadDcl(unsigned num_elt, G4_Type type);
1398-
void Create_MOVR0_Inst(
1396+
1397+
void createMovR0Inst(
13991398
G4_Declare* dcl,
14001399
short refOff,
14011400
short subregOff,
14021401
bool use_nomask = false);
1403-
void Create_MOV_Inst(
1402+
1403+
void createMovInst(
14041404
G4_Declare* dcl,
14051405
short refOff,
14061406
short subregOff,
@@ -1410,7 +1410,7 @@ class IR_Builder
14101410
G4_Operand* src_opnd,
14111411
bool use_nomask = false,
14121412
G4_InstOpts options = InstOpt_NoOpt);
1413-
void Create_ADD_Inst(
1413+
void createAddInst(
14141414
G4_Declare* dcl,
14151415
short regOff,
14161416
short subregOff,
@@ -1420,28 +1420,25 @@ class IR_Builder
14201420
G4_Operand* src0_opnd,
14211421
G4_Operand* src1_opnd,
14221422
G4_InstOption options);
1423-
void Create_MOV_Send_Src_Inst(
1423+
void createMovSendSrcInst(
14241424
G4_Declare* dcl,
14251425
short refOff,
14261426
short subregOff,
14271427
unsigned num_dword,
14281428
G4_Operand* src_opnd,
14291429
G4_InstOpts options);
14301430

1431-
1432-
14331431
// short hand for creating a dstRegRegion
1434-
G4_DstRegRegion* Create_Dst_Opnd_From_Dcl(G4_Declare* dcl, unsigned short hstride);
1435-
G4_SrcRegRegion* Create_Src_Opnd_From_Dcl(G4_Declare* dcl, const RegionDesc* rd);
1432+
G4_DstRegRegion* createDstRegRegion(G4_Declare* dcl, unsigned short hstride);
1433+
G4_SrcRegRegion* createSrcRegRegion(G4_Declare* dcl, const RegionDesc* rd);
14361434

14371435
// Create a null dst with scalar region and the given type
14381436
G4_DstRegRegion* createNullDst(G4_Type dstType);
14391437

14401438
// Create a null src with scalar region and the given type
14411439
G4_SrcRegRegion* createNullSrc(G4_Type dstType);
14421440

1443-
G4_DstRegRegion* Check_Send_Dst(G4_DstRegRegion *dst_opnd);
1444-
1441+
G4_DstRegRegion* checkSendDst(G4_DstRegRegion *dst_opnd);
14451442

14461443
G4_INST* createDpasInst(
14471444
G4_opcode opc,

0 commit comments

Comments
 (0)