This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
21fbc5fcfe
llvm-project
/
flang
/
test
/
semantics
/
modfile09-b.f90
9 lines
94 B
Fortran
Raw
Normal View
History
Unescape
Escape
[flang] Add support for submodules Symbols for submodules have `ModuleDetails` with `isSubmodule` set. Scopes for submodules have `Module` kind and have a parent scope that is also `Module` kind. Scopes for modules now contain a mapping of submodule name to scope so that we can find them without having to search the scope tree or re-read their `.mod` file. The module file for submodule `s` with ancestor module `m` is named `m-s.mod`. The tree structure of scopes means module file writing is now recursive. Similarly, reading the module file for a submodule may require reading the module files of its parent and ancestor. `ResolveNames` now requires the parent scope to be passed in -- it is not always the global scope. `test_modfiles.sh` now handles an argument that is a filename glob so that the test can involve multiple files. This allows `modfile09` to test reading of `.mod` files for modules and submodules. Original-commit: flang-compiler/f18@2e4424dbc8cc5803d561274dbf70005afe7e65dc Reviewed-on: https://github.com/flang-compiler/f18/pull/160 Tree-same-pre-rewrite: false
2018-08-03 07:21:27 +08:00
submodule
(
m
)
s1
integer
s1_x
end
!Expect: m-s1.mod
!submodule(m) s1
[flang] Simplify representation of intrinsic types Intrinsic types are now just a TypeCategory and a int kind. If no kind is specified the default is used so that every type has an explicit kind. This caused changes in the expected results of some of the tests. Add support for "double precision" and "double complex". Intrinsic types are now stored as values in DeclTypeSpec so none of the KindedTypeHelper machinery is needed any more. Eliminate DerivedTypeDef, DataComponentDef, ProcComponentDef, TypeBoundProc. The components and bindings of a derived type are now represented by the corresponding Scope. Original-commit: flang-compiler/f18@4ad8ffb18708e073da9a0f37c3bb09a271ca1c02 Reviewed-on: https://github.com/flang-compiler/f18/pull/182 Tree-same-pre-rewrite: false
2018-09-12 08:33:42 +08:00
!integer(4)::s1_x
[flang] Add support for submodules Symbols for submodules have `ModuleDetails` with `isSubmodule` set. Scopes for submodules have `Module` kind and have a parent scope that is also `Module` kind. Scopes for modules now contain a mapping of submodule name to scope so that we can find them without having to search the scope tree or re-read their `.mod` file. The module file for submodule `s` with ancestor module `m` is named `m-s.mod`. The tree structure of scopes means module file writing is now recursive. Similarly, reading the module file for a submodule may require reading the module files of its parent and ancestor. `ResolveNames` now requires the parent scope to be passed in -- it is not always the global scope. `test_modfiles.sh` now handles an argument that is a filename glob so that the test can involve multiple files. This allows `modfile09` to test reading of `.mod` files for modules and submodules. Original-commit: flang-compiler/f18@2e4424dbc8cc5803d561274dbf70005afe7e65dc Reviewed-on: https://github.com/flang-compiler/f18/pull/160 Tree-same-pre-rewrite: false
2018-08-03 07:21:27 +08:00
!end