[clang] [llvm] [AMDGPU] Enable OpenCL hostcall printf (WIP) (PR #72556)
    Sameer Sahasrabuddhe via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Feb 20 22:18:46 PST 2024
    
    
  
================
@@ -178,17 +181,29 @@ RValue CodeGenFunction::EmitNVPTXDevicePrintfCallExpr(const CallExpr *E) {
       E, this, GetVprintfDeclaration(CGM.getModule()), false);
 }
 
+// Deterimines if an argument is a string
+static bool isString(const clang::Type *argXTy) {
----------------
ssahasra wrote:
This could be called "MayBeString()" at best. It's not necessary that a char* argument type is a C-style string.
https://github.com/llvm/llvm-project/pull/72556
    
    
More information about the llvm-commits
mailing list