llvm.org GIT mirror llvm / 883c374
CFLAA: reflow comments; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362442 91177308-0d34-0410-b5e6-96231b3b80d8 George Burgess IV 3 months ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
151151 }
152152 };
153153
154 ///A builder class used to create CFLGraph instance from a given function
154 /// A builder class used to create CFLGraph instance from a given function
155155 /// The CFL-AA that uses this builder must provide its own type as a template
156156 /// argument. This is necessary for interprocedural processing: CFLGraphBuilder
157157 /// needs a way of obtaining the summary of other functions when callinsts are
180180
181181 static bool hasUsefulEdges(ConstantExpr *CE) {
182182 // ConstantExpr doesn't have terminators, invokes, or fences, so only
183 // needs
184 // to check for compares.
183 // needs to check for compares.
185184 return CE->getOpcode() != Instruction::ICmp &&
186185 CE->getOpcode() != Instruction::FCmp;
187186 }
196195 }
197196
198197 // TODO: If the call is indirect, we might be able to enumerate all
199 // potential
200 // targets of the call and return them, rather than just failing.
198 // potential targets of the call and return them, rather than just
199 // failing.
201200 return false;
202201 }
203202