Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

byval.cl
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - -triple amdgcn %s | FileCheck %s

struct A {
  int x[100];
};

int f(struct A a);

int g() {
  struct A a;
  // CHECK: call i32 @f(%struct.A addrspace(5)* noundef byval{{.*}}%a)
  return f(a);
}

// CHECK: declare i32 @f(%struct.A addrspace(5)* noundef byval{{.*}})