| 80 | return varOp; |
| 81 | } |
| 82 | FetchArgInstruction * FetchArg(ExpressionType * etype, int argId) |
| 83 | { |
| 84 | auto type = TranslateExpressionType(etype); |
| 85 | auto arrType = dynamic_cast<ILArrayType*>(type.Ptr()); |
| 86 | FetchArgInstruction * varOp = 0; |
| 87 | if (arrType) |
| 88 | { |
| 89 | auto baseType = arrType->BaseType.Release(); |
| 90 | varOp = codeWriter.FetchArg(baseType, argId); |
| 91 | } |
| 92 | else |
| 93 | { |
| 94 | varOp = codeWriter.FetchArg(type, argId); |
| 95 | } |
| 96 | return varOp; |
| 97 | } |
| 98 | void TranslateStages(PipelineSyntaxNode * pipeline) |
| 99 | { |
| 100 | for (auto & stage : pipeline->GetStages()) |
no test coverage detected