Lines Matching refs:addInstruction
69 void addInstruction(spirv::Opcode op, ArrayRef<uint32_t> operands) { in addInstruction() function in DeserializationTest
77 addInstruction(spirv::Opcode::OpTypeVoid, {id}); in addVoidType()
83 addInstruction(spirv::Opcode::OpTypeInt, {id, bitwidth, /*signedness=*/1}); in addIntType()
92 addInstruction(spirv::Opcode::OpTypeStruct, words); in addStructType()
102 addInstruction(spirv::Opcode::OpTypeFunction, operands); in addFunctionType()
108 addInstruction(spirv::Opcode::OpFunction, in addFunction()
115 void addFunctionEnd() { addInstruction(spirv::Opcode::OpFunctionEnd, {}); } in addFunctionEnd()
117 void addReturn() { addInstruction(spirv::Opcode::OpReturn, {}); } in addReturn()
171 addInstruction(spirv::Opcode::OpTypeInt, {nextID++, 32}); in TEST_F()
192 addInstruction(spirv::Opcode::OpMemberName, operands1); in TEST_F()
196 addInstruction(spirv::Opcode::OpMemberName, operands2); in TEST_F()
213 addInstruction(spirv::Opcode::OpMemberName, operands1); in TEST_F()
232 addInstruction(spirv::Opcode::OpMemberName, operands); in TEST_F()
284 addInstruction(spirv::Opcode::OpLabel, {}); // Malformed OpLabel in TEST_F()