Displaying 2 results from an estimated 2 matches for "recordrw".
Did you mean:
recordrow
2018 Jan 04
0
writing llvm pass to instrument read and write
Hello All,
I am trying to write llvm pass to instrument function in external library. I am using clang to automatically load my pass. I have test.cpp which calls functions in library testlib.so. I have written llvm pass to instrument all reads and writes in test.cpp and call function(recordRW) in testlib.so.
this is how my pass looks like -
for (auto &BB : F) {
for (auto &I : BB) {
// Is this a load or store? Get the address.
Value *Ptr = nullptr;
Value *op_l = nullptr;
Value *op_s = nullptr;
if (auto *LI = dyn_cast<LoadInst>...
2018 Jan 04
0
writing llvm pass for external library
Hello All,
I am trying to write llvm pass to instrument function in external library. I am using clang to automatically load my pass. I have test.cpp which calls functions in library testlib.so. I have written llvm pass to instrument all reads and writes in test.cpp and call function(recordRW) in testlib.so.
this is how my pass looks like -
for (auto &BB : F) {
for (auto &I : BB) {
// Is this a load or store? Get the address.
Value *Ptr = nullptr;
Value *op_l = nullptr;
Value *op_s = nullptr;
if (auto *LI = dyn_cast<LoadInst>...