Lines Matching full:flang

17 ## Building flang
18 There are two ways to build flang. The first method is to build it at the same
21 all of the projects on which flang depends. Then, after creating this base
22 build, only build the flang code itself. This is called building standalone.
33 ### Building flang in tree
34 Building flang in tree means building flang along with all of the projects on
35 which it depends. These projects include mlir, clang, flang, openmp, and
84 -DLLVM_ENABLE_PROJECTS="clang;mlir;flang;openmp" \
91 On Darwin, to make flang able to link binaries with the default sysroot without
95 By default flang tests that do not specify an explicit `--target` flag use
101 To run the flang tests on this build, execute the command in the "build"
104 ninja check-flang
142 Note that these instructions specify flang as one of the projects to build in
144 builds, but doing so lets you run the flang tests to verify that the source
147 ### Building flang standalone
148 To do the standalone build, start by building flang in tree as described above.
164 cd llvm-project/flang
189 To run the flang tests on this build, execute the command in the `flang/build`
192 ninja check-flang
195 ### Building flang runtime for accelerators
196 Flang runtime can be built for accelerators in experimental mode, i.e.
206 cd llvm-project/flang
228 cd llvm-project/flang
255 One may build Flang runtime library along with building Flang itself
256 by providing these additional CMake variables on top of the Flang in-tree
279 Normal `make -j check-flang` will work with such CMake configuration.
285 cd llvm-project/flang
305 The same set of CMake variables works for Flang in-tree build.
319 Flang is written in C++17.
329 Note that flang is not supported on 32 bit CPUs.
331 ### Building flang with GCC
336 in order to build flang.
350 ### Building flang with clang
352 To build flang with clang,
370 is the path where flang should be installed.
388 Flang supports 2 different categories of tests
395 cd ~/flang/build
396 cmake -DLLVM_DIR=$LLVM -DMLIR_DIR=$MLIR ~/flang/src
401 configuration for flang. The parameters in charge of this are:
405 --param flang_site_config=<path-to-flang-build>/test-lit/lit.site.cfg.py \
406 --param flang_config=<path-to-flang-build>/test-lit/lit.cfg.py \
413 If flang was built with `-DFLANG_INCLUDE_TESTS=ON` (`ON` by default), it is possible to generate un…
420 1. ninja check-flang-unit
421 2. ninja check-all or ninja check-flang
424 4. Invoking tests from <standalone flang build>/unittests/<respective unit test folder>
430 If flang was built with `-DFLANG_INCLUDE_TESTS=ON` (`ON` by default), it is possible to
433 To run all of the flang unit tests use the `check-flang-unit` target:
435 ninja check-flang-unit
437 To run all of the flang regression tests use the `check-flang` target:
439 ninja check-flang
445 If flang was built with `-DLINK_WITH_FIR=ON` (`ON` by default), it is possible to
446 generate FIR language documentation by running `ninja flang-doc`. This will
447 create `<build-dir>/tools/flang/docs/Dialect/FIRLangRef.md` in flang build directory.
455 cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;flang" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_DOXYGE…
456 ninja doxygen-flang
462 <build-dir>/tools/flang/docs/doxygen/html # for flang docs
465 [Flang documentation](https://flang.llvm.org/docs/) should preferably be written in `markdown(.md)`…
467 system to create HTML pages which would be hosted on the webpage of flang and
477 cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;flang" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_SPHINX…
478 ninja docs-flang-html
484 $BROWSER <build-dir>/tools/flang/docs/html/