Lines Matching refs:addInstruction
70 void addInstruction(spirv::Opcode op, ArrayRef<uint32_t> operands) { in addInstruction() function in DeserializationTest
78 addInstruction(spirv::Opcode::OpTypeVoid, {id}); in addVoidType()
84 addInstruction(spirv::Opcode::OpTypeInt, {id, bitwidth, /*signedness=*/1}); in addIntType()
93 addInstruction(spirv::Opcode::OpTypeStruct, words); in addStructType()
103 addInstruction(spirv::Opcode::OpTypeFunction, operands); in addFunctionType()
109 addInstruction(spirv::Opcode::OpFunction, in addFunction()
116 void addFunctionEnd() { addInstruction(spirv::Opcode::OpFunctionEnd, {}); } in addFunctionEnd()
118 void addReturn() { addInstruction(spirv::Opcode::OpReturn, {}); } in addReturn()
172 addInstruction(spirv::Opcode::OpTypeInt, {nextID++, 32}); in TEST_F()
193 addInstruction(spirv::Opcode::OpMemberName, operands1); in TEST_F()
197 addInstruction(spirv::Opcode::OpMemberName, operands2); in TEST_F()
214 addInstruction(spirv::Opcode::OpMemberName, operands1); in TEST_F()
233 addInstruction(spirv::Opcode::OpMemberName, operands); in TEST_F()
285 addInstruction(spirv::Opcode::OpLabel, {}); // Malformed OpLabel in TEST_F()