Lines Matching refs:spirv

38     context.getOrLoadDialect<mlir::spirv::SPIRVDialect>();  in DeserializationTest()
47 OwningOpRef<spirv::ModuleOp> deserialize() { in deserialize()
48 return spirv::deserialize(binary, &context); in deserialize()
65 spirv::appendModuleHeader(binary, spirv::Version::V_1_0, /*idBound=*/0); in addHeader()
69 void addInstruction(spirv::Opcode op, ArrayRef<uint32_t> operands) { in addInstruction()
71 binary.push_back(spirv::getPrefixedOpcode(wordCount, op)); in addInstruction()
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()
110 static_cast<uint32_t>(spirv::FunctionControl::None), in addFunction()
115 void addFunctionEnd() { addInstruction(spirv::Opcode::OpFunctionEnd, {}); } in addFunctionEnd()
117 void addReturn() { addInstruction(spirv::Opcode::OpReturn, {}); } in addReturn()
158 static_cast<uint32_t>(spirv::Opcode::OpTypeVoid)); in TEST_F()
171 addInstruction(spirv::Opcode::OpTypeInt, {nextID++, 32}); in TEST_F()
191 (void)spirv::encodeStringLiteralInto(operands1, "i1"); in TEST_F()
192 addInstruction(spirv::Opcode::OpMemberName, operands1); in TEST_F()
195 (void)spirv::encodeStringLiteralInto(operands2, "i2"); in TEST_F()
196 addInstruction(spirv::Opcode::OpMemberName, operands2); in TEST_F()
213 addInstruction(spirv::Opcode::OpMemberName, operands1); in TEST_F()
230 (void)spirv::encodeStringLiteralInto(operands, "int32"); in TEST_F()
232 addInstruction(spirv::Opcode::OpMemberName, operands); in TEST_F()
284 addInstruction(spirv::Opcode::OpLabel, {}); // Malformed OpLabel in TEST_F()