[llvm] [llvm][ctx_profile] Add the `llvm.instrprof.callsite` intrinsic (PR #89939)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 09:17:17 PDT 2024


================
@@ -291,6 +291,8 @@ Value *InstrProfIncrementInst::getStep() const {
   return ConstantInt::get(Type::getInt64Ty(Context), 1);
 }
 
+Value *InstrProfCallsite::getCallee() const { return getArgOperand(4); }
----------------
snehasish wrote:

Do you need a check like L286 in `getStep` above to get the callee? If not can you add a comment.

https://github.com/llvm/llvm-project/pull/89939


More information about the llvm-commits mailing list