[PATCH] D94367: [Clang][Driver] Add -ffinite-loops flags
Atmn Patel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 9 17:00:44 PST 2021
atmnpatel created this revision.
atmnpatel added reviewers: fhahn, jdoerfert, xbolva00.
Herald added subscribers: dexonsmith, dang.
atmnpatel requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Following D94366 <https://reviews.llvm.org/D94366>, clang will strictly adheres to the language standard
when deciding whether or not to emit `mustprogress` attributes for
loops. This patch adds two flags: `-ffinite-loops` and
`-fno-finite-loops` that override the language standard into either
never emitting `mustprogress` attributes or emitting `mustprogress`
attributes for all loops/functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94367
Files:
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Basic/CodeGenOptions.h
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGStmt.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/finite-loops.c
clang/test/CodeGenCXX/finite-loops.cpp
clang/test/Driver/clang_f_opts.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94367.315640.patch
Type: text/x-patch
Size: 15186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210110/1605fcca/attachment-0001.bin>
More information about the cfe-commits
mailing list