llvm-project/llvm
Ali Sedaghati 4d559837e8 [NFC] factor out unrolling decision logic
Decoupling the unrolling logic into three different functions. The shouldPragmaUnroll() covers the 1st and 2nd priorities of the previous code, the shouldFullUnroll() covers the 3rd, and the shouldPartialUnroll() covers the 5th. The output of each function, Optional<unsigned>, could be a value for UP.Count, which means unrolling factor has been set, or None, which means decision hasn't been made yet and should try the next priority.

Reviewed By: mtrofin, jdoerfert

Differential Revision: https://reviews.llvm.org/D106001
2021-08-18 11:21:40 -07:00
..
benchmarks
bindings
cmake [CMake] Fix recompile all .inc files with LLVM_OPTIMIZED_TABLEGEN in Visual Studio. 2021-08-18 10:24:58 +03:00
docs [GlobalISel] Add G_ISNAN 2021-08-18 10:42:05 -07:00
examples [examples] Fix incomplete_type on ZLinux when compiling RemoteJITUtils. 2021-08-02 15:15:15 +10:00
include [NFC] Remove some unnecessary AttributeList methods 2021-08-18 11:15:20 -07:00
lib [NFC] factor out unrolling decision logic 2021-08-18 11:21:40 -07:00
projects
resources
runtimes [OpenMP] Fixing llvm-omp-device-info compilation with runtimes 2021-07-30 13:09:08 -05:00
test [RISCV] Remove sext_inreg+add/sub/mul/shl isel patterns. 2021-08-18 11:07:11 -07:00
tools [PowerPC][AIX] llvm-readobj: Convert some errors to warnings. 2021-08-18 11:04:08 -04:00
unittests [NFC] Cleanup calls to CallBase::getAttribute() 2021-08-18 09:39:33 -07:00
utils [gn build] Port 38812f4ac1 2021-08-18 14:02:48 +00:00
.clang-format
.clang-tidy
.gitattributes Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments 2021-08-17 16:16:19 +01:00
.gitignore
CMakeLists.txt [NFC] Trim trailing whitespaces in `llvm/CMakeLists.txt` 2021-08-16 12:49:59 -04:00
CODE_OWNERS.TXT Add Johannes to CODE_OWNERS for openmp offloading 2021-08-02 19:45:47 +01:00
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.