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

Method isTileIRBytecode

lib/Bytecode/Reader/BytecodeReader.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42bool cuda_tile::isTileIRBytecode(llvm::MemoryBufferRef bytecodeBuffer) {
43 // Check if the bytecode buffer starts with the expected magic number.
44 if (bytecodeBuffer.getBufferSize() < sizeof(kTileIRBytecodeMagic))
45 return false;
46 return memcmp(bytecodeBuffer.getBufferStart(), kTileIRBytecodeMagic,
47 sizeof(kTileIRBytecodeMagic)) == 0;
48}
49bool cuda_tile::isTileIRBytecode(const char *bytecodeBuffer) {
50 if (!bytecodeBuffer)
51 return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected