Validates that all CudaTileOpDef operations have bytecode opcode assignments.
| 48 | /// Validates that all CudaTileOpDef operations have bytecode opcode |
| 49 | /// assignments. |
| 50 | static void validateAllOperationsHaveOpcodes( |
| 51 | const RecordKeeper &records, |
| 52 | const llvm::DenseSet<StringRef> &opsWithOpcodes) { |
| 53 | for (const Record *opDef : |
| 54 | records.getAllDerivedDefinitions("CudaTileOpDef")) { |
| 55 | if (!opsWithOpcodes.count(opDef->getName())) |
| 56 | PrintFatalError(opDef->getLoc(), |
| 57 | "operation '" + Operator(opDef).getOperationName() + |
| 58 | "' is missing BytecodeOpcode assignment"); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /// Validates all opcode assignments for consistency and correctness. |
| 63 | /// Checks: |
no test coverage detected