Home
last modified time | relevance | path

Searched refs:MsgId (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DFunctionCognitiveComplexityCheck.cpp105 unsigned MsgId; // The id of the message to output. in process() local
110 MsgId = 0; in process()
113 MsgId = 1; in process()
116 MsgId = 2; in process()
119 MsgId = 3; in process()
123 return std::make_pair(MsgId, Increment); in process()
205 unsigned MsgId; in account() local
207 std::tie(MsgId, Increase) = D.process(); in account()
557 unsigned MsgId; // The id of the message to output. in check() local
559 std::tie(MsgId, Increase) = Detail.process(); in check()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp1546 return (MsgId & ~(getMsgIdMask(STI))) == 0; in isValidMsgId()
1568 assert(isValidMsgId(MsgId, STI)); in isValidMsgOp()
1573 if (MsgId == ID_SYSMSG) in isValidMsgOp()
1576 switch (MsgId) { in isValidMsgOp()
1588 assert(msgRequiresOp(MsgId, STI)); in getMsgOpName()
1600 switch (MsgId) { in isValidMsgStream()
1613 return MsgId == ID_SYSMSG || in msgRequiresOp()
1615 (MsgId == ID_GS_PreGFX11 || MsgId == ID_GS_DONE_PreGFX11)); in msgRequiresOp()
1621 (MsgId == ID_GS_PreGFX11 || MsgId == ID_GS_DONE_PreGFX11) && in msgSupportsStream()
1627 MsgId = Val & getMsgIdMask(STI); in decodeMsg()
[all …]
H A DAMDGPUBaseInfo.h744 int64_t getMsgOpId(int64_t MsgId, const StringRef Name);
747 StringRef getMsgName(int64_t MsgId, const MCSubtargetInfo &STI);
750 StringRef getMsgOpName(int64_t MsgId, int64_t OpId, const MCSubtargetInfo &STI);
753 bool isValidMsgId(int64_t MsgId, const MCSubtargetInfo &STI);
756 bool isValidMsgOp(int64_t MsgId, int64_t OpId, const MCSubtargetInfo &STI,
760 bool isValidMsgStream(int64_t MsgId, int64_t OpId, int64_t StreamId,
764 bool msgRequiresOp(int64_t MsgId, const MCSubtargetInfo &STI);
767 bool msgSupportsStream(int64_t MsgId, int64_t OpId, const MCSubtargetInfo &STI);
769 void decodeMsg(unsigned Val, uint16_t &MsgId, uint16_t &OpId,
773 uint64_t encodeMsg(uint64_t MsgId,
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUInstPrinter.cpp1349 uint16_t MsgId; in printSendMsg() local
1352 decodeMsg(Imm16, MsgId, OpId, StreamId, STI); in printSendMsg()
1354 StringRef MsgName = getMsgName(MsgId, STI); in printSendMsg()
1356 if (!MsgName.empty() && isValidMsgOp(MsgId, OpId, STI) && in printSendMsg()
1357 isValidMsgStream(MsgId, OpId, StreamId, STI)) { in printSendMsg()
1359 if (msgRequiresOp(MsgId, STI)) { in printSendMsg()
1360 O << ", " << getMsgOpName(MsgId, OpId, STI); in printSendMsg()
1361 if (msgSupportsStream(MsgId, OpId, STI)) { in printSendMsg()
1366 } else if (encodeMsg(MsgId, OpId, StreamId) == Imm16) { in printSendMsg()
1367 O << "sendmsg(" << MsgId << ", " << OpId << ", " << StreamId << ')'; in printSendMsg()