MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / validateAllOperationsHaveOpcodes

Function validateAllOperationsHaveOpcodes

tools/cuda-tile-tblgen/BytecodeGen.cpp:50–60  ·  view source on GitHub ↗

Validates that all CudaTileOpDef operations have bytecode opcode assignments.

Source from the content-addressed store, hash-verified

48/// Validates that all CudaTileOpDef operations have bytecode opcode
49/// assignments.
50static 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:

Callers 1

Calls 1

getOperationNameMethod · 0.45

Tested by

no test coverage detected