Lines Matching full:branch
12 // positions pass, and a branch pseudo op to machine branch opcode pass. This
28 #define DEBUG_TYPE "msp430-branch-select"
31 BranchSelectEnabled("msp430-branch-select", cl::Hidden, cl::init(true),
60 StringRef getPassName() const override { return "MSP430 Branch Selector"; } in getPassName()
66 // According to CC430 Family User's Guide, Section 4.5.1.3, branch in isInRage()
73 "Branch offset should be word aligned!"); in isInRage()
108 // For each conditional branch, if the offset to its destination is larger in expandBranches()
109 // than the offset field allows, transform it into a long branch sequence in expandBranches()
111 // short branch: in expandBranches()
113 // long branch: in expandBranches()
123 // If this instruction is not a short branch then skip it. in expandBranches()
129 // Determine the distance from the current branch to the destination in expandBranches()
130 // block. MBBStartOffset already includes the size of the current branch in expandBranches()
136 // If this branch is in range, ignore it. in expandBranches()
141 LLVM_DEBUG(dbgs() << " Found a branch that needs expanding, " in expandBranches()
190 // 1. MSP430 branch predicate in expandBranches()
194 // Jump over the long branch on the opposite condition in expandBranches()
203 // Unconditional branch to the real destination. in expandBranches()
207 // Remove the old branch from the function. in expandBranches()
239 // If the entire function is smaller than the displacement of a branch field, in runOnMachineFunction()
254 /// Returns an instance of the Branch Selection Pass