[all-commits] [llvm/llvm-project] c38efb: [clang] Implement -falign-loops=N (N is a power of...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Aug 5 12:18:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c38efb4899eac7b82daaf1320ad79f6271f9648a
https://github.com/llvm/llvm-project/commit/c38efb4899eac7b82daaf1320ad79f6271f9648a
Author: Fangrui Song <i at maskray.me>
Date: 2021-08-05 (Thu, 05 Aug 2021)
Changed paths:
M clang/include/clang/Basic/CodeGenOptions.def
M clang/include/clang/Basic/DiagnosticDriverKinds.td
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
A clang/test/CodeGen/align-loops.c
M clang/test/Driver/clang_f_opts.c
A clang/test/Driver/falign-loops.c
Log Message:
-----------
[clang] Implement -falign-loops=N (N is a power of 2) for non-LTO
GCC supports multiple forms of -falign-loops=.
-falign-loops= is currently ignored in Clang.
This patch implements the simplest but the most useful form where N is a
power of 2.
The underlying implementation uses a `llvm::TargetOptions` option for now.
Bitcode generation ignores this option.
Differential Revision: https://reviews.llvm.org/D106701
More information about the All-commits
mailing list