| 488 | } |
| 489 | |
| 490 | bool VariantDefs::ProcessVariantDefs() { |
| 491 | EnsureBoolType(); |
| 492 | CollectVarInsts(); |
| 493 | if (!GenerateFnVarConstants()) { |
| 494 | return false; |
| 495 | } |
| 496 | CollectBaseFnCalls(); |
| 497 | return true; |
| 498 | } |
| 499 | |
| 500 | void VariantDefs::GenerateHeader(IRContext* linked_context) { |
| 501 | linked_context->AddCapability(spv::Capability::SpecConditionalINTEL); |