Lines Matching refs:MsgId
1545 bool isValidMsgId(int64_t MsgId, const MCSubtargetInfo &STI) { in isValidMsgId() argument
1546 return (MsgId & ~(getMsgIdMask(STI))) == 0; in isValidMsgId()
1549 StringRef getMsgName(int64_t MsgId, const MCSubtargetInfo &STI) { in getMsgName() argument
1550 int Idx = getOprIdx<const MCSubtargetInfo &>(MsgId, Msg, MSG_SIZE, STI); in getMsgName()
1554 int64_t getMsgOpId(int64_t MsgId, const StringRef Name) { in getMsgOpId() argument
1555 const char* const *S = (MsgId == ID_SYSMSG) ? OpSysSymbolic : OpGsSymbolic; in getMsgOpId()
1556 const int F = (MsgId == ID_SYSMSG) ? OP_SYS_FIRST_ : OP_GS_FIRST_; in getMsgOpId()
1557 const int L = (MsgId == ID_SYSMSG) ? OP_SYS_LAST_ : OP_GS_LAST_; in getMsgOpId()
1566 bool isValidMsgOp(int64_t MsgId, int64_t OpId, const MCSubtargetInfo &STI, in isValidMsgOp() argument
1568 assert(isValidMsgId(MsgId, STI)); in isValidMsgOp()
1573 if (MsgId == ID_SYSMSG) in isValidMsgOp()
1576 switch (MsgId) { in isValidMsgOp()
1586 StringRef getMsgOpName(int64_t MsgId, int64_t OpId, in getMsgOpName() argument
1588 assert(msgRequiresOp(MsgId, STI)); in getMsgOpName()
1589 return (MsgId == ID_SYSMSG)? OpSysSymbolic[OpId] : OpGsSymbolic[OpId]; in getMsgOpName()
1592 bool isValidMsgStream(int64_t MsgId, int64_t OpId, int64_t StreamId, in isValidMsgStream() argument
1594 assert(isValidMsgOp(MsgId, OpId, STI, Strict)); in isValidMsgStream()
1600 switch (MsgId) { in isValidMsgStream()
1612 bool msgRequiresOp(int64_t MsgId, const MCSubtargetInfo &STI) { in msgRequiresOp() argument
1613 return MsgId == ID_SYSMSG || in msgRequiresOp()
1615 (MsgId == ID_GS_PreGFX11 || MsgId == ID_GS_DONE_PreGFX11)); in msgRequiresOp()
1618 bool msgSupportsStream(int64_t MsgId, int64_t OpId, in msgSupportsStream() argument
1621 (MsgId == ID_GS_PreGFX11 || MsgId == ID_GS_DONE_PreGFX11) && in msgSupportsStream()
1625 void decodeMsg(unsigned Val, uint16_t &MsgId, uint16_t &OpId, in decodeMsg() argument
1627 MsgId = Val & getMsgIdMask(STI); in decodeMsg()
1637 uint64_t encodeMsg(uint64_t MsgId, in encodeMsg() argument
1640 return MsgId | (OpId << OP_SHIFT_) | (StreamId << STREAM_ID_SHIFT_); in encodeMsg()