| 40 | }; |
| 41 | |
| 42 | bool 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 | } |
| 49 | bool cuda_tile::isTileIRBytecode(const char *bytecodeBuffer) { |
| 50 | if (!bytecodeBuffer) |
| 51 | return false; |
nothing calls this directly
no outgoing calls
no test coverage detected