forked from OSchip/llvm-project
parent
0df2b085bc
commit
0f522a5903
|
@ -20,16 +20,16 @@
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue