[Chapel Merge] Generate undef on Chapel signatures to match clang

Branch: add-undef
Revision: f5851ee0c27fbd017cfd3654c94929d77eba484b
Author: jabraham17
Merged at: 2026-11-17T00:38:15Z
Link: Generate undef on Chapel signatures to match clang by jabraham17 · Pull Request #29697 · chapel-lang/chapel · GitHub
Log Message:
Generate undef on Chapel signatures to match clang

Generates undef on Chapel signatures to match the C abi as generated by clang

resolves LLVM IR for exported function should get noundef on ARM · Issue #21877 · chapel-lang/chapel · GitHub

[Reviewed by @dlongnecke-cray]

Compare: Generate undef on Chapel signatures to match clang by jabraham17 · Pull Request #29697 · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/cg-symbol.cpp
M compiler/include/clangUtil.h
M compiler/llvm/clangUtil.cpp
M test/llvm/abi/PREDIFF
M test/llvm/abi/aarch64-darwin/export-vs-c-llvm18.good
M test/llvm/abi/aarch64-darwin/export-vs-c-llvm22.good
M test/llvm/abi/aarch64-darwin/export-vs-c.good
M test/llvm/abi/aarch64-linux/export-vs-c-llvm22.good
M test/llvm/abi/aarch64-linux/export-vs-c.good
M test/llvm/abi/export-vs-c.chpl
M test/llvm/abi/x86-64/export-vs-c-llvm18.good
M test/llvm/abi/x86-64/export-vs-c.good
https://github.com/chapel-lang/chapel/pull/29697.diff