Shilei Tian f05d2e8a39
[AMDGPU] Make uniform-work-group-size a valueless attribute (#183925)
The "uniform-work-group-size" function attribute previously took a
string value of "true" or "false". Since presence alone can convey the
"true" semantics and absence can convey "false", the value is
unnecessary.

This patch converts it to a valueless string attribute: presence
indicates true, absence indicates false. For backward compatibility,
auto-upgrade logic is added in both UpgradeAttributes (bitcode) and
UpgradeFunctionAttributes: if the old value is "true", the attribute is
kept without a value; if "false", the attribute is removed.
2026-03-01 21:29:55 +00:00
..

The tests in this directory check that basic KernelInfoPrinter functionality behaves reasonably for LLVM IR produced by Clang OpenMP codegen.

So that these tests are straightforward to maintain and faithfully represent Clang OpenMP codegen, do not tweak or reduce the LLVM IR in them. Other tests more exhaustively check KernelInfoPrinter features using reduced LLVM IR.

The LLVM IR in each test file $TEST can be regenerated as follows in the case that Clang OpenMP codegen changes or it becomes desirable to adjust the source OpenMP program below. First, remove the existing LLVM IR from $TEST. Then, where $TARGET (e.g., nvptx64-nvidia-cuda-sm_70 or amdgcn-amd-amdhsa-gfx906) depends on $TEST:

$ cd /tmp
$ cat test.c
#pragma omp declare target
void f();
void g() {
  int i;
  int a[2];
  f();
  g();
}
#pragma omp end declare target

void h(int i) {
  #pragma omp target map(tofrom:i)
  {
    int i;
    int a[2];
    f();
    g();
  }
}

$ clang -g -fopenmp --offload-arch=native -save-temps -c test.c
$ llvm-dis test-openmp-$TARGET.bc
$ cat test-openmp-$TARGET.ll >> $TEST