[clang] [WIP][AMDGPU] Support for type inferring image load/store builtins for AMDGPU (PR #140210)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 07:59:11 PDT 2025


================
@@ -128,6 +160,16 @@ bool SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(unsigned BuiltinID,
   return false;
 }
 
+bool SemaAMDGPU::checkImageImmArgFunctionCall(CallExpr *TheCall,
+                                              unsigned ArgCount) {
+  llvm::APSInt Result;
+  if (!(SemaRef.BuiltinConstantArg(TheCall, 0, Result)) &&
----------------
shiltian wrote:

you can directly use return here

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


More information about the cfe-commits mailing list