我正在尝试检测 LLVM IR 调用指令。我想要实现的是获取函数调用的参数。如果参数是指针类型,那么我想获取指针指向的元素/变量。我知道如果我有论据,我可以使用
getPointerElementType to get the type of element the pointer is pointing to.
但是如何访问element的值呢?
instrumentation arguments function llvm
arguments ×1
function ×1
instrumentation ×1
llvm ×1