Displaying 2 results from an estimated 2 matches for "ben_fu1".
2018 Jun 08
1
Retrieving the name of a indirect virtual method call in LLVM pass
...lude indirect calls too. I looked and saw that LLVM supports a metadata type called ‘callees’, but I don’t see that it’s currently being implemented by clang. Will this eventually be used?
Thanks,
Ben
From: David Blaikie <dblaikie at gmail.com>
Sent: Friday, June 8, 2018 1:06 PM
To: ben_fu1 at utexas.edu
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Retrieving the name of a indirect virtual method call in LLVM pass
Sounds like maybe you're trying to do something at a level where it's not going to be practical - what's your overall goal?
But no, at the LLVM IR...
2018 Jun 03
2
Retrieving the name of a indirect virtual method call in LLVM pass
Hi,
I have been implementing a CallGraphSCCPass that analyzes each function
invocation. Direct calls are not a problem, but currently I also need to
retrieve the name of the function in the case of virtual method calls. For
example:
struct A {
A() {}
virtual foo() {}
virtual ~A() {}
};
int main() {
A* a = new A;
a->foo();
}
In the pass, I can determine