[llvm] [LangRef] Add entry for pcsections Metadata (PR #133423)
Marco Elver via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 28 04:14:52 PDT 2025
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/133423
>From ebe5f68c0721d6c5b5496fa2c7e3e6e57e8227d1 Mon Sep 17 00:00:00 2001
From: Marco Elver <elver at google.com>
Date: Fri, 28 Mar 2025 12:05:40 +0100
Subject: [PATCH] [LangRef] Add entry for pcsections Metadata
Add an entry for pcsections Metadata that references the PC Sections
Metadata document.
Fixes: https://github.com/llvm/llvm-project/issues/130552
---
llvm/docs/LangRef.rst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 655ec4389456c..9ef3821c8b51f 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -8221,6 +8221,14 @@ Example:
Clang emits ``kcfi_type`` metadata nodes for address-taken functions with
``-fsanitize=kcfi``.
+'``pcsections``' Metadata
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The ``pcsections`` metadata can be attached to instructions and functions, for
+which addresses, viz. program counters (PCs), are to be emitted in specially
+encoded binary sections. More details can be found in the `PC Sections Metadata
+<PCSectionsMetadata.html>`_ documentation.
+
.. _md_memprof:
'``memprof``' Metadata
More information about the llvm-commits
mailing list