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

Method parseDICompileUnit

lib/Bytecode/Reader/BytecodeReader.cpp:914–923  ·  view source on GitHub ↗

di-compile-unit =: DebugTag[DICompileUnit] diFileIndex[varint] - DIFileAttr

Source from the content-addressed store, hash-verified

912 // DebugTag[DICompileUnit]
913 // diFileIndex[varint] - DIFileAttr
914 LogicalResult parseDICompileUnit(EncodingReader &reader,
915 Attribute &diCompileUnit) {
916 auto file = readAndGetDebugInfo<DIFileAttr>(reader);
917 if (!file)
918 return reader.emitError()
919 << "failed to read file attribute when parsing DICompileUnitAttr";
920
921 diCompileUnit = DICompileUnitAttr::get(&context, file);
922 return success();
923 }
924
925 // di-file =:
926 // DebugTag[DIFile]

Callers

nothing calls this directly

Calls 1

emitErrorMethod · 0.80

Tested by

no test coverage detected