[clang] [llvm] [AMDGPU] Implement variadic functions by IR lowering (PR #93362)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 04:09:57 PDT 2024


================
@@ -0,0 +1,180 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature
+
+// Simple calls to known variadic functions that are completely elided when
+// optimisations are on This is a functional check that the expand-variadic pass
+// is consistent with clang's va_arg handling
+
+// When expand-variadics is added to the default pipeline, clang -O1 will
+// suffice here -Wno-varargs avoids warning second argument to 'va_start' is not
+// the last named parameter
+
+// RUN: %clang_cc1 %s -triple wasm32-unknown-unknown -Wno-varargs -O1 -emit-llvm -o - | opt - -S --passes='module(expand-variadics,default<O1>)' --expand-variadics-override=optimize -o - | FileCheck %s
----------------
arsenm wrote:

Does this need REQUIRES: wasm-registered-target 

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


More information about the llvm-commits mailing list