Pass that rewrites switch instructions as a sequence of branches.

Synopsis

Declared in <llvm/Transforms/Utils/LowerSwitch.h>

struct LowerSwitchPass
    : RequiredPassInfoMixin<LowerSwitchPass>

Description

This allows targets to get away with not implementing the switch instruction until it is convenient.

Base Classes

Name

Description

RequiredPassInfoMixin<LowerSwitchPass>

A CRTP mix‐in for passes that should not be skipped.

Member Functions

Name

Description

run

Run the lower‐switch pass over the function.

Static Member Functions

Name

Description

isRequired

Return true; required passes cannot be skipped.

Created with MrDocs