sameerds added inline comments.

================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp:589
+    A.checkForAllCallLikeInstructions(CheckForHostcallAccess, *this,
+                                      UsedAssumedInformation);
+
----------------
jdoerfert wrote:
> Always check the return value, if it is false something went wrong and some 
> calls might have been missed. Basically,
> ```
> if (!A.check...)
>   NeedsHostCallPtr = true;
> ```
> then you also can just return false in the callback w/o setting it.
Thanks! This eliminated the variable. Also used the opportunity to get more 
creative with the callback names!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119216

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

Reply via email to