Problem:
Currently Metal has its own unique entry-point legalization logic (LegalizeMetalEntryPointContext). This should be refactored such that LegalizeMetalEntryPointContext runs using the EntryPointVaryingParamLegalizeContext entry-point legalization logic so we: 1. reduce code-reuse 2. CUDA/CPP benefit from all Metal improvements. This will require significant changes to EntryPointVaryingParamLegalizeContext.
Problem: Currently Metal has its own unique entry-point legalization logic (
LegalizeMetalEntryPointContext
). This should be refactored such thatLegalizeMetalEntryPointContext
runs using theEntryPointVaryingParamLegalizeContext
entry-point legalization logic so we: 1. reduce code-reuse 2. CUDA/CPP benefit from all Metal improvements. This will require significant changes toEntryPointVaryingParamLegalizeContext
.