Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLVMify F18] Compiler module folders should have capitalised names
This patch renames the modules in f18 to use a capital letter in the module name[1] Firstly we create new folders with the capitalised name of the modules and then we do git mv for these new folders. Besides that, many files were modified to point and include the names of these modules. The task is very easy, the only problem is that it will mess with git history thinking that new files were created, and lots of them were deleted. So to reduce to chaos, this task will be split into two commits. The first one creates and moves the files inside f18. The second commit will update the includes in the files that need to be updated. This first commit renames the folder inside: ->include/flang/[common | decimal | evaluate | parser | semantics] ->lib/[common | decimal | evaluate | parser | semantics] ->test/[decimal | evaluate | preprocessing | runtime | semantics] ->test-lit/driver to capitalise names This is achieved by doing git mv for each module, as shown below: $for i in lib/common/*; do git mv $i lib/Common; done [1]#963 Signed-off-by: Caroline Concatto <caroline.concatto@arm.com> Modify #include in .cpp and .h files and modify CMakeLists.txt to point to the renamed modules with capitalised names. This patch is the second part of the task "[LLVMIFY F18] Compiler modules should have capitalised name"s[1]. After this patch, all the files should be in the capitalised folders and pointing to new place. To modify the files I used sed and grep in the non-binary files. It modifies the .cpp and .h files to have #include pointing to the renamed modules. The following command was used to replace the old names: sed -i 's|${OLD_PATH}|${NEW_PATH}|g' $(grep -Elr --binary-files=without-match "${OLD_PATH}" .) It applies for: -> OLD_PATH TO NEW_PATH ->flang/decimal to flang/Decimal ->flang/common to flang/Common ->flang/evaluate to flang/Evaluate| ->flang/parser to flang/Parser ->flang/semantics to flang/Semantics The file f18/test/Evaluate/folding.cpp does not follow the previous behavior, but it also needs to have its include updated from #include "../../lib/evaluate/ to #include "../../lib/Evaluate/. The CMakeLists.txt files were changes to add the renamed directories. In this case the following comand was used: sed -i 's|${OLD_NAME}|${NEW_NAME}|g' $(grep -Elr --binary-files=without-match "${OLD_NAME}" .) It applies for: -> OLD_NAME TO NEW_NAME -> (common) to (Common) -> (evaluate) to (Evaluate) -> (decimal) to (Decimal) -> (parser) to (Parser) -> (semantics) to (Semantics) Runtime in f18/test/CMakeLists.txt also needs to be changed. This one was made manually as there is another runtime in f18/CMakeLists.txt that cannot be changed. [1]#963 Signed-off-by: Caroline Concatto <caroline.concatto@arm.com> Modify the headers inside the files to the have the new capitalised module names The first line of the files inside f18 has its full address/localization. For instance, ===-- lib/common/CMakeLists.txt -----------------------------------------=== is the first line of CMakeLists.txt inside f18/lib/common. This line was not changed in the previous patch. To maintain consistency this patch modifies the first line to the capitalized names of the folders. For instance, for the CMakeLists.txt inside f18/lib/common, the header will be: ===-- lib/Common/CMakeLists.txt -----------------------------------------=== To be precisely it updates the first line of the files in: -> lib/[Common | Decimal | Evaluate | Parser | Semantics] -> test/[Decimal | Evaluate | Preprocessing | Runtime | Semantics] This patch also modifies the documentation files C++style.md and ImplementingASemanticCheck.md. It replaces lib/semantics/ and lib/evaluate and lib/common. To replace the old names I used the same sed and grep commands as shown in the commit message of the previous patch. This patch does not alter the behaviour of the compiler, because it only changes the comments and documentation files and it keeps consistency with the new capitalised names. The first two patches are responsible to rename files and update the include and CMakeLists.txt. Signed-off-by: Caroline Concatto <caroline.concatto@arm.com> Move resolve70.f90 to the new folder and fix missing replacements. Git rebase left behind the file resolve70.f90 in the old folder semantics. It should be at Semantics. This patch moves resolve70.f90 to test/Semantics The rebase had a conflict in file ImplementingASemanticCheck.md. The previous patch has the replacement in the wrong place. This patch fixes it. Besides these two changes, for some reason, test/Evaluate/CMakeLists.txt was not changed with sed, this patch fixes also the header text in test/Evaluate/CMakeLists.tx Signed-off-by: Caroline Concatto <caroline.concatto@arm.com> Move lowering and fir modules to have captial letters
- Loading branch information
1 parent
f28afa7
commit 77e82fa
Showing
645 changed files
with
900 additions
and
898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/Fortran.h → include/flang/Common/Fortran.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/bit-population-count.h → include/flang/Common/bit-population-count.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/constexpr-bitset.h → include/flang/Common/constexpr-bitset.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/enum-set.h → include/flang/Common/enum-set.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/indirection.h → include/flang/Common/indirection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/interval.h → include/flang/Common/interval.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ude/flang/common/leading-zero-bit-count.h → ...ude/flang/Common/leading-zero-bit-count.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
include/flang/common/reference-counted.h → include/flang/Common/reference-counted.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/reference.h → include/flang/Common/reference.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/restorer.h → include/flang/Common/restorer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/common/uint128.h → include/flang/Common/uint128.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...de/flang/common/unsigned-const-division.h → ...de/flang/Common/unsigned-const-division.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/flang/decimal/decimal.h → include/flang/Decimal/decimal.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.