Commit Graph

1771 Commits

Author SHA1 Message Date
Steve Scalpone b21afad445 [flang] Merge pull request flang-compiler/f18#7 from ThePortlandGroup/revert-6-schauveau_cmake
Revert "Schauveau cmake"

Original-commit: flang-compiler/f18@f786d7c858
Reviewed-on: https://github.com/flang-compiler/f18/pull/7
2018-02-14 12:07:01 -05:00
Steve Scalpone ac364b1786 [flang] Revert "Schauveau cmake"
Original-commit: flang-compiler/f18@be33dc182a
Reviewed-on: https://github.com/flang-compiler/f18/pull/7
2018-02-14 09:06:47 -08:00
schauveau 0f07d42194 [flang] Merge pull request flang-compiler/f18#6 from ThePortlandGroup/schauveau_cmake
Merging since nobody appear to have any issues

Original-commit: flang-compiler/f18@913597e53a
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
2018-02-09 10:09:20 +01:00
Stephane Chauveau 002fcc72ec [flang] Fix incorrect clang/ directory name in include
Original-commit: flang-compiler/f18@ff61e3228a
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
2018-02-09 10:09:20 +01:00
Stephane Chauveau 6f805b0b7f [flang] Simplified git clone in README
Original-commit: flang-compiler/f18@198d2e6c8a
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Stephane Chauveau ad2b8f50a9 [flang] fix bad indentation in README
Original-commit: flang-compiler/f18@60a0123f46
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Stephane Chauveau 4fce05cf03 [flang] minor changres
Original-commit: flang-compiler/f18@1d351d2114
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Stephane Chauveau 3887bcc1bf [flang] updated build instructions in README.md
Original-commit: flang-compiler/f18@0fea8bd042
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Stephane Chauveau a734b9e5bf [flang] add preliminary README file
Original-commit: flang-compiler/f18@1fc60916fb
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Stephane Chauveau ab1dbce5a4 [flang] after clang-format
Original-commit: flang-compiler/f18@7e464a7c33
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Stephane Chauveau c27603ec9c [flang] Add new global CMakefile infrastructure with examples
Original-commit: flang-compiler/f18@81b91f3270
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false
2018-02-09 10:09:20 +01:00
Tim Keith c0d92ef566 [flang] Clean up Makefile, add reformat target.
Now the only targets in Makefile are Debug, Release, and reformat.
"make reformat" reformats all C++ source in place.

Also includes the result of "make reformat". Most of the changes were
just moving the "main" include up.

Original-commit: flang-compiler/f18@cf7d3a7afb
2018-02-07 16:27:36 -08:00
Tim Keith 2e34df7e8c [flang] Merge pull request flang-compiler/f18#5 from ThePortlandGroup/tsk1
Move type.{h,cc} and attr.{h,cc}

Original-commit: flang-compiler/f18@612918f261
Reviewed-on: https://github.com/flang-compiler/f18/pull/5
2018-02-07 16:08:09 -08:00
Tim Keith e065e5b510 [flang] Move type.{h,cc} and attr.{h,cc}
The are now in new namespace and directory, "semantics", similar to
"parser".

Original-commit: flang-compiler/f18@115a1341e2
Reviewed-on: https://github.com/flang-compiler/f18/pull/5
2018-02-07 15:54:07 -08:00
Tim Keith 2320db84e5 [flang] Merge pull request flang-compiler/f18#3 from tskeith/type
Initial work on the representation of types.

Original-commit: flang-compiler/f18@7f2bbe3f48
Reviewed-on: https://github.com/flang-compiler/f18/pull/3
2018-02-07 15:24:44 -08:00
Tim Keith 4a588883d2 [flang] Adapt to new directory for idioms.cc, idioms.h.
Change idioms.h so that calls to die will work outside the parser
namespace.

Use unordered_map to cache IntConst values.

Original-commit: flang-compiler/f18@9d06c385d9
Reviewed-on: https://github.com/flang-compiler/f18/pull/3
2018-02-07 15:19:54 -08:00
Tim Keith 3bdae798f2 [flang] Address some of the review comments.
Original-commit: flang-compiler/f18@ecdffa3745
Reviewed-on: https://github.com/flang-compiler/f18/pull/3
Tree-same-pre-rewrite: false
2018-02-07 13:57:58 -08:00
Tim Keith 59157ff1a5 [flang] Initial work on the representation of types.
Still work to do for derived types components, array specs, type-bound
procedures, etc.

Added executable type-test to the cmake file which exercises some of the
basic functionality. Modified the Makefile so that "make Debug" does a
cmake build.

Original-commit: flang-compiler/f18@02e8c4c867
Reviewed-on: https://github.com/flang-compiler/f18/pull/3
Tree-same-pre-rewrite: false
2018-02-06 16:46:29 -08:00
klausler 5e0fe2b481 [flang] Merge pull request flang-compiler/f18#4 from ThePortlandGroup/directories
Impose a directory structure and intermediate namespace.

Original-commit: flang-compiler/f18@34fc2397aa
Reviewed-on: https://github.com/flang-compiler/f18/pull/4
2018-02-07 12:29:36 -08:00
peter klausler 14322536e3 [flang] Tweaked .clang-format, then ran it.
Original-commit: flang-compiler/f18@e10e43b691
Reviewed-on: https://github.com/flang-compiler/f18/pull/4
2018-02-07 12:27:36 -08:00
peter klausler 0ba1a14be2 [flang] Impose a directory structure. Move files around. Introduce
an intermediate "parser" namespace.

Original-commit: flang-compiler/f18@690b6f0d1e
Reviewed-on: https://github.com/flang-compiler/f18/pull/4
Tree-same-pre-rewrite: false
2018-02-07 12:04:42 -08:00
peter klausler 6e22a3563e [flang] Markdown improvements.
Original-commit: flang-compiler/f18@f40b5e40df
2018-02-06 11:14:53 -08:00
peter klausler 1e69ed0c1b [flang] Convert parser combinator documentation file to Markdown.
Original-commit: flang-compiler/f18@263865c97a
2018-02-05 16:53:38 -08:00
peter klausler 94c26b688e [flang] Alphabetize and remove settings that match LLVM defaults.
Original-commit: flang-compiler/f18@82b1803f76
2018-02-05 16:08:46 -08:00
peter klausler 673626b1c8 [flang] Rename c++style.md -> C++style.md.
Original-commit: flang-compiler/f18@4bde27deae
2018-02-05 15:59:19 -08:00
peter klausler ef0bd23bc6 [flang] More Markdown fixes.
Original-commit: flang-compiler/f18@8e77ed1f0c
2018-02-05 15:58:22 -08:00
peter klausler 2353eb0e92 [flang] More Markdown fixes.
Original-commit: flang-compiler/f18@7097566fa5
2018-02-05 15:53:17 -08:00
peter klausler badb07d4b8 [flang] More Markdown fixes.
Original-commit: flang-compiler/f18@7f7b1deb31
2018-02-05 15:50:42 -08:00
peter klausler ffe393ee9e [flang] More Markdown fixes.
Original-commit: flang-compiler/f18@89bdd4bf07
2018-02-05 15:43:46 -08:00
peter klausler 2bcfa16011 [flang] Fix Markdown usage.
Original-commit: flang-compiler/f18@ee9e67964c
2018-02-05 15:39:52 -08:00
peter klausler 7f9cf6125b [flang] Convert c++style.txt to c++style.md.
Original-commit: flang-compiler/f18@6b846b3c55
2018-02-05 15:28:17 -08:00
peter klausler eed938f5c4 [flang] Fix #else after triggered #elif.
Original-commit: flang-compiler/f18@77db3281ec
2018-02-05 14:45:32 -08:00
peter klausler 16c6f534a5 [flang] Update .clang-format, then reformat all C++ files.
Original-commit: flang-compiler/f18@0ec44de4b7
2018-02-05 14:29:26 -08:00
peter klausler bdea10d9af [flang] Adjust indentation on public:/private: labels in class definitions.
Original-commit: flang-compiler/f18@8c0e5a52a9
2018-02-05 12:54:36 -08:00
peter klausler be830d6b35 [flang] Variadic macros, __VA_ARG__ and __VA_OPT__, and use
"default: CRASH_NO_CASE;" in place of prior macro.

Original-commit: flang-compiler/f18@2108896155
2018-02-05 12:48:09 -08:00
peter klausler fb5081093b [flang] Merge branch 'master' of https://www.github.com/ThePortlandGroup/f18
Original-commit: flang-compiler/f18@be3e2baa39
2018-02-05 10:47:12 -08:00
Tim Keith 340a4320b4 [flang] Add .clang-format and "make formatted" rule.
Original-commit: flang-compiler/f18@5ef28a6112
2018-02-05 10:18:38 -08:00
peter klausler ac12232e68 [flang] C++ usage and style guide summary.
Original-commit: flang-compiler/f18@2cf1be7b05
2018-02-05 10:46:32 -08:00
peter klausler 55fe4d2af5 [flang] More preprocessing.
Original-commit: flang-compiler/f18@a553505c3c
2018-02-02 15:52:43 -08:00
peter klausler ad7125ffb0 [flang] Predefined macros (__FILE__, __LINE__, __DATE__, __TIME__).
Original-commit: flang-compiler/f18@8c7f51aa87
2018-02-01 15:01:23 -08:00
peter klausler 809235196a [flang] Merge my local .gitignore with master.
Original-commit: flang-compiler/f18@10134ce283
2018-02-01 12:11:24 -08:00
peter klausler 112d0daa49 [flang] Merge branch 'master' of https://www.github.com/ThePortlandGroup/f18
Original-commit: flang-compiler/f18@d192939d53
2018-02-01 12:09:54 -08:00
Tim Keith 198a959bf1 [flang] Remove line that was added by mistake
Original-commit: flang-compiler/f18@629348c130
2018-02-01 07:31:53 -08:00
Tim Keith d45e6c7eda [flang] Add CMakeLists.txt and .gitignore
Original-commit: flang-compiler/f18@d9a1ea4c49
Tree-same-pre-rewrite: false
2018-01-30 16:37:59 -08:00
peter klausler 93cf3aec5e [flang] Support #if/#elif directives with Fortran/C expressions.
Original-commit: flang-compiler/f18@5ea8303954
2018-02-01 12:08:02 -08:00
peter klausler 93db9dd00d [flang] Remove some scaffolding code that I just inadvertently committed, sorry.
Original-commit: flang-compiler/f18@df4dc2ff94
2018-01-30 15:30:56 -08:00
peter klausler 6f94e8472d [flang] Preprocessor work. f18 now passes all my tests except for #if (expression)
and file inclusion.

Original-commit: flang-compiler/f18@07ebac21f5
2018-01-30 15:22:26 -08:00
peter klausler 33d7854c55 [flang] Clean up: convert CharPointerWithLength into a proper class.
Original-commit: flang-compiler/f18@514823234f
2018-01-30 12:21:25 -08:00
peter klausler 880b7939c3 [flang] Add temporary driver main program f2018-demo.cc.
Original-commit: flang-compiler/f18@bbe51ba0ec
2018-01-30 11:55:48 -08:00
peter klausler 55d503fb5a [flang] Add source.{h,cc}.
Original-commit: flang-compiler/f18@39df4a3ef4
2018-01-30 11:55:03 -08:00