namespace llvm {
-// A call site that could be devirtualized.
+/// A call site that could be devirtualized.
struct DevirtCallSite {
- // The offset from the address point to the virtual function.
+ /// The offset from the address point to the virtual function.
uint64_t Offset;
- // The call site itself.
+ /// The call site itself.
CallSite CS;
};
-// Given a call to the intrinsic @llvm.bitset.test, find all devirtualizable
-// call sites based on the call and return them in DevirtCalls.
+/// Given a call to the intrinsic @llvm.bitset.test, find all devirtualizable
+/// call sites based on the call and return them in DevirtCalls.
void findDevirtualizableCalls(SmallVectorImpl<DevirtCallSite> &DevirtCalls,
SmallVectorImpl<CallInst *> &Assumes,
CallInst *CI);