| 68 | //===----------------------------------------------------------------------===// |
| 69 | |
| 70 | bool mlir::cuda_tile::detail::isOpcodeAvailableInVersion( |
| 71 | uint32_t opcode, const BytecodeVersion &version) { |
| 72 | auto it = getVersionToMaxOpcodeMap().find( |
| 73 | std::make_pair(version.getMajor(), version.getMinor())); |
| 74 | if (it == getVersionToMaxOpcodeMap().end()) |
| 75 | return false; |
| 76 | return opcode <= it->second; |
| 77 | } |
| 78 | |
| 79 | //===----------------------------------------------------------------------===// |
| 80 | // Supported Versions List |