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

Method isOpcodeAvailableInVersion

lib/Bytecode/Common/Version.cpp:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68//===----------------------------------------------------------------------===//
69
70bool 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

Callers

nothing calls this directly

Calls 2

getMajorMethod · 0.80
getMinorMethod · 0.80

Tested by

no test coverage detected