Issue 153286
Summary [CIR] Upstream support for functions with variadic arguments
Labels ClangIR
Assignees
Reporter andykaylor
    ### Overview
Upstream support for handling functions with variadic arguments in ClangIR.

As the list of existing incubator tests indicates, there are several layers to the scope of this task, which should be implemented in a series of pull requests.

### Suggested minimal test case
```
int f1(int n, ...) {
  va_list valist;
  va_start(valist, n);
  int res = va_arg(valist, int);
  va_end(valist);
  return res;
}```

### Existing incubator tests
clang/test/CIR/CodeGen/var-arg.c
clang/test/CIR/CodeGen/var-arg-float.c
clang/test/CIR/CodeGen/var-arg-scope.c
clang/test/CIR/CodeGen/variadic-ctor.cpp
clang/test/CIR/CodeGen/variadics.c
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to