|
@@ -308,20 +308,6 @@ SpirvBinaryOp *SpirvBuilder::createBinaryOp(spv::Op op, QualType resultType,
|
|
|
return instruction;
|
|
|
}
|
|
|
|
|
|
-SpirvBinaryOp *SpirvBuilder::createBinaryOp(spv::Op op,
|
|
|
- const SpirvType *resultType,
|
|
|
- SpirvInstruction *lhs,
|
|
|
- SpirvInstruction *rhs,
|
|
|
- SourceLocation loc) {
|
|
|
- assert(insertPoint && "null insert point");
|
|
|
- auto *instruction =
|
|
|
- new (context) SpirvBinaryOp(op, /*QualType*/ {}, loc, lhs, rhs);
|
|
|
- instruction->setResultType(resultType);
|
|
|
- instruction->setNonUniform(lhs->isNonUniform() || rhs->isNonUniform());
|
|
|
- insertPoint->addInstruction(instruction);
|
|
|
- return instruction;
|
|
|
-}
|
|
|
-
|
|
|
SpirvSpecConstantBinaryOp *SpirvBuilder::createSpecConstantBinaryOp(
|
|
|
spv::Op op, QualType resultType, SpirvInstruction *lhs,
|
|
|
SpirvInstruction *rhs, SourceLocation loc) {
|