Lines Matching full:opcode
58 inline bool isAtomicOpCode(Op OpCode) { in SPIRV_DEF_NAMEMAP()
60 return ((unsigned)OpCode >= OpAtomicLoad in SPIRV_DEF_NAMEMAP()
61 && (unsigned)OpCode <= OpAtomicXor) in SPIRV_DEF_NAMEMAP()
62 || OpCode == OpAtomicFlagTestAndSet in SPIRV_DEF_NAMEMAP()
63 || OpCode == OpAtomicFlagClear; in SPIRV_DEF_NAMEMAP()
65 inline bool isBinaryOpCode(Op OpCode) { in isBinaryOpCode() argument
66 return ((unsigned)OpCode >= OpIAdd && in isBinaryOpCode()
67 (unsigned)OpCode <= OpFMod) || in isBinaryOpCode()
68 OpCode == OpDot; in isBinaryOpCode()
71 inline bool isShiftOpCode(Op OpCode) { in isShiftOpCode() argument
72 return (unsigned)OpCode >= OpShiftRightLogical && in isShiftOpCode()
73 (unsigned)OpCode <= OpShiftLeftLogical; in isShiftOpCode()
76 inline bool isLogicalOpCode(Op OpCode) { in isLogicalOpCode() argument
77 return (unsigned)OpCode >= OpLogicalEqual && in isLogicalOpCode()
78 (unsigned)OpCode <= OpLogicalNot; in isLogicalOpCode()
81 inline bool isBitwiseOpCode(Op OpCode) { in isBitwiseOpCode() argument
82 return (unsigned)OpCode >= OpBitwiseOr && in isBitwiseOpCode()
83 (unsigned)OpCode <= OpBitwiseAnd; in isBitwiseOpCode()
86 inline bool isBinaryShiftLogicalBitwiseOpCode(Op OpCode) { in isBinaryShiftLogicalBitwiseOpCode() argument
87 return (((unsigned)OpCode >= OpShiftRightLogical && in isBinaryShiftLogicalBitwiseOpCode()
88 (unsigned)OpCode <= OpBitwiseAnd) || in isBinaryShiftLogicalBitwiseOpCode()
89 isBinaryOpCode(OpCode)); in isBinaryShiftLogicalBitwiseOpCode()
92 inline bool isCmpOpCode(Op OpCode) { in isCmpOpCode() argument
93 return ((unsigned)OpCode >= OpIEqual && in isCmpOpCode()
94 (unsigned)OpCode <= OpFUnordGreaterThanEqual) || in isCmpOpCode()
95 (OpCode >= OpLessOrGreater && OpCode <= OpLogicalNotEqual); in isCmpOpCode()
98 inline bool isCvtOpCode(Op OpCode) { in isCvtOpCode() argument
99 return ((unsigned)OpCode >= OpConvertFToU && in isCvtOpCode()
100 (unsigned)OpCode <= OpBitcast) || in isCvtOpCode()
101 OpCode == OpSatConvertSToU || in isCvtOpCode()
102 OpCode == OpSatConvertUToS; in isCvtOpCode()
105 inline bool isCvtToUnsignedOpCode(Op OpCode) { in isCvtToUnsignedOpCode() argument
106 return OpCode == OpConvertFToU || in isCvtToUnsignedOpCode()
107 OpCode == OpUConvert || in isCvtToUnsignedOpCode()
108 OpCode == OpSatConvertSToU; in isCvtToUnsignedOpCode()
111 inline bool isCvtFromUnsignedOpCode(Op OpCode) { in isCvtFromUnsignedOpCode() argument
112 return OpCode == OpConvertUToF || in isCvtFromUnsignedOpCode()
113 OpCode == OpUConvert || in isCvtFromUnsignedOpCode()
114 OpCode == OpSatConvertUToS; in isCvtFromUnsignedOpCode()
117 inline bool isOpaqueGenericTypeOpCode(Op OpCode) { in isOpaqueGenericTypeOpCode() argument
118 return (unsigned)OpCode >= OpTypeEvent && in isOpaqueGenericTypeOpCode()
119 (unsigned)OpCode <= OpTypeQueue; in isOpaqueGenericTypeOpCode()
122 inline bool isGenericNegateOpCode(Op OpCode) { in isGenericNegateOpCode() argument
123 return (unsigned)OpCode == OpSNegate || in isGenericNegateOpCode()
124 (unsigned)OpCode == OpFNegate || in isGenericNegateOpCode()
125 (unsigned)OpCode == OpNot; in isGenericNegateOpCode()
128 inline bool isAccessChainOpCode(Op OpCode) { in isAccessChainOpCode() argument
129 return OpCode == OpAccessChain || in isAccessChainOpCode()
130 OpCode == OpInBoundsAccessChain; in isAccessChainOpCode()
133 inline bool hasExecScope(Op OpCode) { in hasExecScope() argument
134 unsigned OC = OpCode; in hasExecScope()
141 inline bool hasGroupOperation(Op OpCode) { in hasGroupOperation() argument
142 unsigned OC = OpCode; in hasGroupOperation()
146 inline bool isGroupOpCode(Op OpCode) { in isGroupOpCode() argument
147 unsigned OC = OpCode; in isGroupOpCode()
151 inline bool isPipeOpCode(Op OpCode) { in isPipeOpCode() argument
152 unsigned OC = OpCode; in isPipeOpCode()
155 inline bool isTypeOpCode(Op OpCode) { in isTypeOpCode() argument
156 unsigned OC = OpCode; in isTypeOpCode()
160 inline bool isConstantOpCode(Op OpCode) { in isConstantOpCode() argument
161 unsigned OC = OpCode; in isConstantOpCode()
167 inline bool isModuleScopeAllowedOpCode(Op OpCode) { in isModuleScopeAllowedOpCode() argument
168 return OpCode == OpVariable || in isModuleScopeAllowedOpCode()
169 isConstantOpCode(OpCode); in isModuleScopeAllowedOpCode()