MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / IsSupportedCondition

Method IsSupportedCondition

source/opt/loop_descriptor.cpp:96–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool Loop::IsSupportedCondition(spv::Op condition) const {
97 switch (condition) {
98 // <
99 case spv::Op::OpULessThan:
100 case spv::Op::OpSLessThan:
101 // >
102 case spv::Op::OpUGreaterThan:
103 case spv::Op::OpSGreaterThan:
104
105 // >=
106 case spv::Op::OpSGreaterThanEqual:
107 case spv::Op::OpUGreaterThanEqual:
108 // <=
109 case spv::Op::OpSLessThanEqual:
110 case spv::Op::OpULessThanEqual:
111
112 return true;
113 default:
114 return false;
115 }
116}
117
118int64_t Loop::GetResidualConditionValue(spv::Op condition,
119 int64_t initial_value,

Callers 3

CheckConditionMethod · 0.80
GetTripCountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected