11// Copyright (c) 2015-2022 The Khronos Group Inc.
2- // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights
3- // reserved.
2+ // Modifications Copyright (C) 2020-2024 Advanced Micro Devices, Inc. All
3+ // rights reserved.
44//
55// Licensed under the Apache License, Version 2.0 (the "License");
66// you may not use this file except in compliance with the License.
@@ -265,12 +265,14 @@ int32_t spvOpcodeIsConstant(const spv::Op opcode) {
265265 case spv::Op::OpConstantSampler:
266266 case spv::Op::OpConstantNull:
267267 case spv::Op::OpConstantFunctionPointerINTEL:
268+ case spv::Op::OpConstantStringAMDX:
268269 case spv::Op::OpSpecConstantTrue:
269270 case spv::Op::OpSpecConstantFalse:
270271 case spv::Op::OpSpecConstant:
271272 case spv::Op::OpSpecConstantComposite:
272273 case spv::Op::OpSpecConstantCompositeReplicateEXT:
273274 case spv::Op::OpSpecConstantOp:
275+ case spv::Op::OpSpecConstantStringAMDX:
274276 return true ;
275277 default :
276278 return false ;
@@ -318,6 +320,7 @@ bool spvOpcodeReturnsLogicalVariablePointer(const spv::Op opcode) {
318320 case spv::Op::OpFunctionParameter:
319321 case spv::Op::OpImageTexelPointer:
320322 case spv::Op::OpCopyObject:
323+ case spv::Op::OpAllocateNodePayloadsAMDX:
321324 case spv::Op::OpSelect:
322325 case spv::Op::OpPhi:
323326 case spv::Op::OpFunctionCall:
@@ -344,6 +347,7 @@ int32_t spvOpcodeReturnsLogicalPointer(const spv::Op opcode) {
344347 case spv::Op::OpImageTexelPointer:
345348 case spv::Op::OpCopyObject:
346349 case spv::Op::OpRawAccessChainNV:
350+ case spv::Op::OpAllocateNodePayloadsAMDX:
347351 return true ;
348352 default :
349353 return false ;
@@ -382,6 +386,7 @@ int32_t spvOpcodeGeneratesType(spv::Op op) {
382386 case spv::Op::OpTypeRayQueryKHR:
383387 case spv::Op::OpTypeHitObjectNV:
384388 case spv::Op::OpTypeUntypedPointerKHR:
389+ case spv::Op::OpTypeNodePayloadArrayAMDX:
385390 return true ;
386391 default :
387392 // In particular, OpTypeForwardPointer does not generate a type,
0 commit comments