| 3555 | } |
| 3556 | |
| 3557 | Id Builder::createConstData(Op opCode, Id typeId, const std::vector<const char*> operands) |
| 3558 | { |
| 3559 | Instruction* op = new Instruction(getUniqueId(), typeId, opCode); |
| 3560 | op->reserveOperands(operands.size()); |
| 3561 | for (auto id : operands) |
| 3562 | op->addStringOperand(id); |
| 3563 | module.mapInstruction(op); |
| 3564 | constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(op)); |
| 3565 | |
| 3566 | return op->getResultId(); |
| 3567 | } |
| 3568 | |
| 3569 | Id Builder::createOp(Op opCode, Id typeId, const std::vector<Id>& operands) |
| 3570 | { |
no test coverage detected