[PATCH] D142651: [llvm][docs] Update old metadata syntax in examples
Paul Kirth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 11:34:36 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4a9a96260a6b: [llvm][docs] Update old metadata syntax in examples (authored by paulkirth).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142651/new/
https://reviews.llvm.org/D142651
Files:
llvm/docs/BlockFrequencyTerminology.rst
llvm/docs/BranchWeightMetadata.rst
Index: llvm/docs/BranchWeightMetadata.rst
===================================================================
--- llvm/docs/BranchWeightMetadata.rst
+++ llvm/docs/BranchWeightMetadata.rst
@@ -31,8 +31,8 @@
.. code-block:: none
- !0 = metadata !{
- metadata !"branch_weights",
+ !0 = !{
+ !"branch_weights",
i32 <TRUE_BRANCH_WEIGHT>,
i32 <FALSE_BRANCH_WEIGHT>
}
@@ -45,8 +45,8 @@
.. code-block:: none
- !0 = metadata !{
- metadata !"branch_weights",
+ !0 = !{
+ !"branch_weights",
i32 <DEFAULT_BRANCH_WEIGHT>
[ , i32 <CASE_BRANCH_WEIGHT> ... ]
}
@@ -58,8 +58,8 @@
.. code-block:: none
- !0 = metadata !{
- metadata !"branch_weights",
+ !0 = !{
+ !"branch_weights",
i32 <LABEL_BRANCH_WEIGHT>
[ , i32 <LABEL_BRANCH_WEIGHT> ... ]
}
@@ -73,8 +73,8 @@
.. code-block:: none
- !0 = metadata !{
- metadata !"branch_weights",
+ !0 = !{
+ !"branch_weights",
i32 <CALL_BRANCH_WEIGHT>
}
@@ -93,8 +93,8 @@
.. code-block:: none
- !0 = metadata !{
- metadata !"branch_weights",
+ !0 = !{
+ !"branch_weights",
i32 <INVOKE_NORMAL_WEIGHT>
[ , i32 <INVOKE_UNWIND_WEIGHT> ]
}
Index: llvm/docs/BlockFrequencyTerminology.rst
===================================================================
--- llvm/docs/BlockFrequencyTerminology.rst
+++ llvm/docs/BlockFrequencyTerminology.rst
@@ -37,7 +37,7 @@
br i1 %cond, label %B, label %C, !prof !0
; ...
}
- !0 = metadata !{metadata !"branch_weights", i32 7, i32 8}
+ !0 = !{!"branch_weights", i32 7, i32 8}
and this simple graph representation::
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142651.492532.patch
Type: text/x-patch
Size: 1627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230126/9cb94e46/attachment.bin>
More information about the llvm-commits
mailing list