| 2351 | } |
| 2352 | |
| 2353 | Instruction* Builder::addEntryPoint(ExecutionModel model, Function* function, const char* name) |
| 2354 | { |
| 2355 | Instruction* entryPoint = new Instruction(Op::OpEntryPoint); |
| 2356 | entryPoint->reserveOperands(3); |
| 2357 | entryPoint->addImmediateOperand(model); |
| 2358 | entryPoint->addIdOperand(function->getId()); |
| 2359 | entryPoint->addStringOperand(name); |
| 2360 | |
| 2361 | entryPoints.push_back(std::unique_ptr<Instruction>(entryPoint)); |
| 2362 | |
| 2363 | return entryPoint; |
| 2364 | } |
| 2365 | |
| 2366 | // Currently relying on the fact that all 'value' of interest are small non-negative values. |
| 2367 | void Builder::addExecutionMode(Function* entryPoint, ExecutionMode mode, int value1, int value2, int value3) |
no test coverage detected