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

Method extractDefaultValue

tools/cuda-tile-tblgen/BytecodeGenUtilities.cpp:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70std::optional<std::string>
71mlir::tblgen::extractDefaultValue(const NamedAttribute &namedAttr) {
72 if (namedAttr.attr.hasDefaultValue())
73 return namedAttr.attr.getDefaultValue().str();
74 return std::nullopt;
75}
76
77std::string mlir::tblgen::extractVersionFromOperation(const Operator &op) {
78 const auto &def = op.getDef();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected