API

IREE::HAL

HAL

Enumerations

NameDescription
MetalTargetPlatformMetal target platforms.

MetalTargetPlatform

enum MetalTargetPlatform

Defined in compiler/plugins/target/MetalSPIRV/MetalTargetPlatform.h:15

Metal target platforms.

ValueDescription
macOS
iOS
iOSSimulator

Functions

ReturnNameDescription
std::optional< llvm::StringRef >getMetalLanguageStandard static
LogicalResultrunSystemCommand staticReturns the given command via system shell.
std::unique_ptr< llvm::MemoryBuffer >compileMSLToMetalLib

getMetalLanguageStandard

static

static std::optional< llvm::StringRef > getMetalLanguageStandard(uint32_t languageVersion)

Defined in compiler/plugins/target/MetalSPIRV/MSLToMetalLib.cpp:23


runSystemCommand

static

static LogicalResult runSystemCommand(llvm::StringRef command)

Defined in compiler/plugins/target/MetalSPIRV/MSLToMetalLib.cpp:76

Returns the given command via system shell.


compileMSLToMetalLib

std::unique_ptr< llvm::MemoryBuffer > compileMSLToMetalLib(MetalTargetPlatform targetPlatform, uint32_t languageVersion, llvm::StringRef mslCode, llvm::StringRef entryPoint)

Defined in compiler/plugins/target/MetalSPIRV/MSLToMetalLib.cpp:88