@@ -32,7 +32,7 @@ pub struct InstructionTable {
3232
3333impl InstructionTable {
3434 pub fn new ( ) -> Self {
35- let table = rspirv:: grammar:: CoreInstructionTable :: iter ( )
35+ let table = rspirv:: grammar:: INSTRUCTION_TABLE . iter ( )
3636 . map ( |inst| ( inst. opname , inst) )
3737 . collect ( ) ;
3838 Self { table }
@@ -1537,6 +1537,9 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
15371537 Ok ( x) => inst. operands . push ( dr:: Operand :: StoreCacheControl ( x) ) ,
15381538 Err ( ( ) ) => self . err ( format ! ( "unknown StoreCacheControl {word}" ) ) ,
15391539 } ,
1540+ ( kind, Some ( _) ) => {
1541+ self . err ( format ! ( "unsupported operand kind {kind:?}" ) ) ;
1542+ }
15401543 ( kind, None ) => match token {
15411544 Token :: Word ( _) => bug ! ( ) ,
15421545 Token :: String ( _) => {
@@ -1573,14 +1576,14 @@ pub const IMAGE_OPERANDS: &[(&str, ImageOperands)] = &[
15731576 ( "MakeTexelAvailable" , ImageOperands :: MAKE_TEXEL_AVAILABLE ) ,
15741577 (
15751578 "MakeTexelAvailableKHR" ,
1576- ImageOperands :: MAKE_TEXEL_AVAILABLE_KHR ,
1579+ ImageOperands :: MAKE_TEXEL_AVAILABLE ,
15771580 ) ,
15781581 ( "MakeTexelVisible" , ImageOperands :: MAKE_TEXEL_VISIBLE ) ,
1579- ( "MakeTexelVisibleKHR" , ImageOperands :: MAKE_TEXEL_VISIBLE_KHR ) ,
1582+ ( "MakeTexelVisibleKHR" , ImageOperands :: MAKE_TEXEL_VISIBLE ) ,
15801583 ( "NonPrivateTexel" , ImageOperands :: NON_PRIVATE_TEXEL ) ,
1581- ( "NonPrivateTexelKHR" , ImageOperands :: NON_PRIVATE_TEXEL_KHR ) ,
1584+ ( "NonPrivateTexelKHR" , ImageOperands :: NON_PRIVATE_TEXEL ) ,
15821585 ( "VolatileTexel" , ImageOperands :: VOLATILE_TEXEL ) ,
1583- ( "VolatileTexelKHR" , ImageOperands :: VOLATILE_TEXEL_KHR ) ,
1586+ ( "VolatileTexelKHR" , ImageOperands :: VOLATILE_TEXEL ) ,
15841587 ( "SignExtend" , ImageOperands :: SIGN_EXTEND ) ,
15851588 ( "ZeroExtend" , ImageOperands :: ZERO_EXTEND ) ,
15861589] ;
@@ -1618,7 +1621,7 @@ pub const FUNCTION_CONTROL: &[(&str, FunctionControl)] = &[
16181621] ;
16191622pub const MEMORY_SEMANTICS : & [ ( & str , MemorySemantics ) ] = & [
16201623 ( "Relaxed" , MemorySemantics :: RELAXED ) ,
1621- ( "None" , MemorySemantics :: NONE ) ,
1624+ ( "None" , MemorySemantics :: RELAXED ) ,
16221625 ( "Acquire" , MemorySemantics :: ACQUIRE ) ,
16231626 ( "Release" , MemorySemantics :: RELEASE ) ,
16241627 ( "AcquireRelease" , MemorySemantics :: ACQUIRE_RELEASE ) ,
@@ -1639,11 +1642,11 @@ pub const MEMORY_SEMANTICS: &[(&str, MemorySemantics)] = &[
16391642 ) ,
16401643 ( "ImageMemory" , MemorySemantics :: IMAGE_MEMORY ) ,
16411644 ( "OutputMemory" , MemorySemantics :: OUTPUT_MEMORY ) ,
1642- ( "OutputMemoryKHR" , MemorySemantics :: OUTPUT_MEMORY_KHR ) ,
1645+ ( "OutputMemoryKHR" , MemorySemantics :: OUTPUT_MEMORY ) ,
16431646 ( "MakeAvailable" , MemorySemantics :: MAKE_AVAILABLE ) ,
1644- ( "MakeAvailableKHR" , MemorySemantics :: MAKE_AVAILABLE_KHR ) ,
1647+ ( "MakeAvailableKHR" , MemorySemantics :: MAKE_AVAILABLE ) ,
16451648 ( "MakeVisible" , MemorySemantics :: MAKE_VISIBLE ) ,
1646- ( "MakeVisibleKHR" , MemorySemantics :: MAKE_VISIBLE_KHR ) ,
1649+ ( "MakeVisibleKHR" , MemorySemantics :: MAKE_VISIBLE ) ,
16471650 ( "Volatile" , MemorySemantics :: VOLATILE ) ,
16481651] ;
16491652pub const MEMORY_ACCESS : & [ ( & str , MemoryAccess ) ] = & [
@@ -1654,17 +1657,17 @@ pub const MEMORY_ACCESS: &[(&str, MemoryAccess)] = &[
16541657 ( "MakePointerAvailable" , MemoryAccess :: MAKE_POINTER_AVAILABLE ) ,
16551658 (
16561659 "MakePointerAvailableKHR" ,
1657- MemoryAccess :: MAKE_POINTER_AVAILABLE_KHR ,
1660+ MemoryAccess :: MAKE_POINTER_AVAILABLE ,
16581661 ) ,
16591662 ( "MakePointerVisible" , MemoryAccess :: MAKE_POINTER_VISIBLE ) ,
16601663 (
16611664 "MakePointerVisibleKHR" ,
1662- MemoryAccess :: MAKE_POINTER_VISIBLE_KHR ,
1665+ MemoryAccess :: MAKE_POINTER_VISIBLE ,
16631666 ) ,
16641667 ( "NonPrivatePointer" , MemoryAccess :: NON_PRIVATE_POINTER ) ,
16651668 (
16661669 "NonPrivatePointerKHR" ,
1667- MemoryAccess :: NON_PRIVATE_POINTER_KHR ,
1670+ MemoryAccess :: NON_PRIVATE_POINTER ,
16681671 ) ,
16691672] ;
16701673pub const KERNEL_PROFILING_INFO : & [ ( & str , KernelProfilingInfo ) ] = & [
0 commit comments