Home | History | Annotate | Download | only in CodeGen

Lines Matching full:switch

71   switch (S->getStmtClass()) {
169 switch (S->getStmtClass()) {
367 // The first instruction in the block has to be the PHI for the switch dest,
795 assert(!BreakContinueStack.empty() && "break stmt not in a loop or switch!");
821 /// add multiple cases to switch instruction, one for each value within
831 // switch machinery to enter this block.
843 // Range is small enough to add multiple switch instruction cases.
856 // in the default basic block). The switch's default will be changed
857 // to the top of this chain after switch emission is complete.
898 // the end of the switch as well.
923 // Otherwise, iteratively add consecutive cases to this switch stmt.
944 /// CollectStatementsForCase - Given the body of a 'switch' statement and a
946 /// the body of the switch to a simple series of statements to emit. Basically,
947 /// on a switch (5) we want to find these statements:
995 // If this is a switch statement, then it might contain the SwitchCase, the
1012 switch (CollectStatementsForCase(*I, Case, FoundCase, ResultStmts)) {
1017 // and also contains the break to exit the switch. In the later case,
1051 switch (CollectStatementsForCase(*I, 0, FoundCase, ResultStmts)) {
1081 // so long as it doesn't contain a break out of the switch we're in.
1092 /// for a switch on constant. See the comment above CollectStatementsForCase
1098 // First step, find the switch case that is being branched to. We can do this
1122 // elide the whole switch body!
1124 // It is safe to elide the body of the switch if it doesn't contain labels
1136 // switch (4) {
1153 // See if we can constant fold the condition of the switch and therefore only
1154 // emit the live case statement (if any) of the switch.
1172 // Handle nested switch statements.
1176 // Create basic block to hold stuff that comes after switch
1195 // Emit switch body.
1211 // Otherwise, just forward the default block to the switch end.
1233 switch (*Constraint) {