[Chapel Merge] Add compiler debug printers for LLVM metadata

Branch: refs/heads/main
Revision: 4374d97107381d51cd63731e44188e37687bdd84
Author: jabraham17
Link: Add compiler debug printers for LLVM metadata by jabraham17 · Pull Request #27213 · chapel-lang/chapel · GitHub
Log Message:
Add compiler debug printers for LLVM metadata (#27213)

Adds helpers for debugging compiler generated debug information.

This extends the printing logic for llvm::Value, llvm::Module, and
llvm::Type to llvm::Metadata.

[Reviewed by @vasslitvinov]

Compare: Comparing 14f25d54d4e701a7892acaeb7840587a46d26033...16d8283d8232d84e4fbbd89102a272dd6d1c2190 · chapel-lang/chapel · GitHub

Diff:
M compiler/include/llvmUtil.h
M compiler/llvm/llvmUtil.cpp
https://github.com/chapel-lang/chapel/pull/27213.diff