| 971 | streamHeader[len_i] = (15) + ((1 + 1 + NameLen + 1 + interfaceIDs.Count()) << 16); |
| 972 | } |
| 973 | void OpExecutionMode(const int entryID, const ExecutionMode mode, const int op1, const int op2, const int op3) |
| 974 | { |
| 975 | bool LocalSize = false; |
| 976 | if (mode == ExecutionMode::LocalSize) |
| 977 | LocalSize = true; |
| 978 | |
| 979 | sbTextHeader << LR"(OpExecutionMode %)" << entryID << LR"( )" << ExecutionModeToString(mode); |
| 980 | if (LocalSize) |
| 981 | sbTextHeader << op1 << op2 << op3; |
| 982 | sbTextHeader << EndLine; |
| 983 | |
| 984 | int len = 3; |
| 985 | if (LocalSize) |
| 986 | len += 3; |
| 987 | streamHeader.Add(16 + (len << 16)); |
| 988 | streamHeader.Add(entryID); |
| 989 | streamHeader.Add((int)mode); |
| 990 | if (LocalSize) { |
| 991 | streamHeader.Add(op1); |
| 992 | streamHeader.Add(op2); |
| 993 | streamHeader.Add(op3); |
| 994 | } |
| 995 | } |
| 996 | int Decorate(const Decoration deco, int op1 = 0) |
| 997 | { |
| 998 | int len = 0; |
no test coverage detected