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

Method parseCallSite

lib/Bytecode/Reader/BytecodeReader.cpp:1063–1076  ·  view source on GitHub ↗

call-site =: DebugTag[CallSite] diCalleeIndex[varint] - LocationAttr diCallerIndex[varint] - LocationAttr

Source from the content-addressed store, hash-verified

1061 // diCalleeIndex[varint] - LocationAttr
1062 // diCallerIndex[varint] - LocationAttr
1063 LogicalResult parseCallSite(EncodingReader &reader, Attribute &callSite) {
1064 auto callee = readAndGetDebugInfo<LocationAttr>(reader);
1065 if (!callee)
1066 return reader.emitError()
1067 << "failed to read callee attribute when parsing CallSiteLoc";
1068
1069 auto caller = readAndGetDebugInfo<LocationAttr>(reader);
1070 if (!caller)
1071 return reader.emitError()
1072 << "failed to read caller attribute when parsing CallSiteLoc";
1073
1074 callSite = CallSiteLoc::get(callee, caller);
1075 return success();
1076 }
1077
1078 // unknown =:
1079 // DebugTag[Unknown]

Callers

nothing calls this directly

Calls 1

emitErrorMethod · 0.80

Tested by

no test coverage detected