API

HAL::detail

detail

Functions

ReturnNameDescription
std::optional< std::string >buildMetalCompileCommandReturns the command to compile the given MSL source file into Metal library.

buildMetalCompileCommand

std::optional< std::string > buildMetalCompileCommand(MetalTargetPlatform targetPlatform, uint32_t languageVersion, llvm::StringRef mslFile, llvm::StringRef libFile)

Defined in compiler/plugins/target/MetalSPIRV/MSLToMetalLib.h:25

Returns the command to compile the given MSL source file into Metal library.