yonghong-song added a comment.

To answer one of your questions above, if there is a function definition 
before, dyn_cast<llvm::Function>(...) will return nullptr. I tried starting 
from "Value" class and found dyn_cast to llvm::ConstantExpr will result in a 
non-null object, but I did not trace down further with subclasses of 
llvm::ConstantExpr.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100567/new/

https://reviews.llvm.org/D100567

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to