CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
52 lines
2.2 KiB
C
52 lines
2.2 KiB
C
// When entry values are emitted, expect a subprogram for extern decls so that
|
|
// the dwarf generator can describe call site parameters at extern call sites.
|
|
//
|
|
// Initial implementation relied on the 'retainedTypes:' from the corresponding
|
|
// DICompileUnit, so we also ensure that we do not store the extern declaration
|
|
// subprogram into the 'retainedTypes:'.
|
|
//
|
|
// RUN: %clang -g -O2 -target x86_64-none-linux-gnu -S -emit-llvm %s -o - \
|
|
// RUN: | FileCheck %s -check-prefix=DECLS-FOR-EXTERN
|
|
|
|
// Similarly, when the debugger tuning is gdb, expect a subprogram for extern
|
|
// decls so that the dwarf generator can describe information needed for tail
|
|
// call frame reconstrution.
|
|
//
|
|
// RUN: %clang -gdwarf-4 -O2 -target x86_64-none-linux-gnu -ggdb -S -emit-llvm %s -o - \
|
|
// RUN: | FileCheck %s -check-prefix=DECLS-FOR-EXTERN
|
|
//
|
|
// Do not emit a subprogram for extern decls when entry values are disabled and
|
|
// the tuning is not set to gdb.
|
|
//
|
|
// RUN: %clang -gdwarf-4 -O2 -target x86_64-none-linux-gnu -gsce -S -emit-llvm %s -o - \
|
|
// RUN: | FileCheck %s -check-prefix=NO-DECLS-FOR-EXTERN
|
|
|
|
// DECLS-FOR-EXTERN-NOT: !DICompileUnit({{.*}}retainedTypes: !{{[0-9]+}}
|
|
// DECLS-FOR-EXTERN: [[INT_TYPE:![0-9]+]] = !DIBasicType(name: "int",
|
|
// DECLS-FOR-EXTERN: !DISubprogram(name: "fn1"
|
|
// DECLS-FOR-EXTERN-SAME: type: [[FN1_TYPE:![0-9]+]],
|
|
// DECLS-FOR-EXTERN: [[FN1_TYPE]] = !DISubroutineType(types: [[FN1_TYPES:![0-9]+]])
|
|
// DECLS-FOR-EXTERN: [[FN1_TYPES]] = !{[[X_TYPE:![0-9]+]],
|
|
// DECLS-FOR-EXTERN: [[X_TYPE]] = !DIDerivedType(tag: DW_TAG_typedef, name: "x",
|
|
// DECLS-FOR-EXTERN-SAME: baseType: [[INT_TYPE]])
|
|
// DECLS-FOR-EXTERN: !DISubprogram(name: "memcmp"
|
|
// DECLS-FOR-EXTERN: !DISubprogram(name: "__some_reserved_name"
|
|
|
|
// NO-DECLS-FOR-EXTERN-NOT: !DISubprogram(name: "fn1"
|
|
// NO-DECLS-FOR-EXTERN-NOT: !DISubprogram(name: "memcmp"
|
|
// NO-DECLS-FOR-EXTERN-NOT: !DISubprogram(name: "__some_reserved_name"
|
|
|
|
typedef int x;
|
|
extern x fn1(int a, int b);
|
|
extern int memcmp(const void *s1, const void *s2, unsigned long n);
|
|
extern void __some_reserved_name(void);
|
|
|
|
int fn2 (int *src, int *dst) {
|
|
int x = 4, y = 5;
|
|
int res = fn1(x, y);
|
|
int res2 = memcmp(dst, src, res);
|
|
__some_reserved_name();
|
|
return res + res2;
|
|
}
|
|
|