[flang-commits] [PATCH] D79442: [flang] Add examples in documentation/BijectiveInternalNameUniquing.md
sameeran joshi via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed May 6 02:07:18 PDT 2020
sameeranjoshi updated this revision to Diff 262317.
sameeranjoshi added a comment.
Minor formating changes.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79442/new/
https://reviews.llvm.org/D79442
Files:
flang/documentation/BijectiveInternalNameUniquing.md
Index: flang/documentation/BijectiveInternalNameUniquing.md
===================================================================
--- flang/documentation/BijectiveInternalNameUniquing.md
+++ flang/documentation/BijectiveInternalNameUniquing.md
@@ -49,11 +49,49 @@
* A common block name will be prefixed with `B`
+Given:
+```
+ common /variables/ i, j
+```
+
+The uniqued name of `variables` becomes:
+```
+ _QBvariables
+```
+
+Given:
+```
+ common i, j
+```
+
+The uniqued name in case of `blank common block` becomes:
+```
+ _QB
+```
+
### Module scope global data
* A global data entity is prefixed with `E`
* A global entity that is constant (parameter) will be prefixed with `EC`
+Given:
+```
+ module mod
+ integer :: intvar
+ real, parameter :: pi = 3.14
+ end module
+```
+
+The uniqued name of `intvar` becomes:
+```
+ _QMmodEintvar
+```
+
+The uniqued name of `pi` becomes:
+```
+ _QMmodECpi
+```
+
### Procedures/Subprograms
* A procedure/subprogram is prefixed with `P`
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79442.262317.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200506/fe92626a/attachment.bin>
More information about the flang-commits
mailing list